ROS 2 CLI tool to view node/topic tree, inspired by the tree command. Tested on ROS Humble on Ubuntu 22.04.
cd ~/ros2_ws/src
git clone https://github.com/ishaanbhimwal/ros2tree.git
cd ~/ros2_ws
colcon build --packages-select ros2tree
source install/setup.bashros2 tree nodes
# or
ros2 tree topicsros2 tree nodes -p -P -c # view nodes, show pkg, show PID, colorize outputros2 tree topics -c -m # view topics, colorize output, show msg type
