rtabmap_ros安装编译时出现的问题解决

在虚拟机VMware上的Ubuntu18.04系统,使用ROS Melodic进行rtabmap_ros安装时遇到编译问题。根据官方教程操作后,通过分析CMakeLists.txt文件的报错信息,发现`add_message_files()`缺少`obstacleMsg.msg`。在文件中添加该消息后,重新编译,问题得以解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境:
虚拟机VMware
Ubuntu18.04
ROS:Melodic

根据官方指导教程安装rtabmap_ros:

cd ~/catkin_ws
git clone https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
catkin_make

出现问题如下:

CMake Error at /opt/ros/melodic/share/gencpp/cmake/gencpp-extras.cmake:8 (file):
  file problem creating directory:
  /home/zcj/catkin_ws/devel/include/rtabmap_ros
Call Stack (most recent call first):
  /opt/ros/melodic/share/gencpp/cmake/gencpp-extras.cmake:51 (_generate_msg_cpp)
  /home/zcj/catkin_ws/build/rtabmap_ros/cmake/rtabmap_ros-genmsg.cmake:264 (_generate_srv_cpp)
  /opt/ros/melodic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
  rtabmap_ros/CMakeLists.txt:104 (generate_messages)


-- WITH octomap_msgs
-- WITH find_object_2d
-- WITH rviz
-- WITH costmap_2d
-- Configuring incomplete, errors occurred!
See also "/home/zcj/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/zcj/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值