Standard naming conventions used in ROS

Here we are using the text HelloWorld to demonstrate the naming patterns we use in ROS:

  • HelloWorld: This name starts with an uppercase letter, and each new word starts with an uppercase letter with no spaces or underscores.
  • helloWorld: In this naming convention, the first letter will be lowercase, but new words will be in uppercase letters without spaces.
  • hello_world: This only contains lowercase letters. Words are separated with underscores.
  • HELLO_WORLD: All letters are uppercase letters. Words are separated by an underscore.

The following are the naming conventions followed by each component in ROS:

  • Packages, topics/services, files, libraries: These ROS components follow the hello_world pattern ...

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.