Zhefan-Xu / CERLAB-UAV-Autonomy

[CMU] A Versatile and Modular Framework Designed for Autonomous Unmanned Aerial Vehicles [UAVs] (C++/ROS/PX4)
MIT License
308 stars 43 forks source link

Can not make quadrotor takeoff #14

Closed flyflyly closed 6 months ago

flyflyly commented 6 months ago

Hello! After I run "roslaunch uav_simulator start.launch", I can not make this quadrotor takeoff by keyboard control. 2024-05-05 10-28-51屏幕截图

flyflyly commented 6 months ago

2024-05-05 11-56-02屏幕截图 The "corridor_dynamic_9.world" in my computer is the above, which is very different from yours. Why ? And I can not use "rosrun autonomous_flight takeoff_and_hover_node" commend to make quadrotor takeoff.

Zhefan-Xu commented 6 months ago

@luyao2001 Thanks for your info. What I suggest to check:

  1. When you try taking off the drone using keyboard controller, you have to click on the keyboard controller.
  2. The Gazebo Plugin path might not be set correctly? This is related to putting this line source path/to/uav_simulator/gazeboSetup.bash into your ~/.bashrc. To check whether you have set the plugin path correctly, do echo $GAZEBO_PLUGIN_PATH, if everything is set correct, you should be able to see a path set under uav_simulator pkg.

You are welcome to provide more information.

flyflyly commented 6 months ago

Thank for you reply. I solve this problem by checking echo $GAZEBO_PLUGIN_PATH, I find there are no this project path. Then I add it to solve this problem.