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 :)