roslaunch turtlebot_gazebo turtlebot_world.launch world_file:=/opt/ros/kinetic/share/turtlebot_gazebo/worlds/corridor.world
echo $TURTLEBOT_GAZEBO_WORLD_FILE
输出:
/opt/ros/kinetic/share/turtlebot_gazebo/worlds
roslaunch turtlebot_gazebo turtlebot_world.launch world_file:=/opt/ros/kinetic/share/turtlebot_gazebo/worlds/corridor.world
echo $TURTLEBOT_GAZEBO_WORLD_FILE
输出:
/opt/ros/kinetic/share/turtlebot_gazebo/worlds