ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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).