ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Turn drone in given angle (left or right turn)

asked 2017-10-02 03:53:38 -0600

Steve_RosUsr gravatar image

Hy!

Is there any - already developed - way to turn my flying parrot ardrone 2.0 ? I can't find any info about this. I want a topic or service, that will turn my drone for example 90 degrees left, if i type the command with the "90" parameter.

Please help me, it is urgent!!! Thanks in advance!

edit retag flag offensive close merge delete

Comments

Have you looked at the docs? https://ardrone-autonomy.readthedocs....

jayess gravatar image jayess  ( 2017-10-02 13:37:04 -0600 )edit

Yes, i did. But as you can see in the title of the post, i want to give an angle as parameter, not speed value.

Any useful answers will be appreciated.

Steve_RosUsr gravatar image Steve_RosUsr  ( 2017-10-04 05:20:41 -0600 )edit

Well, the title doesn't say that exactly but I did give you an alternative to ardrone_autonomy (actually it uses ardrone_autonomy) which may do what you want. Hopefully it's useful.

jayess gravatar image jayess  ( 2017-10-04 09:50:35 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-10-04 09:49:10 -0600

jayess gravatar image

There are no services or topics to do this using ardrone_autonomy that I have seen. You either have to develop it yourself or you can use tum_ardrone which is based on ardrone_autonomy. It includes a GUI in which you can send commands similar to how you want to send them. An example from the README,

goto [doube x] [double y] [double z] [double yaw]

flies to position (x,y,z yaw), relative to current reference point. blocks until target is reached according to set parameters

So, you would type goto 0 0 0 90.0 in order to rotate 90 degrees. You can also write flight paths as a .txt file and load them from the GUI and have it execute them. If you want to do this via a node you may have to look at their code and see how they did this and copy it.

Here are the GitHub repo and entry on the ROS wiki.

edit flag offensive delete link more
0

answered 2017-10-07 04:53:24 -0600

Steve_RosUsr gravatar image

I tried tum_ardrone package, but my first attempts failed... In my project i have an ultrasonic indoor localization system, with a moving beacon on the quadrocopter. First i want to send the drone to a specific location (which is in the localization system's coordinate system).

So the turning of the drone is the duty of the algorithm, i should not send parameters to the drone from gui.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-10-02 03:53:38 -0600

Seen: 595 times

Last updated: Oct 07 '17