PX4 / PX4-Autopilot

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

ERROR: cannot launch node of type [px4/px4]: can't locate node [px4] in package [px4] #14762

Open pintu-iitbhu opened 4 years ago

pintu-iitbhu commented 4 years ago

Describe the bug ERROR: cannot launch node of type [px4/px4]: can't locate node [px4] in package [px4]

I am getting the above error while launching gazebo7 on ubuntu 16.04, drone has been launched in gazebo environment but i am not able to connect with FCU while runing with mavros node.

kamilritz commented 4 years ago

Did you build the gazebo simulation? By DONT_RUN=1 make px4_sitl gazebo

pintu-iitbhu commented 4 years ago

YES I did.

I have launched the gazebo by running the following codes.

DONT_RUN=1 make px4_sitl_default gazebo source ~/catkin_ws/devel/setup.bash # (optional) source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd) export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo roslaunch px4 posix_sitl.launch

On Sun, Apr 26, 2020 at 10:06 PM kritz notifications@github.com wrote:

Did you build the gazebo simulation? By DONT_RUN=1 make px4_sitl gazebo

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

kamilritz commented 4 years ago

Then I don't know what could be the issue, sry. I am sure, someone else can.

0b10010010 commented 4 years ago

Hello,

I was getting similar error along with permission error and I was able to mitigate the issue by running the scripts in: https://dev.px4.io/master/en/setup/dev_env_linux_ubuntu.html

Hope this helps

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

rsj007 commented 2 years ago

I also met the problem. The reason is that PX4 is not installed successfully. My error is libgazebo-dev failed. I installed gazebo9 in ubuntu16.04 and solved.