un-source ros2 package without closing and reopening console

asked 2020-12-07 08:08:23 -0500

CraigH92 gravatar image


On Ubuntu 20.04, ROS2 Foxy, is there a way to "reset" your environment, equivalent to closing and reopening the terminal, without actually having to close and reopen it?

edit retag flag offensive close merge delete


You mean, like a virtualenv's deactivate command in Python? I don't know of anything like that for the same shell. If you're building from source and using bash, colcon-spawn-shellcreates a setup script that spawns a new shell with a colcon workspace sourced, then that shell can be exited. https://github.com/colcon/colcon-spaw...

sloretz gravatar image sloretz  ( 2020-12-07 11:23:26 -0500 )edit