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

Revision history [back]

Two issues:

  1. The command should be: rostopic pub servo std_msgs/UInt16 "data: 180". You have to specify what the fields of the message have. The -180 is intrepreted as command line Options (and rightly so). Just hit Tab after you add the type, and the fields appear automatically.
  2. Putting a negative value in an unsigned type is just wrong and will throw another error.