ROS 2 Lyrical lab 01 ยท 45 min
Install ROS 2 Lyrical
Prepare Ubuntu 26.04 and install the supported ROS 2 desktop packages.
Before you start
- Ubuntu 26.04 (Resolute), 64-bit
- An administrator account
- A reliable internet connection
Files you will touch
/opt/ros/lyrical/~/.bashrc
Step 1
Set up
sudo apt update
sudo apt install ros-lyrical-desktop ros-dev-tools python3-colcon-common-extensions
source /opt/ros/lyrical/setup.bash
echo $ROS_DISTROStep 2
Create the file
# Add this only after the one-time source command works.
echo 'source /opt/ros/lyrical/setup.bash' >> ~/.bashrcStep 3
Build, run and inspect
ros2 run demo_nodes_cpp talker
# In a second sourced terminal:
ros2 run demo_nodes_py listenerProof that it works
- echo $ROS_DISTRO prints lyrical
- The talker publishes numbered messages
- The listener receives the same messages
Recovery notes
- If ros2 is not found, source /opt/ros/lyrical/setup.bash in that terminal.
- If the package cannot be located, confirm the machine is Ubuntu 26.04 and the ROS apt source is configured from the official installation guide.