Why does a bug in a robot's camera code stop its wheels? Because the robot is one big program. ROS 2 splits it into nodes: small programs that each do one job and have one name. In this video you try the one-big-program robot, watch it fail, then split it into nodes, write a minimal rclpy node line by line (init, the Node class, spin, shutdown), learn why two robots can both run a node called camera (namespaces: /robot1/camera vs /robot2/camera), see how rclpy and rclcpp share one core (rcl), and look at it all with ros2 node list and ros2 node info.
Chapters
00:00 Why one bug stops the whole robot
00:42 Try it: one big program
02:21 Nodes: one job, one name
04:06 Your first node, line by line (rclpy)
05:23 Names and namespaces
07:03 rclpy, rclcpp and the shared core (rcl)
08:09 See it yourself: ros2 node list and node info
08:47 The robot is a graph, and what to try next
Try it on your machine (ROS 2 Lyrical, the current LTS):
ros2 run turtlesim turtlesim_node
ros2 node list
ros2 run turtlesim turtlesim_node --ros-args -r __ns:=/robot2
ros2 node list
Part of ROS 2 Explained. Next: topics, how nodes talk.
Terminal output in this video is typed as an example, not captured from a running system.
Sources: docs.ros.org (Concepts: Nodes, Client libraries, Composition; Tutorials: Understanding nodes; How-to: Node arguments), design.ros2.org (Topic and service names), ros2cli source (ros2 node list). #ROS2 #robotics #rclpy