Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The trouble here is that rostopic pub is not a calculator - it's expecting numbers, and instead you're giving it an equation (effectively a string).

Instead, try:

  rostopic pub -1 /sweep toro/Sweep -- -1.57 1.57 1.57 3

P.S. - The ROS message type for doubles is float64 (since most doubles are 64-bit floating-precision numbers)