HKUST-Aerial-Robotics / Teach-Repeat-Replan

Teach-Repeat-Replan: A Complete and Robust System for Aggressive Flight in Complex Environments
GNU General Public License v3.0
962 stars 252 forks source link

Can not pilot the drone using my keyboard and errors occured when the system is launched by ./trr_simulation.sh #5

Closed KangchengLiu closed 5 years ago

KangchengLiu commented 5 years ago

Hi, Gaofei and Boyu, Nice project and I like this Teach-Repeat-Replan. Now I followed your advices and install the packages and the package can be launched. But I can't pilot the drone using my keyboard. And some errors occured and I have no idea how to deal with them. rviz

  1. The joystick force feedback can not be opened. error_1
  2. 2 processes have died. error_2 error_3 I will appreciate if you can help me, thanks!
USTfgaoaa commented 5 years ago

@KangchengLiu Hi, I haven't encountered problems with joystick before, but I will try to help you fix it. May you comment this line 'rosrun joy joy_node & sleep 0.2;' in the trr_simulation script, and try launch it again to see whether the process die?

USTfgaoaa commented 5 years ago

@KangchengLiu Do you connect a joystick to your computer?

KangchengLiu commented 5 years ago

It finally turned out that the process died because the sleep time between roslaunch trr_global_planner and roslaunch trr_global_planner was too short that my laptop can not deal with it.

You can fix it by doing roslaunch one by one or increase the sleep time in the trr_simulation script.

Thanks Gao Fei for his kind help!