pablopalafox / uav-autonomous-landing

Robust Visual-Aided Autonomous Takeoff, Tracking and Landing of a small UAV on a Moving Landing Platform for Life-Long Operation
MIT License
64 stars 23 forks source link

Coudn't let drone takeoff #2

Open andi00123456 opened 4 years ago

andi00123456 commented 4 years ago

Hello @pablorpalafox Nice to meet you again. Recently I am just reimplementing your project in my environment. I found some problems and hope not to bother you too much.

1, I just install a PS4joystick to let the ardrone takeoff, when I press L1, it just UGV begins to move with static drone. whatever I tried, it always UGV moves, I also tried rostopic pub /ardrone/takeoff <Tap complete>, it's still just UGV do a circular moving. I also checked rqt_graph, it shows the node of /ardrone/takeoff connect with it /summ_moves. It may be something wrong here. How to let drone take off, L2 doesn't work? 2, When I do roslaunch uav_vision detection_tracking.launch, it shows cannot launch node of type [uav_vision/platform_detection]: can't locate node [platform_detection] in package [uav_vision] ERROR: cannot launch node of type [uav_vision/platform_tracking]: can't locate node [platform_tracking] in package [uav_vision] I do check the rosnode list, it doesn't show these node activated.

Thanks for your help.

wbzhang233 commented 4 years ago

Hey dear andi: I met this issue too,how did you solve it?Waiting for your help.

andi00123456 commented 4 years ago

Hello @wbzhang233, There is no resolution to solve these bunch of issues, I gave up. It seems authors don't test their code from installation to see does everything goes well.

wbzhang233 commented 4 years ago

Thanks for your reply! Yep! I tried so many times but I never success. The authors didn't list these dependency and versions.I'm hoping for the authors' reply.

pablopalafox commented 4 years ago

Hey @wbzhang233 and @andi00123456! Sorry for the late reply, but really have to thank you both for having detected this issue. It should have been fixed in the last commit 555aae11046b85b1cae20a91c49580771470f5e1.

Also, I have updated the readme, since it was missing a last step. Essentially launching the Kalman filter.

Please do let me know if you find any further issue! I'm super grateful that you guys are looking into it. Hopefully I am able to check issues more often in the future.

wbzhang233 commented 4 years ago

Thanks for your reply! I test the latest repo but I failed again. I don't have a joystick but I think we can replace it partial with a input like this, it can replace "takeoff" in joystick.

rostopic pub -1 /ardrone/takeoff std_msgs/Empty

Indeed, I can make summit UGV takeoff successfully when I just roslaunch both.launch with this command. But when I catkin_make this repo , and roslaunch in three terminal successfully. I input that command to begin, it stucks.There are some tips to refer.

[ERROR] [1583160090.028606562, 7.471000000]: Failed to call service summit
[ERROR] [1583160090.030621373, 7.471000000]: RobotStateBroadcaster::Failed to call service ardrone
[ERROR] [1583160090.033358190, 7.471000000]: Failed to call service summit
[ERROR] [1583160090.038688817, 7.471000000]: RobotStateBroadcaster::Failed to call service ardrone

I don't know how to solve it because this repo is so enormous to me.Hoping for your help!

pablopalafox commented 4 years ago

Hey @wbzhang233, I'll try to look into this as soon as possible. Sorry for the difficulties.

But just to be sure, after catkin_make succeeds, the steps should be:

  1. Open terminal, source devel/setup.bash, and roslaunch takeoff both.launch
  2. Open other terminal, source devel/setup.bash, and roslaunch uav_vision detection_tracking.launch
  3. Open other terminal, source devel/setup.bash, and roslaunch ped_traj_pred kalman_pred.launch

After these steps, does it still fail in your case? If everything looks fine till now, you should be able to press L1 on a PS3 joystick and both the UGV (ground vehicle) and the UAV (drone) should start moving. (Since you don't have a joystick, you would have to set up a way to map the pressing of a key on your keyboard to replicate what the pressing of L1 in a PS3 joystick is doing now).

wbzhang233 commented 4 years ago

Hey @wbzhang233, I'll try to look into this as soon as possible. Sorry for the difficulties.

But just to be sure, after catkin_make succeeds, the steps should be:

1. Open terminal, `source devel/setup.bash`, and `roslaunch takeoff both.launch`

2. Open other terminal,  `source devel/setup.bash`, and `roslaunch uav_vision detection_tracking.launch`

3. Open other terminal,  `source devel/setup.bash`, and `roslaunch ped_traj_pred kalman_pred.launch`

After these steps, does it still fail in your case? If everything looks fine till now, you should be able to press L1 on a PS3 joystick and both the UGV (ground vehicle) and the UAV (drone) should start moving. (Since you don't have a joystick, you would have to set up a way to map the pressing of a key on your keyboard to replicate what the pressing of L1 in a PS3 joystick is doing now).

Hello pablorpalafox , I do handle these steps like you said, I wrote a Description about what I did in my CSDN account because I don't know how to upload pics in github.Click here to my description.

Thanks for your reply! Your are so kind.