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

Revision history [back]

As already requested by in comments, posting complete code would be helpful (Edit your original posting for that). To do a shot in the dark: What you describe could happen if your subscriber object is destroyed before your loop with ros::spin() is reached. Can´t tell if that´s the case from the abridged version you posted so far, though.