ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can't start turtlebot_world.launch in indigo gazebo

asked 2015-04-12 17:48:59 -0500

Haz88 gravatar image

updated 2016-06-14 21:22:27 -0500

130s gravatar image

BH

I have installed the gazebo packages but unfortunately, when I entered the roslaunch turtlebot_gazebo turtlebot_world.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 TURTLEBOT_GAZEBO_WORLD_FILE=/opt/ros/indigo/share/turtlebot_gazebo/worlds/empty.world instead ,as empty_world is the world included in the turtlebot_world.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.

edit retag flag offensive close merge delete

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).

130s gravatar image 130s  ( 2015-04-18 04:59:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-12 20:06:18 -0500

130s gravatar image

updated 2015-04-18 04:57:30 -0500

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/Tutoria...

edit flag offensive delete link more

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?

Haz88 gravatar image Haz88  ( 2015-04-17 10:11:38 -0500 )edit

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.

Haz88 gravatar image Haz88  ( 2015-04-17 10:14:39 -0500 )edit
1

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

vtkrish gravatar image vtkrish  ( 2016-07-03 22:25:31 -0500 )edit

hello, have you solved this problem?

lyz gravatar image lyz  ( 2019-01-28 06:50:09 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2015-04-12 17:48:59 -0500

Seen: 4,406 times

Last updated: Jan 28 '19