ROS 2 nodes, topics, and QoS

Understand how robot programs communicate, then inspect real messages.

Exercise brief·Beginner·5 min read

Opening the Python editor…

Requirements and learning goals

Before you start

  • Wendy CLI, Docker, QEMU, and ARM64 VM firmware installed
  • macOS or Linux; Windows users run the Linux tools in WSL2

You will be able to

  • Understand how robot programs communicate, then inspect real messages.

The browser exercise above works without extra setup. The project brief below assumes the listed prerequisites and gives you a task and checks to perform. Need a guided first project?

What is ROS 2?

ROS means Robot Operating System. is a set of libraries, communication tools, and conventions for building robot software. It runs on an operating system such as Linux. It lets you connect existing camera drivers, navigation software, and your own code instead of writing every integration yourself.

A node is a software component with one job, such as reading a camera or detecting objects. Several can run inside one process.

A topic is a named stream of typed messages. A camera node publishes images on /camera/image_raw; a detector subscribes to that and publishes detections on another. Several subscribers can receive the same stream without the camera knowing who they are.

Rendering diagram…
One topic, several subscribers. The camera node publishes without knowing who is listening.

Roughly, nodes discover compatible publishers and subscribers through ROS middleware, then exchange serialized messages. They need compatible message types, delivery settings, and a reachable communication domain. A domain ID separates groups of ROS participants.

Checkpoint 1 of 2

A logging node also needs the images from /camera/image_raw, which a detector already subscribes to. What has to change in the camera node?

Commit to an answer. Every choice explains itself.

Start the shared Go2 simulator

Lessons 1 through 4 use one VM named learn-go2. No physical robot or laptop ROS installation is needed. Follow the VM prerequisites for QEMU and ARM64 , and start Docker. The profile defaults to four CPUs and 4 GiB of RAM; ARM64 emulation on an x86 computer is slower. First startup downloads the image and robot assets.

Run these commands on your computer. When creating learn-go2, choose Unitree Go2 as the simulator profile. If the VM already exists, start with the second command.

wendy vm create learn-go2
wendy vm robot start learn-go2
wendy vm robot status learn-go2
wendy vm robot open learn-go2

Expect healthy=true, ready=true, and a robot in the browser sandbox. Keep the simulation running. A profile/version error needs the update steps in the Unitree simulator setup, not a different ROS topic.

The Go2 runtime includes sensors and transforms, but no action server. Lesson 5 explicitly switches to a TurtleBot3/Nav2 exercise with its own setup.

Follow a message

The CLI runs standard ROS 2 inspection tools on your device, so your laptop does not need a ROS installation. Keep your existing nodes, packages, messages, launch files, and ROS tools. Wendy manages deployment and remote access; it does not replace ROS 2 or require a different messaging API. First use may download a CLI container.

Deployment can change discovery settings. Match the domain, middleware, and network scope to the graph you want to join. The Go2 simulator publishes on domain 0. Open the Simulator tab and choose learn-go2 whenever the device picker appears.

wendy device ros2 nodes
wendy device ros2 topics

Find /odom in the topic list. Check its message type and read one sample.

wendy device ros2 topic info /odom
wendy device ros2 echo /odom --count 1

Expect nav_msgs/msg/Odometry and a message with parent frame odom and child frame base_link. Echo again and check that the timestamp advances. This is the readiness check for the next lesson. If echo waits, check that physics is playing in the sandbox. Go2 uses wall-clock timestamps and does not publish /clock.

Why QoS matters

Quality of Service controls delivery behavior. Best effort can drop messages; reliable delivery retries missing data. Sensor streams often favor fresh samples. A reliable subscriber cannot match a best-effort publisher. Queue depth controls how many samples can wait.

Checkpoint 2 of 2

A subscriber gets no messages from a sensor topic. The publisher is running and both use the same domain. The publisher uses best effort and the subscriber requests reliable delivery. What is the most likely cause?

Commit to an answer. Every choice explains itself.

If nothing arrives, check that the publisher is running, the domain matches, and endpoint is compatible. The CLI follows the selected app's domain or uses domain 0 for the system graph. Custom messages also require their packages in the inspection environment.

Keep this VM for the next lesson. To pause your work, run wendy vm stop learn-go2; resume with wendy vm robot start learn-go2 and repeat the readiness check. See the Wendy ROS 2 reference for commands.

Can you do each of these?

  • Understand how robot programs communicate, then inspect real messages.

0 of 2 checkpoints solved. Try checkpoint 1

Robotics with ROS 2
All lessons in this topic
  1. 1. ROS 2 nodes, topics, and QoS
  2. 2. Understand coordinate frames and transforms
  3. 3. Choose services, actions, and behavior states
  4. 4. Estimate motion and compare it with commands
  5. 5. Separate mapping, localization, and navigation

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.