概述
ERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package
解决方案
ERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package
在运行 Ros-by-example教程第八章导航、路径规划和SLAM中的
8.2在ARbotix模拟器测试move-base
中运行:
roslaunch rbx1_nav fake_move_base_map_with_obstacles.launch
出现如下错误:
ERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package [map_server]
有些朋友会出现如下两个:
-
ERROR: cannot launch node of type [move_base/move_base]: can't locate node [move_base] in package [move_base]
-
ERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package [map_server]
这是因为这两个包没有安装,但是单独安装以上两个包的时候,又会出现:
ros-indigo-map-server :Depends: libsdl-image1.2-dev but it is not going to be installed
但是单独安装上面的那个包,又会出现其他的包问题。。。。
在google、百度、answers.ros.org查阅,发现是包依赖问题,解决方法:使用aptitude命令,可以解决包依赖的问题。
这个方法是对的,但是我这边无效,估计是自己rbx1的包有问题吧,所以彻底点我将rbx1删除了,重新安装过apt-get install,并且使用
sudo aptitude install libsdl-image1.2-dev
安装相关依赖,结果就可以跑起来了。具体操作如下
-
#切换到自己的ws空间
-
cd ~/catkin_ws
-
#移除包
-
rm -rf rbx1/
下载好后,使用aptitude安装相关依赖
-
sudo aptitude install libsdl-image1.2-dev
-
sudo aptitude install ros-indigo-navigation
-
sudo aptitude install ros-indigo-map-server
最后
以上就是忧心摩托为你收集整理的cannot launch node of type [map_server/map_server]: can't locate node [map_server] in packageERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package的全部内容,希望文章能够帮你解决cannot launch node of type [map_server/map_server]: can't locate node [map_server] in packageERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复