This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is meant to be sourced by your bashrc | |
# It gives you the "rs" function for easily switching between ROS1 and ROS2 | |
rs() | |
{ | |
ROS_VER="${1:-1}" | |
if [ "$ROS_VER" == "1" ]; then |