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

So figured out a solution. Very simple mistake on my part, the ROS publisher needed a string so I just did the following,

std_msgs::String msg; std::stringstream ss; ss << *coefficients2; msg.data = ss.str(); pubCyl.publish(msg);