Land my AR.Drone (the code of a service that already exists)
Hello everyone,
I need to land my AR.Drone 2.0. I know that if I write rostopic pub /ardrone/land std_msgs/Empty
in the terminal, my drone lands. But it need to make it smoother. For example, I would like to descend as when I post that command line when some conditions are met, and when any of the conditions are not right, then it stops landing.
I'm trying to find the code that makes that command line work, but I couldn't find it. If it's written in Python it would be perfect.
Can anyone please tell me where I can get that code from?
Thanks :)
Asked by Dylan on 2019-06-15 22:08:22 UTC
Answers
I can't find the exact documentation on this, but if you're using the ardrone_autonomy
package then using that topic is the only way to initiate a land command. I believe that this is at least partly due to the SDK provided by Parrot.
Edit:
Like I said, the landing functionality is handled by the SDK
Thanks to the AR.Drone 2.0 onboard sensors take-off, hovering, trimming and landing are now completely automatic and all manoeuvres are completely assisted.
That's from page 16, section 2.6 of the documentation for the SDK (that's a link to a ZIP of the SDK, with the documentation in it).
Asked by jayess on 2019-06-16 01:02:33 UTC
Comments
But I need to modify that landing because I need to make it more precise (when you write that land command, the vehicle usually moves a lot in x and y coordinates).
Asked by Dylan on 2019-06-16 09:06:50 UTC
Comments