When compiling rtabmap with a newer version of the PCL library, the define DISABLE_VTK is not defined. This causes a compilation error in rtabmap.
For example, this piece of code does not compile when using the PCL library 1.10: https://github.com/introlab/rtabmap/blob/master/corelib/src/Parameters.cpp#L44
What's notable here, is that we use ifndef DISABLE_VTK, which is a double negation. Might it be good to use something like ifdef WITH_VTK, if this exists?
When compiling rtabmap with a newer version of the PCL library, the define DISABLE_VTK is not defined. This causes a compilation error in rtabmap.
For example, this piece of code does not compile when using the PCL library 1.10: https://github.com/introlab/rtabmap/blob/master/corelib/src/Parameters.cpp#L44
What's notable here, is that we use
ifndef DISABLE_VTK, which is a double negation. Might it be good to use something likeifdef WITH_VTK, if this exists?