ROS Answers: Open Source Q&A Forum - RSS feedhttps://answers.ros.org/questions/Open source question and answer forum written in Python and DjangoenROS Answers is licensed under Creative Commons Attribution 3.0Fri, 15 Sep 2017 11:53:04 -0500Running Turtlebot_gazebo errorhttps://answers.ros.org/question/245396/running-turtlebot_gazebo-error/ I'm trying to run turtlebot_gazebo but I have some problems.
Here's the subject in details. I'm running ROS kinetic which is supposed that it can't link to gazebo as far as I know. I installed gazebo with the help of your site, however, the package I got and installed was called turtlebot_simulator, and turtlebot_gazebo was inside it (if I misunderstood the thing let me know). I tried to launch it using " $ roslaunch turtlebot_gazebo turtlebot_world.launch" but this didn't work. Finally, I browsed to folder "launch" inside turtlebot_gazebo and tried to launch it using "$ roslaunch turtlebot_world.launch" and it gives me the following error:
Invalid <arg> tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set.
Arg xml is <arg default="$(env TURTLEBOT_GAZEBO_WORLD_FILE)" name="world_file"/>
The traceback for the exception was written to the log file
how can I fix it?
Thank youMon, 10 Oct 2016 08:23:06 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/Comment by 130s for <p>I'm trying to run turtlebot_gazebo but I have some problems.
Here's the subject in details. I'm running ROS kinetic which is supposed that it can't link to gazebo as far as I know. I installed gazebo with the help of your site, however, the package I got and installed was called turtlebot_simulator, and turtlebot_gazebo was inside it (if I misunderstood the thing let me know). I tried to launch it using " $ roslaunch turtlebot_gazebo turtlebot_world.launch" but this didn't work. Finally, I browsed to folder "launch" inside turtlebot_gazebo and tried to launch it using "$ roslaunch turtlebot_world.launch" and it gives me the following error:</p>
<p>Invalid &lt;arg&gt; tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set. </p>
<p>Arg xml is &lt;arg default="$(env TURTLEBOT_GAZEBO_WORLD_FILE)" name="world_file"/&gt;
The traceback for the exception was written to the log file</p>
<p>how can I fix it?
Thank you</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=270977#post-id-270977[Duplicate](https://answers.ros.org/question/208287/how-to-configure-environment-parameter-turtlebot_gazebo_world_file/).Fri, 15 Sep 2017 11:53:04 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=270977#post-id-270977Answer by Vash for <p>I'm trying to run turtlebot_gazebo but I have some problems.
Here's the subject in details. I'm running ROS kinetic which is supposed that it can't link to gazebo as far as I know. I installed gazebo with the help of your site, however, the package I got and installed was called turtlebot_simulator, and turtlebot_gazebo was inside it (if I misunderstood the thing let me know). I tried to launch it using " $ roslaunch turtlebot_gazebo turtlebot_world.launch" but this didn't work. Finally, I browsed to folder "launch" inside turtlebot_gazebo and tried to launch it using "$ roslaunch turtlebot_world.launch" and it gives me the following error:</p>
<p>Invalid &lt;arg&gt; tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set. </p>
<p>Arg xml is &lt;arg default="$(env TURTLEBOT_GAZEBO_WORLD_FILE)" name="world_file"/&gt;
The traceback for the exception was written to the log file</p>
<p>how can I fix it?
Thank you</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?answer=256069#post-id-256069Try setting the variable TURTLEBOT_GAZEBO_WORLD_FILE:
`export TURTLEBOT_GAZEBO_WORLD_FILE="/opt/ros/indigo/share/turtlebot_gazebo/worlds/playground.world"`Fri, 03 Mar 2017 05:20:53 -0600https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?answer=256069#post-id-256069Answer by gavran for <p>I'm trying to run turtlebot_gazebo but I have some problems.
Here's the subject in details. I'm running ROS kinetic which is supposed that it can't link to gazebo as far as I know. I installed gazebo with the help of your site, however, the package I got and installed was called turtlebot_simulator, and turtlebot_gazebo was inside it (if I misunderstood the thing let me know). I tried to launch it using " $ roslaunch turtlebot_gazebo turtlebot_world.launch" but this didn't work. Finally, I browsed to folder "launch" inside turtlebot_gazebo and tried to launch it using "$ roslaunch turtlebot_world.launch" and it gives me the following error:</p>
<p>Invalid &lt;arg&gt; tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set. </p>
<p>Arg xml is &lt;arg default="$(env TURTLEBOT_GAZEBO_WORLD_FILE)" name="world_file"/&gt;
The traceback for the exception was written to the log file</p>
<p>how can I fix it?
Thank you</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?answer=245402#post-id-245402The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE).
I suggest you to install turtlebot_gazebo package by running `sudo apt-get install ros-kinetic-turtlebot-gazebo` and then try to launch it as you did initially (`roslaunch turtlebot_gazebo turtlebot_world`)
Mon, 10 Oct 2016 09:17:42 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?answer=245402#post-id-245402Comment by Mina for <p>The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE). </p>
<p>I suggest you to install turtlebot_gazebo package by running <code>sudo apt-get install ros-kinetic-turtlebot-gazebo</code> and then try to launch it as you did initially (<code>roslaunch turtlebot_gazebo turtlebot_world</code>)</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245415#post-id-245415The problem was that I neither restarted the PC nor ROS in 3 days now, so even after I installed turtlebot_gazebo 1st time the changes weren't applied. Now I restarted it so it worked.
Sorry for that.
It looks really nice
Do you have any idea how I can simulate drones same way?
Thank youMon, 10 Oct 2016 10:37:20 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245415#post-id-245415Comment by gavran for <p>The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE). </p>
<p>I suggest you to install turtlebot_gazebo package by running <code>sudo apt-get install ros-kinetic-turtlebot-gazebo</code> and then try to launch it as you did initially (<code>roslaunch turtlebot_gazebo turtlebot_world</code>)</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245410#post-id-245410*the variable would be set* - I meant to say it would have some value. To be sure, can you open a new terminal and write echo $TURTLEBOT_GAZEBO_WORLD_FILE (ant tell what do you get as an output)Mon, 10 Oct 2016 10:06:41 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245410#post-id-245410Comment by robbycandra for <p>The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE). </p>
<p>I suggest you to install turtlebot_gazebo package by running <code>sudo apt-get install ros-kinetic-turtlebot-gazebo</code> and then try to launch it as you did initially (<code>roslaunch turtlebot_gazebo turtlebot_world</code>)</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245438#post-id-245438In my case, the problem with TURTLEBOT_GAZEBO_WORLD_FILE fixed just by reboot my computer.
But there are another problems.
Fortunately there is a good solution in http://answers.ros.org/question/199401/problem-with-indigo-and-gazebo-22/#post-id-204852Mon, 10 Oct 2016 19:13:27 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245438#post-id-245438Comment by gavran for <p>The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE). </p>
<p>I suggest you to install turtlebot_gazebo package by running <code>sudo apt-get install ros-kinetic-turtlebot-gazebo</code> and then try to launch it as you did initially (<code>roslaunch turtlebot_gazebo turtlebot_world</code>)</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245416#post-id-245416no - but I suggest you to put this as separate question (maybe somebody knows who doesn't follow our discussion in comments) and mark this one as resolved.Mon, 10 Oct 2016 11:26:54 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245416#post-id-245416Comment by Mina for <p>The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE). </p>
<p>I suggest you to install turtlebot_gazebo package by running <code>sudo apt-get install ros-kinetic-turtlebot-gazebo</code> and then try to launch it as you did initially (<code>roslaunch turtlebot_gazebo turtlebot_world</code>)</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245405#post-id-245405I used your command and I installed it.
The good point is that roslaunch turtlebot_gazebo turtlebot_world.launch worked, however, it gives same error!
what does it mean "the file would be set"?Mon, 10 Oct 2016 09:55:32 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245405#post-id-245405Comment by gavran for <p>The error you got says that environment variable is not set - this means that this launch file expected that TURTLEBOT_GAZEBO_FILE would be set. (to check it, try echo $TURTLEBOT_GAZEBO_WORLD_FILE). </p>
<p>I suggest you to install turtlebot_gazebo package by running <code>sudo apt-get install ros-kinetic-turtlebot-gazebo</code> and then try to launch it as you did initially (<code>roslaunch turtlebot_gazebo turtlebot_world</code>)</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245459#post-id-245459I guess rebooting a computer is an overkill, it would be enough to open a new terminalTue, 11 Oct 2016 03:14:37 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?comment=245459#post-id-245459Answer by bharathkotari for <p>I'm trying to run turtlebot_gazebo but I have some problems.
Here's the subject in details. I'm running ROS kinetic which is supposed that it can't link to gazebo as far as I know. I installed gazebo with the help of your site, however, the package I got and installed was called turtlebot_simulator, and turtlebot_gazebo was inside it (if I misunderstood the thing let me know). I tried to launch it using " $ roslaunch turtlebot_gazebo turtlebot_world.launch" but this didn't work. Finally, I browsed to folder "launch" inside turtlebot_gazebo and tried to launch it using "$ roslaunch turtlebot_world.launch" and it gives me the following error:</p>
<p>Invalid &lt;arg&gt; tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set. </p>
<p>Arg xml is &lt;arg default="$(env TURTLEBOT_GAZEBO_WORLD_FILE)" name="world_file"/&gt;
The traceback for the exception was written to the log file</p>
<p>how can I fix it?
Thank you</p>
https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?answer=259498#post-id-259498try these , this worked for me
$ source /opt/ros/indigo/setup.bash
$ rosdep install --from-paths src -i -y
$catkin_makeTue, 18 Apr 2017 07:16:38 -0500https://answers.ros.org/question/245396/running-turtlebot_gazebo-error/?answer=259498#post-id-259498