对turtlebot机器人进行gazebo仿真时出现Failed to load nodelet [/depthimage_to_laserscan]

来源:互联网 发布:赛诺数据和gfk 编辑:程序博客网 时间:2024/05/17 22:17

       笔者在对turtlebot机器人进行gazebo仿真时出现Failed to load nodelet [/depthimage_to_laserscan] of type [depthimage_to_laserscan/DepthImageToLaserScanNodelet] ,以为没什么问题,却在rviz中构建地图时接收不到地图信息,等了半天,电脑都没反应,就觉得那是个问题,于是乎就开始解决问题了。

      查阅资料,了解到,他是把kinect数据转化为激光数据的,用来构造2D地图的。而出现问题的意思是:找不到depthimage_to_laserscan节点,然后我找自己的功能包确实搜不到那个节点功能包。我突发奇想地觉得,我把它下下来,在编译一下,没准就好了,结果就真的好了。

     在官网搜depthimage_to_laserscan节点功能包,找到:http://wiki.ros.org/action/fullsearch/depthimage_to_laserscan?action=fullsearch&context=180&value=linkto%3A%22depthimage_to_laserscan%22

找到Source: git https://github.com/ros-perception/depthimage_to_laserscan.git (branch: indigo-devel)

打开命令窗口,进入工作空间catkin_ws/src,输入下面的指令就能下载了:

      git clone https://github.com/ros-perception/depthimage_to_laserscan

0 0
原创粉丝点击