Style Guide - acfr/ros2_template_pkg GitHub Wiki
-
Package name should be named like
ros2_<some>_pkgwhere<some>is a short descriptive name of the package -
Package name must
ros2as prefix so its easier to distinguid between ros1 and ros2 packages that may be designed for similar tasks -
All publisher or subscriber nodes must be named in this format
<some>_publisher_nodeor<some>_subscriber_node -
All action nodes must be named in this format
<some>_action_client_nodeor<some>_action_server_node -
All service nodes must be named in this format
<some>_service_client_nodeor<some>_service_server_node -
Where
<some>is a short descriptive name of the task the node does. Example: Fibonacci or AddTwoInts -
To invoke a node you can run the python script from its root folder like below must end with
_nodepostfix. This makes it easier to distinguish which files are node files without opening them.