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

Help understanding the notation used on ar-drone tutorial

asked 2013-08-17 14:31:33 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi everyone, for the tutorial link:https://github.com/AutonomyLab/ardrone_autonomy#cameras</a">text, under

Sending Commands to AR-Drone

It shows three highlighted commands which are: ardrone/takeoff ardrone/land and ardrone/reset. These are topics so is the full commands actually: rostopic /ardrone/takeoff rostopic /ardrone/land androstopic /ardrone/reset ?

Also, to fly the drone after takeoff, would I do something like: rostopic cmd_vel -linear.x to move the drone backwards?

I am trying to understand how to read the commands listed, sorry that this is basic.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-08-17 20:24:19 -0500

Alexandr Buyval gravatar image

updated 2013-08-17 20:27:45 -0500

Hi,

If you want to send a message from terminal you should use the command like:

rostopic pub /ardrone/land std_msgs/Empty

For /cmd_vel you should use the command like:

rostopic pub /cmd_vel geometry_msgs/Twist  '{linear:  {x: 0.1, y: 0.0, z: 0.0}, angular: {x: 0.0,y: 0.0,z: 0.0}}'

Alex

edit flag offensive delete link more

Comments

Brilliant! One thing that I would have not known from the tutorial is std_msgs/ Is this used to say 'I am going to send an empty message' ?

JP gravatar image JP  ( 2013-08-18 01:40:33 -0500 )edit

Yes, it is.

Alexandr Buyval gravatar image Alexandr Buyval  ( 2013-08-18 20:47:59 -0500 )edit

thank you !

JP gravatar image JP  ( 2013-08-18 23:55:40 -0500 )edit

Just to check, for the section https://github.com/AutonomyLab/ardrone_autonomy#cameras am I correct to say the commands to get a stream of the front and bottom cameras are: $ rostopic pub ardrone/front/image_raw image_transport and $ rostopic pub ardrone/bottom/image_raw image_transport ?

JP gravatar image JP  ( 2013-08-19 06:01:53 -0500 )edit

Hi. Do you want to toggle camera?

Alexandr Buyval gravatar image Alexandr Buyval  ( 2013-08-19 20:25:43 -0500 )edit

hi, nope I would like to display the front facing camera on my computer screen if possible.

JP gravatar image JP  ( 2013-08-19 23:58:23 -0500 )edit

You need to use image_view package. Like this "rosrun image_view image_view image:=/ardrone/image_raw"

Alexandr Buyval gravatar image Alexandr Buyval  ( 2013-08-20 03:21:50 -0500 )edit

Perfect. Thank you Alexandr!

JP gravatar image JP  ( 2013-08-20 14:05:13 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-08-17 14:31:33 -0500

Seen: 999 times

Last updated: Aug 18 '13