ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The std_msgs/UInt16
message is a wrapper around an integer type, not an integer type. This means that you can't assign directly into it; rather you have to set its data
field. Try:
deg.data = l_scale_*joy->axes[linear_];