Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-08-27 07:36:09

Configure the ROS 2 Environment

Configure the ROS 2 Environment

Make ROS 2 available in the current terminal:

source /opt/ros/humble/setup.bash

Configure ROS 2 to load automatically in newly opened terminals:

grep -Fqx 'source /opt/ros/humble/setup.bash' "$HOME/.bashrc" || \
  printf '\n# ROS 2 Humble\nsource /opt/ros/humble/setup.bash\n' >> "$HOME/.bashrc"

On this page