True.. is saw also the wrong version was installed.
> bart@compaq-elite:~/flex_orb$ sudo apt
> install ros-noetic-rtabmap-ros [sudo]
> password for bart: Reading package
> lists... Done Building dependency tree
> Reading state information... Done
> ros-noetic-rtabmap-ros is already the
> newest version
> (0.20.7-1focal.20210304.165628). 0
> upgraded, 0 newly installed, 0 to
> remove and 41 not upgraded.
So the next step is to
> git clone https://github.com/introlab/rtabmap_ros.git
and make the workspace with
catkin_make
this is the outcome
>@ [ 81%] Linking CXX shared library /home/bart/flex_orb/devel/lib/librtabmap_costmap_plugins2.so
[ 81%] Built target rtabmap_costmap_plugins2
[ 82%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o
/home/bart/flex_orb/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘rtabmap::OdometryInfo rtabmap_ros::odomInfoFromROS(const OdomInfo&, bool)’:
/home/bart/flex_orb/src/rtabmap_ros/src/MsgConversion.cpp:1449:45: error: ‘const OdomInfo’ {aka ‘const struct rtabmap_ros::OdomInfo_<std::allocator<void> >’} has no member named ‘guess’
1449 | info.guess = transformFromGeometryMsg(msg.guess);
| ^~~~~
/home/bart/flex_orb/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘void rtabmap_ros::odomInfoToROS(const rtabmap::OdometryInfo&, rtabmap_ros::OdomInfo&)’:
/home/bart/flex_orb/src/rtabmap_ros/src/MsgConversion.cpp:1509:41: error: ‘rtabmap_ros::OdomInfo’ {aka ‘struct rtabmap_ros::OdomInfo_<std::allocator<void> >’} has no member named ‘guess’
1509 | transformToGeometryMsg(info.guess, msg.guess);
| ^~~~~
[ 82%] Linking CXX executable /home/bart/flex_orb/devel/lib/rtabmap_ros/camera
make[2]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/build.make:63: rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 82%] Built target rtabmap_camera
make[1]: *** [CMakeFiles/Makefile2:10734: rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j4 -l4" failed
Almost ...
any ideas how to solve this:
error: ‘const OdomInfo’ {aka ‘const struct rtabmap_ros::OdomInfo_<std::allocator<void> >’} has no member named ‘guess’
1449 | info.guess = transformFromGeometryMsg(msg.guess);
I assume you are trying to build rtabmap-ros from build? Is there a reason? You could install this using the binary:
sudo apt install ros-noetic-rtabmap-ros