Skip to content

[BUILD] SensorCaptureThread.cpp <pcl/io/io.h> deprecated on newer PCL versions #1388

@4jakers18

Description

@4jakers18

io.h no longer is installed under pcl/io/ in newer versions of PCL compiled from source. Proposed patch on corelib/src/SensorCaptureThread.cpp:

Replacing <pcl/io/io.h> with <pcl/common/io.h>. I've successfully build and tested this change already on master and noetic-devel.

diff --git a/corelib/src/SensorCaptureThread.cpp b/corelib/src/SensorCaptureThread.cpp
index fb931bef..c4ad71e4 100644
--- a/corelib/src/SensorCaptureThread.cpp
+++ b/corelib/src/SensorCaptureThread.cpp
@@ -45,7 +45,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <rtabmap/utilite/ULogger.h>
 #include <rtabmap/utilite/UStl.h>
 
-#include <pcl/io/io.h>
+#include <pcl/common/io.h>
 
 namespace rtabmap
 {

Ubuntu 20.04, x86_64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions