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

Revision history [back]

If you've included a ROS_INFO statement in your callback, and that message doesn't show up in rosconsole or the terminal where you started the node, then your cb is not being executed.

There are a few possible reasons that your callback would not be executed... but I'm going to guess at a couple likely reasons since you don't run into any build errors. I'm guessing that this is a callback for a subscribed topic. The callback for a subscribed topic is only executed when new data is published to the topic you've subscribed to.

This suggests that A) no data is being published to the topic you are subscribed to, or B) you are subscribed to a topic that doesn't exist

The rostopic and rqt_graph tools can help you investigate these possibilities.

  • http://www.ros.org/wiki/rostopic
  • http://www.ros.org/wiki/rqt_graph
  • http://www.ros.org/wiki/ROS/Tutorials/UnderstandingTopics