ERROR: cannot launch node of type [cartographer_ros/cartographer_node]: can't locate node [cartographer_node] in package [cartographer_ros]
ERROR: cannot launch node of type [cartographer_ros/cartographer_occupancy_grid_node]: can't locate node [cartographer_occupancy_grid_node] in package [cartographer_ros]
ERROR: cannot launch node of type [cartographer_turtlebot/cartographer_flat_world_imu_node]: can't locate node [cartographer_flat_world_imu_node] in package [cartographer_turtlebot]
类似与上述的错误。
第一、 检查你的包路径是否已经在ROS路径之中,通过vim ~/.bashrc 可以添加修改。
第二、 回到根目录,cd进你的工作空间,输入:
$ source devel/setup.bash
$ source install_isolated/setup.bash
这两句很重要,如果失败就关闭终端重新来一次,这两句话是要在每次运行前都要输入的。
对于第二个例子,2D深度相机DEMO,在运行时候会出现
ERROR: cannot launch node of type [depthimage_to_laserscan]: can't locate node [depthimage_to_laserscan] in package [depthimage_to_laserscan]
这个错误提示我们是缺少depthimage_to_laserscan包。
在终端输入
$ sudo apt-get install ros-kinetic-depthimage-to-laserscan
$ git clone https://github.com/ros-perception/depthimage_to_laserscan
然后在cd进包里,用cmake编译,然后make, sudo make install。 最后在bashrc里添加环境路径。
然后就可以运行了。
祝大家好运!
according to B2的SLAM之旅 's TB2 RplidarA3 cartographer
here comes the issue
asber@asber-X550VX:~$ roslaunch cartographer_turtlebot turtlebot_lidar_2d.launch
... logging to /home/asber/.ros/log/e92a60e4...
在运行范例的launch文件时,提示
ERROR: cannot launch node of type [chapter2_tutorials/example2_a]: can't locate node [example2_a] in package [chapter2_tutorials]
在chapter2_tutorials包中无法找到节点example2_a
这是因为节点
(1) Could not find a package configuration file provided by
“robot_localization” with any of the following names:
robot_localizationConfig.cmake
robot_localization-config.cmake
Add the installation p...
在使用turtlebot3做仿真建图时无法运行SLAM启动文件,错误显示如下:
ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/peng/turtlebot3_ws/src
ROS path...