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

Revision history [back]

click to hide/show revision 1
initial version

I just confirmed through experimentation that adding an = sign after any variable name in a ROS *.msg message definition file appears to be how to set constants, and all variables with an = after them show up in the autogenerated C++ *.h files as static constexpr constants.

I just confirmed through experimentation that adding an = sign after any variable name in a ROS *.msg message definition file appears to be how to set constants, and all variables with an = after them show up in the autogenerated C++ *.h files as public static constexpr constants.constants inside the autogenerated class (struct actually).