raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: gazebo_ros

电脑为Ubuntu16.04,安装来ROS (kinetic版本)和 gazebo(9版本),在做PX4固件仿真,想实现外部控制Pixhawk,但是运行

roslaunch px4 posix_sitl.launch	

总是报错,部分如下:

raise ResourceNotFound(name, ros_paths=self._ros_paths)
ResourceNotFound: gazebo_ros
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/dqq/catkin_ws/src/mavlink
ROS path [2]=/home/dqq/catkin_ws/src/mavros/libmavconn
ROS path [3]=/home/dqq/catkin_ws/src/mavros/mavros_msgs
ROS path [4]=/home/dqq/catkin_ws/src/mavros/mavros
ROS path [5]=/home/dqq/catkin_ws/src/mavros/mavros_extras
ROS path [6]=/home/dqq/catkin_ws/src/mavros/test_mavros
ROS path [7]=/opt/ros/kinetic/share
ROS path [8]=/home/dqq/src/Firmware
ROS path [9]=/home/dqq/src/Firmware/Tools/sitl_gazebo

参考一篇外文博客 ,灵感一来,解决了问题。
执行指令如下:

sudo apt-get install ros-kinetic-gazebo9-ros-pkgs

然后重新执行

roslaunch px4 posix_sitl.launch	

能够正常运行。

附加正常和不正常图片:
raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: gazebo_ros_第1张图片
raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: gazebo_ros_第2张图片
对了,半透明终端,重新设置Ubuntu背景是不是很有个性呢?哈哈哈,扯远了,解决bug是关键。

你可能感兴趣的:(PX4,ROS,DEBUG)