Collection of functions and aliases for ROS2 development

- Clone the repo:
git clone https://github.com/tonynajjar/ros2-aliases ~/ros2-aliases
Bash:
- Add ros2_utils.bash to your bashrc:
echo 'source ~/ros2-aliases/ros2_utils.bash' >> ~/.bashrc
Zsh:
- Add ros2_utils.zsh to your zshrc:
echo 'source ~/ros2-aliases/ros2_utils.zsh' >> ~/.zshrc
| Command |
Alias |
ros2 topic list |
rtlist |
ros2 topic echo |
rtecho |
ros2 topic info |
rtinfo |
| Command |
Alias |
ros2 node list |
rnlist |
ros2 node info |
rninfo |
| Killing a node |
rnkill |
rnkill is a prototype and might not work as intended. It is an attempt to emulate ROS1's rosnode kill
| Command |
Alias |
ros2 service list |
rslist |
| Command |
Alias |
ros2 param list |
rplist |
ros2 param get |
rpget |
ros2 param set |
rpset |
| Command |
Alias |
Arguments |
ros2 run tf2_tools view_frames |
view_frames |
namespace of TF topic [Optional] |
ros2 run tf2_ros tf2_echo |
tf2_echo |
frame 1 [Required], frame 2 [Required], namespace of TF topic [Optional] |
| Command |
Alias |
Arguments |
colcon build --symlink-install |
cb |
|
colcon build --symlink-install --packages-select |
cb |
package 1 [Required] ... package n [Optional] |
| Command |
Alias |
rosdep install --from-paths src --ignore-src -r -y |
rosdep_install |