In any directories under a ROS workspace, it will help you find devel/setup.bash or setup.zsh and source it for you. Then you don't have to navigate around the directories when you want to source the file.
run . rossource
in terminal under a ROS workspace.
You can also run cd -
after using rossource to switch to the root of the workspace.
-
Manual
- Download the rossource file to the place you want to store.
- Add that path to your $PATH varibale.
-
Automatic
Run the commands below, it will download the file to your HOME.
cd ~ git clone https://github.com/tars3017/rossource.git
- bash
echo 'export PATH=$HOME/rossource:$PATH' >> ~/.bashrc source ~/.bashrc
- zsh
echo 'export PATH=$HOME/rossource:$PATH' >> ~/.zshrc source ~/.zshrc