Installation
Requirements
- ROS 2 (any distribution)
- Python 3.8+
pyyaml—pip3 install pyyaml- bash shell
Install
The installer copies files to /usr/local/dendROS/ and adds a source line to ~/.bashrc.
From that point on, ros2 launch and ros2 run are automatically piped through the colorizer.
Use the non-interactive -y flag for RUN layers:
Docker Compose
Add these settings to your service so colors render correctly:
Exec vs Up
docker compose exec my_robot bash sources ~/.bashrc immediately.
docker compose up log streaming has no TTY — tty: true is required for ANSI colors to render there.
Uninstall
Removes /usr/local/dendROS/, the two lines the installer added to .bashrc, and DendROS's runtime files in ~/.config/dendROS/ (saved TUI runs, the color cache). Your settings in ~/.config/dendROS/defaults.yaml are kept, so a reinstall picks them up; delete that folder to remove them too. Open a new terminal afterwards: shells that are already open still have the ros2 wrapper loaded.
Verify
After sourcing .bashrc, run any launch. The ROS 2 demo nodes work well for this:
If the launch opens in the full-screen viewer with [dendROS] and the version in the header, DendROS is active. Press Ctrl+C to stop the launch and Q to close the viewer.
This package has no dendROS.yaml yet, so its lines aren't colored. Continue with the Quick Start to create a config for your own package.
To check which config DendROS finds for a package, use debug output:
If a package that does have a dendROS.yaml still reports passthrough mode, its config was not found. Check that:
- The package was built and
install/setup.bashwas sourced. config/dendROS.yamlis installed toshare/my_bringup/config/— verify yourCMakeLists.txtinstalls theconfig/directory.