ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
Publishers and subscribers must use the same message type.
A std_msgs::Float64
and a double
are different c++ types. Your publishing code must create a `std_msgs::Float64
object, set the value, then pass that msg to publish().
![]() | 2 | No.2 Revision |
Publishers The publisher declaration and subscribers publish method must use the same message type.
A std_msgs::Float64
and a double
are different c++ types. Your publishing code must create a `std_msgs::Float64
object, set the value, then pass that msg to publish().