Camera node
Takes pictures so Chiku can see what is in front.
Like Chiku's eyesEvery robot has many jobs: seeing, thinking, moving and talking. Today you'll find out how ROS 2 shares these jobs among small helpers called nodes.
Hi! I'm Chiku, a delivery robot. Help me get my team ready, and we'll deliver a lunchbox together!
Think about a cricket team. The bowler bowls. The batter hits the ball. The wicketkeeper catches. The fielders run and stop the ball.
Each player has one main job. Nobody asks the bowler to bowl, bat and keep wickets all at the same time! The team wins because every player does their own job, and they all work together.
Robots that use ROS 2 work in the same way.
ROS 2 stands for Robot Operating System 2. It has "Operating System" in its name, but it isn't like Windows or Android.
ROS 2 is a free toolbox of programs. It helps all the parts of a robot work together and talk to each other. Robots in factories, farms, warehouses, hospitals and science labs use it.
Engineers use ROS 2 to build robots, the way you use building blocks to build a house.
Anyone can download and use it, including schools and students.
Engineers from around the world build it together and share it.
A node is a small program that does one job for the robot.
A cricket team has players. A ROS 2 robot has nodes. Chiku the delivery robot has four of them:
Takes pictures so Chiku can see what is in front.
Like Chiku's eyesLooks at the pictures and decides where to go. Engineers often call this a planner.
Like Chiku's brainSpins the wheels to move Chiku forward, back, left and right.
Like Chiku's legsMakes Chiku beep and talk to people.
Like Chiku's mouthIf one node has a problem, engineers fix only that node. The others don't need to change.
A good camera node can be used again in many different robots.
Different people can build different nodes at the same time.
Each yellow card is a job. Tap a card, then tap the node that should do that job. On a computer, you can also drag a card into a node.
Pick a yellow job card to begin.
When every job has the right node, start the delivery and watch the team carry a lunchbox to Chiku's friend.
Something is wrong with Chiku! Read what is happening, then choose the node that needs fixing. Get it right on your first try to win a star.
On a computer with ROS 2 installed, engineers can ask, "Which nodes are running right now?" They type this command in a window called the terminal:
$ ros2 node list /camera /brain /motors /speaker
If Chiku were a real ROS 2 robot, this is what they would see: one line for each node. The slash ( / ) at the start is simply how ROS 2 writes node names.
By the end of this lesson, students can:
You need four paper chits labelled Camera, Brain, Motors and Speaker, and a tiffin box or book to deliver.
Looking ahead: Brain needed Camera's information to make decisions. In Lesson 2, students learn how real ROS 2 nodes send information to each other using topics.