Posted by
iprob on
URL: http://official-rtab-map-forum.206.s1.nabble.com/RTAB-Map-rosmon-is-not-running-twice-tp8373p8579.html
Hi Mathieu,
Sorry to bother you again. As the changes are in the master branch I had to uninstall rtabmap and install the one in the master from source, then clone the rtabmap_ros from the master branch too and compile, getting this errors:
/usr/local/lib/librtabmap_core.so: undefined reference to `gtsam::Marginals::Marginals(gtsam::NonlinearFactorGraph const&, gtsam::Values const&, gtsam::Marginals::Factorization, boost::optional<gtsam::Ordering const&>)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/robot/new_faster_ws/devel/.private/rtabmap_ros/lib/rtabmap_ros/stereo_odometry] Error 1
make[1]: *** [CMakeFiles/rtabmap_stereo_odometry.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/local/lib/librtabmap_core.so: undefined reference to `gtsam::Marginals::Marginals(gtsam::NonlinearFactorGraph const&, gtsam::Values const&, gtsam::Marginals::Factorization, boost::optional<gtsam::Ordering const&>)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/robot/new_faster_ws/devel/.private/rtabmap_ros/lib/rtabmap_ros/icp_odometry] Error 1
make[1]: *** [CMakeFiles/rtabmap_icp_odometry.dir/all] Error 2
/usr/local/lib/librtabmap_core.so: undefined reference to `gtsam::Marginals::Marginals(gtsam::NonlinearFactorGraph const&, gtsam::Values const&, gtsam::Marginals::Factorization, boost::optional<gtsam::Ordering const&>)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/robot/new_faster_ws/devel/.private/rtabmap_ros/lib/rtabmap_ros/rtabmap] Error 1
make[1]: *** [CMakeFiles/rtabmap.dir/all] Error 2
/usr/local/lib/librtabmap_core.so: undefined reference to `gtsam::Marginals::Marginals(gtsam::NonlinearFactorGraph const&, gtsam::Values const&, gtsam::Marginals::Factorization, boost::optional<gtsam::Ordering const&>)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/robot/new_faster_ws/devel/.private/rtabmap_ros/lib/rtabmap_ros/rgbdicp_odometry] Error 1
make[1]: *** [CMakeFiles/rtabmap_rgbdicp_odometry.dir/all] Error 2
/usr/local/lib/librtabmap_core.so: undefined reference to `gtsam::Marginals::Marginals(gtsam::NonlinearFactorGraph const&, gtsam::Values const&, gtsam::Marginals::Factorization, boost::optional<gtsam::Ordering const&>)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/robot/new_faster_ws/devel/.private/rtabmap_ros/lib/rtabmap_ros/rgbd_odometry] Error 1
make[1]: *** [CMakeFiles/rtabmap_rgbd_odometry.dir/all] Error 2
make: *** [all] Error 2
I think that this problem is similar to this
https://github.com/introlab/rtabmap_ros/issues/456 but I think that the procedure is correct. I'm working on ubuntu 18.04 and ros melodic.