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

    xiaoxiao2021-03-25  140

           笔者在对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:"depthimage_to_laserscan"

    找到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

    转载请注明原文地址: https://ju.6miu.com/read-10792.html

    最新回复(0)