PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.53k stars 13.52k forks source link

not able to launch posix_sitl.launch #9568

Closed ziggBee30 closed 6 years ago

ziggBee30 commented 6 years ago

Hi

I have followed the instruction from here https://dev.px4.io/en/simulation/ros_interface.html and after successful build i did roslaunch px4 posix_sitl.launch and its showing me : ResourceNotFound: gazebo_ros ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/home/zubair/px4_ws/src/mavlink ROS path [2]=/home/zubair/px4_ws/src/mavros/libmavconn ROS path [3]=/home/zubair/px4_ws/src/mavros/mavros_msgs ROS path [4]=/home/zubair/px4_ws/src/mavros/mavros ROS path [5]=/home/zubair/px4_ws/src/mavros/mavros_extras ROS path [6]=/home/zubair/px4_ws/src/mavros/test_mavros ROS path [7]=/opt/ros/kinetic/share ROS path [8]=/home/zubair/src/Firmware ROS path [9]=/home/zubair/src/Firmware/Tools/sitl_gazebo ROS path [10]=/home/zubair/Firmware ROS path [11]=/home/zubair/Firmware/Tools/sitl_gazebo

I am using ROS Kinetic by the way can anyone help me with this ??

hamishwillee commented 6 years ago

What Ubuntu platform are you running on and what script did you use to set up the environment?

ziggBee30 commented 6 years ago

Thanks, I just solved the problem by using "aptitude" and by installing ros packages again using aptitude as I had broken packages..

To people facing the same problem.

On Thu 31 May, 2018, 00:20 Hamish Willee, notifications@github.com wrote:

What Ubuntu platform are you running on and what script did you use to set up the environment?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PX4/Firmware/issues/9568#issuecomment-393350324, or mute the thread https://github.com/notifications/unsubscribe-auth/AQrq2wAXE3Eiy6X5FQObXbn4N2tku9zHks5t3ylVgaJpZM4UUF1_ .

lamping7 commented 6 years ago

Yes. gazebo_ros is the package that allows Gabezo to interface with ROS. Possibly you didn't install ROS with desktop-full, which contains this package.