Ask Your Question
0

Setting GPS waypoints in tum_simulator

asked 2016-02-26 06:35:21 -0600

djdmorrison gravatar image

From the following tutorial: https://github.com/dougvk/tum_simulator I've been able to simulate flying an ardrone in gazebo. I can receive gps coordinates/ latitude from the /fix rostopic. However, I can't see a way to set gps-waypoints?

I've tried using the gps-waypoint branch of ardrone_autonomy and enabling nav_data_gps in a number of places in the launch files but nothing seems to work.

Is this possible?

edit retag flag offensive close merge delete

Comments

did u solve that autopilot problem? if so, could u tell me how please?

Trinto gravatar imageTrinto ( 2016-07-22 07:29:32 -0600 )edit

I didn't unfortunately. I ended up using the x and y coordinates of the drone as if they were lat-lng coordinates and manually moving towards points by rotating towards the correct direction and moving forward manually.

djdmorrison gravatar imagedjdmorrison ( 2016-07-22 08:51:08 -0600 )edit

This was only really a solution as I was flying in straight lines and rotating at right angles however. I'm sure you could work out more complex flight paths using a bit of maths though.

djdmorrison gravatar imagedjdmorrison ( 2016-07-22 08:51:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-11 11:42:01 -0600

Pickman gravatar image

I've done precisely that a few months ago. I managed to create a separate controller that publishes appropriate velocity commands to the topic and reads the position. So you would have to create a closed loop. As far as I know there are no libraries for autonomous flight compatible with tum_simulator.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-26 06:35:21 -0600

Seen: 232 times

Last updated: Aug 11 '16