Hello everyone,
Wanted to share this project that I have been working on and off for some time. It allows you to easily source ROS distros and ROS workspaces while working from anywhere on your system.
It saves you the time of navigating to the workspace or entering the complete path for the setup file while working on workspaces. This was inspired from the virtualenvwrapper package for python.
Definitely looks like a handy, user-friendly tool. Out of curiosity, if you call workon_ros twice with two different workspaces, will you end up with the environment variables of both, or just the latter?
Looks great! Coincidentally, I put together a very similar tool for myself that I’ve integrated into my workflow: I think I encountered the same problem you saw, where I found I had multiple projects I was working on at the same time and found swapping between them to be a pain. I’ll have to give your approach a try!
Hi @shonigmann really glad you liked it!
As of now there is no functionality in the script that ‘unsets’ the environment which is currently set so if you run workon_ros twice you will end up with the environment variables of both.
Also it kind of messes up the prompt but this might be an easy fix with just a check to see if any workspace is already sourced.
There are plans to add a deactivate_ros function as well that might help with this.