Robotics StackExchange | Archived questions

Can't start turtlebot_world.launch in indigo gazebo

BH

I have installed the gazebo packages but unfortunately, when I entered the roslaunch turtlebotgazebo turtlebotworld.launch command, I got this error:

[gazebo-2] process has died [pid 10786, exit code 2, cmd /opt/ros/indigo/lib/gazebo_ros/gzserver -e ode /opt/ros/indigo/share/turtlebot_gazebo/worlds/playground.world __name:=gazebo __log:=/home/hayim/.ros/log/23a0dea8-e165-11e4-9903-2cd05a3428bb/gazebo-2.log].
log file: /home/hayim/.ros/log/23a0dea8-e165-11e4-9903-2cd05a3428bb/gazebo-2*.log
[gazebo_gui-3] process has died [pid 10792, exit code 2, cmd /opt/ros/indigo/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/hayim/.ros/log/23a0dea8-e165-11e4-9903-2cd05a3428bb/gazebo_gui-3.log].
log file: /home/hayim/.ros/log/23a0dea8-e165-11e4-9903-2cd05a3428bb/gazebo_gui-3*.log

I must mention that all the other launchers in the gazebo tutorial run fine. Seeking for some advice,

Haz88


Update-1

BH

I typed the env | grep TURTLEBOT command and got the following output :

TURTLEBOT_STAGE_MAP_FILE=/opt/ros/indigo/share/turtlebot_stage/maps/maze.yaml
TURTLEBOT_3D_SENSOR=asus_xtion_pro
TURTLEBOT_STACKS=hexagons
TURTLEBOT_GAZEBO_WORLD_FILE=/opt/ros/indigo/share/turtlebot_gazebo/worlds/playground.world
TURTLEBOT_SIMULATION=false
TURTLEBOT_GAZEBO_MAP_FILE=/opt/ros/indigo/share/turtlebot_gazebo/maps/playground.yaml
TURTLEBOT_RAPP_PACKAGE_WHITELIST=[rocon_apps, turtlebot_rapps]
TURTLEBOT_STDR_MAP_FILE=/opt/ros/indigo/share/turtlebot_stdr/maps/sparse_obstacles.yaml
TURTLEBOT_SERIAL_PORT=/dev/kobuki
TURTLEBOT_BASE=kobuki
TURTLEBOT_RAPP_PACKAGE_BLACKLIST=[]
TURTLEBOT_TYPE=turtlebot
TURTLEBOT_STAGE_WORLD_FILE=/opt/ros/indigo/share/turtlebot_stage/maps/stage/maze.world
TURTLEBOT_BATTERY=/sys/class/power_supply/BAT0
TURTLEBOT_MAP_FILE=/opt/ros/indigo/share/turtlebot_navigation/maps/willow-2010-02-18-0.10.yaml
TURTLEBOT_INTERACTIONS_LIST=[turtlebot_bringup/admin.interactions, turtlebot_bringup/documentation.interactions, turtlebot_bringup/pairing.interactions, turtlebot_bringup/visualisation.interactions]
TURTLEBOT_NAME=turtlebot

If I was to use export TURTLEBOTGAZEBOWORLDFILE=/opt/ros/indigo/share/turtlebotgazebo/worlds/empty.world instead ,as emptyworld is the world included in the turtlebotworld.launch, then I tried that and it didn't solve the problem.

By the way, I opened the indigo Turtlebot Installation tutorial and installed the additional turtlebot packages, which I have installed already some of them. When I got to the workspace section and typed the catkin_make command I got the following error:

compilation terminated.
In file included from /usr/include/stdlib.h:314:0,
             from /opt/ros/indigo/include/ros/platform.h:53,
             from /opt/ros/indigo/include/ros/time.h:53,
             from /opt/ros/indigo/include/ros/ros.h:38,
             from /home/hayim/rocon/src/rocon_multimaster/experiments/rocon_unreliable_experiments/src/listener_unreliable.cpp:15:
/usr/include/x86_64-linux-gnu/sys/types.h:222:28: fatal error: sys/sysmacros.h: No such file or directory
# include <sys/sysmacros.h>

Sorry for this lengthily post but I really need a hand here.

Asked by Haz88 on 2015-04-12 17:48:59 UTC

Comments

Providing an error always helps. This time, however, you might want to also give more lines BEFORE and AFTER the line you gave (the lines you provided give us no info other than some processes having crashed).

Asked by 130s on 2015-04-18 04:59:03 UTC

Answers

Make sure the necessary environment variables are loaded. You can check by something like the following command that should show multiple lines of env variables that start from TURTLEBOT:

$ env | grep TURTLEBOT

If not source the ROS setup script. Make susre you ran http://wiki.ros.org/turtlebot/Tutorials/hydro/Installation#turtlebot.2BAC8-Tutorials.2BAC8-hydro.2BAC8-Debs_Installation.Convenience

Asked by 130s on 2015-04-12 20:06:18 UTC

Comments

Hello,

Now I get this error:

[turtlebot_empty_world.launch] is neither a launch file in package [turtlebot_gazebo] nor is [turtlebot_gazebo] a launch file name The traceback for the exception was written to the log file

Maybe you have another clue to whats wrong?

Asked by Haz88 on 2015-04-17 10:11:38 UTC

I must note that I have changed the world name file in the turtlebot_gazebo turtlebot_world.launch file from playground.world to empty.world and vis-versa changing the TURTLEBOT_GAZEBO_WORLD_FILE accordingly.

Asked by Haz88 on 2015-04-17 10:14:39 UTC

This did the trick: echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc

Asked by vtkrish on 2016-07-03 22:25:31 UTC

hello, have you solved this problem?

Asked by lyz on 2019-01-28 07:50:09 UTC