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

Revision history [back]

That error indicates that some node is publishing a sensor_msgs/Joy message on /joy but your node is expecting a joy/Joy message.

It appears tutorial was not updated for Electric. In Electric, the Joy message was migrated to the sensor_msgs package and saw the addition of a Header field.

The quick fix for your teleop code should be change from joy::Joy to sensor_msgs::Joy, updating the includes and manifest dependencies appropriately.