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

Revision history [back]

Since rostopic pub uses YAML for parsing command line arguments, I'm not sure it supports constants (there's nothing about constants on this page, for example: ROS/YAMLCommandLine). What you could use, however, is rosh, which uses an interactive Python specification. See here: rosh/Overview/Topics#rostopic_pub.