0
$\begingroup$

Rosanswers logo

I am sending a velocity command message to turtlesim from a C++ program. If I put the message in my main(), it does not appear to execute even though it shows up as a rostopic. If I put the the message in a 'for' or 'while' loop for some number of iterations, it will execute. I thought that (according to the tutorials) that turtlesim executed each velocity command for one second. Can anyone tell me why a single command does not execute for the one second interval?

Running lucid, electric.

Thanks.


Originally posted by Paul0nc on ROS Answers with karma: 271 on 2011-10-18

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Hi Paul, have a look at publish exactly one message..

This might be helpful


Originally posted by Mimax with karma: 174 on 2011-10-20

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.