Run Your First Demo#

This guide will help you run your first ROS 2 demo on the Robotics Edge Platform to verify your installation is working correctly.

Prerequisites#

  • Board successfully flashed and booted

  • Logged in as root

  • Serial console or SSH connection established

Choose Your Method#

You can run the demo using either:



Method 2: tmux Terminal Multiplexer#

If you only have a serial console connection, tmux allows you to create multiple virtual terminals in a single session.

What is tmux?#

tmux (terminal multiplexer) lets you:

  • Create multiple windows in one terminal session

  • Split windows into panes

  • Detach and reattach sessions

  • Keep programs running in the background

Step 1: Start tmux#

# Source ROS 2 environment first
source /opt/ros/jazzy/setup.bash

# Start tmux session
tmux

You’ll see a green status bar at the bottom showing [0] 0:bash*.

Step 2: Create Multiple Windows#

Window 0 - Run Talker:

# You're already in window 0
ros2 run demo_nodes_cpp talker

Create Window 1 - Run Listener:

Press Ctrl+b then c (create new window)

source /opt/ros/jazzy/setup.bash
ros2 run demo_nodes_cpp listener

Create Window 2 - Monitor Topics:

Press Ctrl+b then c (create new window)

source /opt/ros/jazzy/setup.bash
ros2 topic list
ros2 topic echo /chatter

Step 3: Navigate Between Windows#

Ctrl+b 0    # Switch to window 0 (talker)
Ctrl+b 1    # Switch to window 1 (listener)
Ctrl+b 2    # Switch to window 2 (monitor)

Ctrl+b n    # Next window
Ctrl+b p    # Previous window
Ctrl+b w    # List all windows (interactive)