Keep reinstalling rtabmap and rtabmap_ros

Somehow I find rtabmap have to be keep reinstalling[1]

When does this happen

I can't do rosluanch rtabmap_ros rtabmap.launch

Error code:

[rtabmap.launch] is neither a launch file in package [rtabmap_ros] nor is [rtabmap_ros] a launch file name
The traceback for the exception was written to the log file

And

cd catkin_ws
catkin_make
make[2]: *** No rule to make target '/opt/ros/kinetic/lib/libg2o_core.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/imu_to_tf'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[  1%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_pointcloud_to_depthimage.dir/src/PointCloudToDepthImageNode.cpp.o
make[2]: *** No rule to make target '/opt/ros/kinetic/lib/libg2o_core.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/rgbdicp_odometry'.  Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/opt/ros/kinetic/lib/libg2o_core.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/rgbd_relay'.  Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/opt/ros/kinetic/lib/libg2o_core.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/pointcloud_to_depthimage'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[  2%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_imu_to_tf.dir/src/ImuToTFNode.cpp.o
[  2%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/src/RGBDICPOdometryNode.cpp.o
[  2%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_rgbd_relay.dir/src/RGBDRelayNode.cpp.o
CMakeFiles/Makefile2:3055: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_imu_to_tf.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_imu_to_tf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:4244: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_rgbd_relay.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_rgbd_relay.dir/all] Error 2
CMakeFiles/Makefile2:752: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_pointcloud_to_depthimage.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_pointcloud_to_depthimage.dir/all] Error 2
CMakeFiles/Makefile2:3587: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/all] Error 2
Makefile:116: recipe for target 'all' failed

I have totally no idea why this would happen to g2o?

How did I solve[2]
cd ~/rtabmap/build
rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel .. 
make -j4
sudo make install
cd ~/catkin_ws
catkin_make

References:

[1] Keep reinstalling rtabmap because of missing libfreenect.so every day · Issue #424 · introlab/rtabmap
[2] introlab/rtabmap_ros: RTAB-Map's ROS package.

转载于:https://www.cnblogs.com/williamc17/p/11422512.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值