Error during launching turtlebot3_world.launch
whenever i tries to launch the turtlebot3_world.launch file it showing the following error
RLException: Invalid <arg> tag: environment variable 'TURTLEBOT3_MODEL' is not set.
Arg xml is **arg default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]" name="model"/>**
The traceback for the exception was written to the log file
This seems to require you to set an environment variable, called
TURTLEBOT3_MODEL
to one of the typesburger
,waffle
orwaffle_pi
.Have you done that?
Can i know how to set environment variable?I am a newbie in Ubuntu
echo $MY_ENVIRONMENT_VARIABLE
shows the content, which could also be empty,printenv
prints all environment variables. soprintenv | grep MY_ENVIRONMENT_VARIABLE
would show you yours.I'm having the same issue. I set the environment variable
TURTLEBOT3_MODEL
using the commandTURTLEBOT3_MODEL=burger; echo $TURTLEBOT3_MODEL
. It echos backburger
, so I know it gets set. However, I then launch turtlebot3 usingroslaunch turtlebot3_gazebo turtlebot3_world.launch
and I get the same exact error as earlier, still telling me I don't haveTURTLEBOT3_MODEL
set, even though I just set it. I carefully checked spelling as well to ensure it wasn't a typo.Got it to work, but not sure why. It fails if I set the environment variable using
TURTLEBOT3_MODEL=burger
, as I did above. However, if I instead set it usingexport TURTLEBOT3_MODEL=burger
as explained here, it will work. Does anyone know why?@BesterJester, without export, the env is only set for the current shell, but not for programs run from that shell.
see e.g. http://www.gnu.org/software/bash/manu...