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

Revision history [back]

To me it looks like you are trying to call publish on an uninitialized publisher object. Make sure that you initialize it by calling NodeHandle::advertise before you are trying to publish anything. Btw., you can check if a publisher is valid by:

if( !publisher ) {
  ROS_WARN("Publisher invalid!");
}