The unsource_ros.bash script is currently broken, meaning currently, the following steps must be taken to setup a clean environment, as required for the cross-compilation.
1) Comment out source /opt/ros/melodic/setup.bash in the ~/.bashrc file
2) Open a new terminal
3) Perform whatever needs to be done in the clean environment
4) Uncomment source /opt/ros/melodic/setup.bash from the ~/.bashrc file
This script should allow a user to change their environment within the same shell such that it is identical to the result of the procedure above.
Perhaps a good solution to this would just be manually unsetting the ROS_* environment variables, rather than trying to replace the current shell with a clean one.
🐛 Bug Report
The
unsource_ros.bash
script is currently broken, meaning currently, the following steps must be taken to setup a clean environment, as required for the cross-compilation. 1) Comment outsource /opt/ros/melodic/setup.bash
in the~/.bashrc
file 2) Open a new terminal 3) Perform whatever needs to be done in the clean environment 4) Uncommentsource /opt/ros/melodic/setup.bash
from the~/.bashrc
fileThis script should allow a user to change their environment within the same shell such that it is identical to the result of the procedure above.
Perhaps a good solution to this would just be manually unsetting the
ROS_*
environment variables, rather than trying to replace the current shell with a clean one.