Closed stonier closed 10 years ago
This is nice - it sets the variables so the user can just do a env | grep TURTLEBOT_
to see what environment variables he can play with.
Is this done?
Yes. See: https://github.com/turtlebot/turtlebot/commit/c5658a74d79f9b626fa8562132b0d0238850d411 and 75f6f857e2c8bd48a4dc412869e22bba7cdd9be8
We tried to do this in #103, but failed since it couldn't set a default value for optenv to point to a ros package path.
We can however do this with environment hooks. Actually this is a good way to set all of our variables for turtlebot. e.g. we need
turtlebot_bringup/env-hooks/25-turtlebot.sh.em
:Then register these environment hooks in
turtlebot_bringup/CMakeLists.txt
with a line like (I think sh will work for us, but we may need to use bash):Then configure
minimal.launch
to useenv
instead ofoptenv
(so that it forces us to use these environment variables).And finally pick up the environment variable as a default for the map server similar to what was done in #103.