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

Publisher for ardrone

asked 2013-12-20 07:11:51 -0600

Cookie gravatar image

updated 2014-01-28 17:05:25 -0600

ngrennan gravatar image

Hi there, i have a problem with publishing sth. to the ardrone. I am using ROS Hydro and this is a part of my code for one of the publishers i am using:

(in the header-file)

ros::Publisher land_pub;

(in cpp-file)

ros::NodeHandle nh; land_pub = nh.advertise<std_msgs::empty>("ardrone/land", 1);

(with a button-klick of my joypad i want to publish this message:)

std_msgs::Empty emptymsg; land_pub.publish(emptymsg);

But when i am using "rostopic echo ardrone/land" (or takeoff) nothing is published and my ardrone does nothing... but if i am publishing under this topic via terminal it works... could anybody help me solving this, please?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-12-21 06:49:12 -0600

Cookie gravatar image

Problem solved by myself :)

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-12-20 07:11:51 -0600

Seen: 230 times

Last updated: Dec 21 '13