Function hatchbed_common::isValidParamName
Defined in File ros_names.h
Function Documentation
-
inline bool hatchbed_common::isValidParamName(const std::string &name)
Returns true when name is a valid ROS 2 parameter name component.
Rules (matching those of rmw_validate_node_name):
must not be empty
must not exceed 255 characters
first character must be a letter (a-z, A-Z) or underscore
remaining characters must be alphanumeric (a-z, A-Z, 0-9) or underscore
These are the same constraints enforced on ROS 2 node names and are suitable for any string used as a single component of a dotted parameter name (e.g., the prefix before a ‘.’ separator).