Modified bashrc file to make your life easy with running ROS and ROS2 in parallel on same machine that allow you to jump between both with just one command.
Visit for code.
- If you open the terminal into pre-built ros workspace, it will automatically recognize the ros version and source the require setup.bash file.
- If you want to re-source the workspace, use commands from workspace folder.
$ sb1
(for ros1 workspace)$ sb2
(for ros2 workspace)