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

Joelf's profile - activity

2020-02-22 00:26:07 -0500 received badge  Good Answer (source)
2020-02-22 00:26:07 -0500 received badge  Enlightened (source)
2016-02-20 20:51:34 -0500 received badge  Nice Answer (source)
2016-02-13 07:45:46 -0500 received badge  Necromancer (source)
2016-02-13 07:45:46 -0500 received badge  Teacher (source)
2015-08-31 05:05:02 -0500 answered a question Setting environment variable 'TURTLEBOT_STAGE_MAP_FILE'

I had this problem too, the next tutorial teaching you how to customise turtlebot_stage gives you some clues but when I tried to set the world and map files via the command line it still failed. Setting the environment variables in the terminal did work though.

(note: this may not be the best method, but it works and won't hurt anything)

You will find the required files in the turtlebot_stage directory, copy the map files to your home directory (you need to copy them to your home directory for permission reasons). Note that your path may differ from mine e.g. I'm using ROS Indigo.

Copy this directory /opt/ros/indigo/share/turtlebot_stage/maps/ to something like ~/stageTurorial/maps/

Then set some environment variables from your terminal

export TURTLEBOT_STAGE_WORLD_FILE="~/stageTutorial/maps/stage/maze.world"
export TURTLEBOT_STAGE_MAP_FILE="~/stageTutorial/maps/maze.yaml"

Now launching turtlebot_stage should work

roslaunch turtlebot_stage turtlebot_in_stage.launch