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

basic question in understanding publishing and subscribing

asked 2011-03-20 09:32:19 -0500

avin111 gravatar image

I have a node that publishes the distance and the angle to be traversed by the rover.It is subscribed by another node which publishes the cmd_velocity on the basis of the topic(distance and angle) subscribed.Now i will have have a array of distances and angles to be sent to the other node.How do i make sure that every message is published.I have tried to keep the buffer size but still it is loosing messages in between.Basically the message has to wait for the previous message to be executed and then publish the next message. Could you please suggest a way to come across this?Please excuse me if this is a silly question .Thanking you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-03-20 21:47:57 -0500

Miguel Prada gravatar image

I'm not sure if I understood well what you're trying to do, but if you need to start an action (e.g. move this distance and turn this angle) and wait until it's complete to send the next one I'd say actionlib is much more suited to your needs than topics.

See http://www.ros.org/wiki/actionlib

Hope that helps.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-20 09:32:19 -0500

Seen: 825 times

Last updated: Mar 20 '11