ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

Naming conventions for ros2 msgs


Will it be allowed to put ‘_’ in the name of a ros2 msg?

In ros2 wiki it is not defined:

In ros1 wiki it is mentioned to put the name in camelcase and therefore no underscore seems to be allowed: under 2.3 Messages

Is this also the case for ros2?

For ROS 2 the format of the interface files is specified in The naming scheme for the filename hasn’t changed since ROS 1 and still only allows alphanumeric characters.

1 Like