Re: rtabmap_ros jetson tx2 and zed camera launch issue

Posted by matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/rtabmap-ros-jetson-tx2-and-zed-camera-launch-issue-tp3625p3632.html

Hi,

Yes there can be a conflict if rtabmap library is built against OpenCV2 and rtabmap_ros is built with OpenCV3. You may try to build rtabmap against OpenCV3 instead of OpenCV2 if it is the case:
$ export OpenCV_DIR=/opt/ros/kinetic/share/OpenCV-3.2.0-dev
$ rm -r rtabmap/build/*
$ cd rtabmap/build
$ cmake ..
$ make

$ rm -r ~/catkin_ws/build
$ cd ~/catkin_ws
$ catkin_make

If there are still conflicts, do you really need OpenCV2? If so, remove "ros-kinetic-opencv3" from kinetic installation, then rebuild everything. Note that you will have to build cv_bridge from source (so it is built against OpenCV2) and other packages needed by rtabmap_ros depending on ros-kinetic-opencv3.

cheers,
Mathieu