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

How can I know the AR.Drone's height in order to control it?

asked 2015-04-08 05:24:28 -0600

saikishor gravatar image

I tried for getting the value of "altd" in /ardrone/navdata and what ever the position of the drone and even the state of drone like flying, landing, landed.. etc the "altd" value is always zero. I want to use this value for many things so please someone help me in getting the height of the drone.

Below is the screenshot of navdata of my drone when subscribed to /ardrone/navdata topic:

http://i58.tinypic.com/29wr2au.png

edit retag flag offensive close merge delete

Comments

What is the firmware version of the AR-Drone? Is it AR-Drone 1.0 or 2.0?

Mani gravatar image Mani  ( 2015-05-15 21:31:32 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-01-04 02:10:18 -0600

jayess gravatar image

I believe that you can get altitude data even if it is not in flight by subscribing to the /ardrone/navdata_altitude topic. You will have to modify the ardrone.launch file so that the enable_navdata_pressure_raw parameter is set to true. Just copy and paste this:

<param name="enable_navdata_pressure_raw" value="true" />

and add it between the <node> and </node> tags of the launch file. In order to use this data you will have to include the navdata_altitude message/datatype and access it in your callback function using data.altitude_raw.

edit flag offensive delete link more

Comments

Wow, that sounds cool and I think it will work. Thank you. It is helpful.

saikishor gravatar image saikishor  ( 2017-02-19 08:38:05 -0600 )edit
0

answered 2015-06-05 16:05:45 -0600

saikishor gravatar image

It will only publish altitude data after takeoff operation

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-08 05:24:28 -0600

Seen: 1,613 times

Last updated: Jan 04 '17