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

Revision history [back]

click to hide/show revision 1
initial version

The problem here is that you're advertising one type of message, and calling publish with a different type of message.

This only worked in older versions of ROS because there was a bug in the publisher that didn't check the data type on publish, and I guess you were able to get away with it because the serialized version of your message just happened to be the same as a std_msgs/Float64