uwreact / frc_control

ROS metapackage enabling FRC teams to use ROS on their robots
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Fix unsource-ros script #43

Closed matthew-reynolds closed 5 years ago

matthew-reynolds commented 5 years ago

🐛 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 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.