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

Revision history [back]

x = variable.data

For more details about the type itself check thislink text

x = variable.data

For more details about the type itself check thislink text

x = variable.data

For more details about the type itself check this

In your case, variable has the type std_msgs::Float64 . variable.data would be just a double. declare x as double.

x = variable.data

For more details about the type itself check this

In your case, variable has the type std_msgs::Float64 std_msgs::Float64 . variable.data variable.data would be just a double. declare x as double.