0
$\begingroup$

Rosanswers logo

I attempt to publish a topic/messages in a callback member function (refer here in the answers section), but, it doesn't work. The code is compiled without any complaints, however, when I issue a command to see the published message, say, ros echo -c /topic, it shows nothing there.

Is it not doable publishing it in the callback member function? Are there any alternatives to that?


Originally posted by alfa_80 on ROS Answers with karma: 1053 on 2011-12-14

Post score: 0


Original comments

Comment by Dan Lazewatsky on 2011-12-15:
Are you sure your callback is being called?

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Yes it is doable.

Other than that, you will need to give more information.


Originally posted by dornhege with karma: 31395 on 2011-12-14

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

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