ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Use rostopic or rqt_graph to introspect and make sure that your subscriber is actually subscribed to the right topic, and have a look at the publisher and subscriber logs to make sure that there isn't a topic type mismatch.
Also note that the subscriber only exists for as long as the subscriber
object exists; if the subscriber
object goes out of scope and is destructed, it unsubscribes from that topic.