Unit 07 · overview
Unit 7 — Packages and Python Nodes
Until now, you have mostly operated other people's ROS 2 nodes.
Now you build your own.
The course stays Python-first:
ROS WORKSPACE
└── src/
└── robotnix_pubsub/
├── package.xml
├── setup.py
├── setup.cfg
├── resource/robotnix_pubsub
└── robotnix_pubsub/
├── __init__.py
├── talker.py
└── listener.py
Lessons
- A ROS Package Is a Deployable Unit
- Create an
ament_pythonPackage - Read the Generated Package Tree
package.xml: Declare What the Package Issetup.py,setup.cfg, and Entry Points- Write the First
rclpyNode - Build a Publisher Node
- Build a Subscriber Node
- Declare Dependencies and Executables
- Build, Source, Run, and Inspect
- Diagnose Python Package Failures
- Unit Mission: Modify and Defend Your System
Artifact
A learner-built Python ROS 2 package containing two nodes that exchange messages over a topic, plus build/graph evidence and one meaningful modification.
Source attribution: adapted from ROS 2 Jazzy beginner package and Python pub/sub tutorials in Gh0stlyKn1ght/ros2_documentation, CC BY 4.0.