Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The debugger is probably stopping the entire ROS infrastructure in your process before it's had a chance to actually publish your message. ros::spinOnce() only spins the processing loop once, and when that returns and the debugger stops your process, the message might not have made it through the entire publishing process yet.