How to publish and subscribe float/double type value on a topic?
As far as I know, callback function used for the subscriber in the ROS tutorial are all string type, and callback functions are void type.
However, I need to use the subscribed values (e.g. velocities) for other purposes. Is there a way to pass and receive non-string type messages?
Thanks.
How do you modify the callback function prototype below?
void chatterCallback(const std_msgs::String::ConstPtr& msg)