How mogi-ros/week-1-2-introduction-to-ros2 works
• “bme_ros2_tutorials_py” – contains Python nodes such as simple “hello_world”, publishers (both procedural and OOP), subscribers (again both simple and OOP), and service client/server examples.
• “bme_ros2_tutorials_cpp” – contains C++ examples for publisher and subscriber nodes.
• “bme_ros2_tutorials_interfaces” – defines custom ROS2 service messages (e.g., CustomCalc.srv) to be used by the service examples.
• “bme_ros2_tutorials_bringup” – holds your launch files (written in Python) that bundle several nodes together with options such as topic remapping and parameter initialization.
Main Components
• ROS2 package as a separate module:
• A module for “bme_ros2_tutorials_py” that contains multiple Python nodes:
– “py_hello_world” (a basic node)
– “py_publisher” and “py_publisher_oop”
– “py_subscriber” and “py_subscriber_oop”
– “python_publisher_with_parameter” (illustrating dynamic parameter change)
– Service server and service client nodes.
• A module for “bme_ros2_tutorials_cpp” with nodes such as “publisher_cpp” and “subscriber_cpp.”
• A module for “bme_ros2_tutorials_interfaces” that defines custom service interfaces.
• A module for “bme_ros2_tutorials_bringup” which contains the launch files used to drive many nodes together, perform remappings, and set parameters.
• Optionally, show the “assets” folder representing documentation resources and example images like rqt_graph screenshots and turtlesim display images, which support visualization and demonstration of node connectivity.
Relationships and Interactions
• In the launch module, show that it orchestrates multiple nodes (both Python and C++) together and applies remapping (for example, remapping “topic” to “another_topic” in some cases). You might encapsulate the launch file “publisher_subscriber.launch.py” as a container that spawns these nodes.
Architectural Patterns and Design Principles
• Modularity: each package is self-contained and developed independently yet communicates via standard ROS2 topics and services.
• Point out the language agnostic design: C++ and Python nodes coexist and interact seamlessly through ROS2 topics and services.
• Use of launch files to encapsulate node startup, parameter assignment, and topic remapping—a key architectural pattern in larger robotics systems.
Technologies and Frameworks
• Optionally, include external tools such as rqt_graph, turtlesim, and terminal environments that are discussed in the README.