ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your program terminates after your call to publish. This means that the message is probably not even send once as .publish does not block until the message was serialized and transmitted. Add a ros::spin(); afterwards to keep your program running.