Ask Your Question
0

Publishing a topic/message in a callback member function

asked 2011-12-14 22:13:15 -0500

alfa_80 gravatar image

updated 2011-12-14 22:18:49 -0500

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?

edit retag flag offensive close merge delete

Comments

Are you sure your callback is being called?
Dan Lazewatsky gravatar imageDan Lazewatsky ( 2011-12-15 02:21:58 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-12-14 22:24:32 -0500

dornhege gravatar image

Yes it is doable.

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-12-14 22:13:15 -0500

Seen: 641 times

Last updated: Dec 14 '11