Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

roslaunch gazebo_ros mars_world.launch cannot find mars.world

Hi,

I have a question regarding the directory structure expected by gazebo_ros when launching it using roslaunch.

I am using ROS Groovy, with Gazebo 1.9 and gazebo_ros_pkgs built from source.

I have a catkin workspace with gazebo_ros, where I have copied the following launch file (into ~/gazebo_src/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch).

<launch> <include file="$(find gazebo_ros)/launch/empty_world.launch"> <arg name="world_name" value="mars.world"/> <arg name="paused" value="false"/> <arg name="use_sim_time" value="true"/> <arg name="gui" value="true"/> <arg name="debug" value="false"/> </include> </launch>

I need to keep the mars.world in a separate folder (internal/project repository) - ~/faster_dev/branches/yn/gazebo/plugin - which I have added to GAZEBO_RESOURCE_PATH. However when I try to launch gazebo with the command "roslaunch gazebo_ros mars_world.launch" I get the error that mars.world cannot be found.

I know that the mars.world works when I launch it with gazebo ("gazebo mars.world").

My environment variables are: env | grep GAZEBO GAZEBO_MODEL_PATH=:/home/yn/faster_dev/branches/yn/gazebo/models: GAZEBO_RESOURCE_PATH=/home/yn/local/share/gazebo-1.9:/home/yn/local/share/gazebo_models:/home/yn/faster_dev/branches/yn/gazebo/plugin:/home/yn/faster_dev/branches/yn/gazebo/models GAZEBO_MASTER_URI=http://localhost:11345 GAZEBO_PLUGIN_PATH=/home/yn/local/lib/gazebo-1.9/plugins:/home/yn/faster_dev/branches/yn/gazebo/plugin/build:/home/yn/faster_dev/trunk/gazebo/plugin/build GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models

The relevant folders are gazebo_ros: ~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros models: ~/faster_dev/branches/yn/gazebo/models (contains a databse.config and a number of models in subfolders) world file: ~/faster_dev/branches/yn/gazebo/plugin launch file: ~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch

Does anyone have any ideas why this could be giving me an error even though the world file path is correct (relative to GAZEBO_RESOURCE_PATH)?

I guess I could include "~/faster_dev/branches/yn/gazebo/plugin" in my global path, but I'd rather avoid this if possible..

Thanks!

Yasho

roslaunch gazebo_ros mars_world.launch cannot find mars.world

Hi,

I have a question regarding the directory structure expected by gazebo_ros when launching it using roslaunch.

I am using ROS Groovy, with Gazebo 1.9 and gazebo_ros_pkgs built from source.

I have a catkin workspace with gazebo_ros, where I have copied the following launch file (into ~/gazebo_src/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch).

<launch>
   <!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="mars.world"/>  <!-- Note: the world_name is with respect to GAZEBO_RESOURCE_PATH environmental variable -->
    <arg name="paused" value="false"/>
    <arg name="use_sim_time" value="true"/>
    <arg name="gui" value="true"/>
    <arg name="debug" value="false"/>
  </include>
</launch>

</launch>

I need to keep the mars.world in a separate folder (internal/project repository) - ~/faster_dev/branches/yn/gazebo/plugin - which I have added to GAZEBO_RESOURCE_PATH. However when I try to launch gazebo with the command "roslaunch gazebo_ros mars_world.launch" I get the error that mars.world cannot be found.

I know that the mars.world works when I launch it with gazebo ("gazebo mars.world").

My environment variables are: are:

env | grep GAZEBO
GAZEBO_MODEL_PATH=:/home/yn/faster_dev/branches/yn/gazebo/models:
GAZEBO_RESOURCE_PATH=/home/yn/local/share/gazebo-1.9:/home/yn/local/share/gazebo_models:/home/yn/faster_dev/branches/yn/gazebo/plugin:/home/yn/faster_dev/branches/yn/gazebo/models
GAZEBO_MASTER_URI=http://localhost:11345
GAZEBO_PLUGIN_PATH=/home/yn/local/lib/gazebo-1.9/plugins:/home/yn/faster_dev/branches/yn/gazebo/plugin/build:/home/yn/faster_dev/trunk/gazebo/plugin/build
GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models

GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models

The relevant folders are are

gazebo_ros: ~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros
models: ~/faster_dev/branches/yn/gazebo/models (contains a databse.config and a number of models in subfolders)
world file: ~/faster_dev/branches/yn/gazebo/plugin
launch file: ~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch

~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch

Does anyone have any ideas why this could be giving me an error even though the world file path is correct (relative to GAZEBO_RESOURCE_PATH)?

I guess I could include "~/faster_dev/branches/yn/gazebo/plugin" in my global path, but I'd rather avoid this if possible..

Thanks!

Yasho

roslaunch gazebo_ros mars_world.launch cannot find mars.world

Hi,

I have a question regarding the directory structure expected by gazebo_ros when launching it using roslaunch.

I am using ROS Groovy, with Gazebo 1.9 and gazebo_ros_pkgs built from source.

I have a catkin workspace with gazebo_ros, gazebo_ros, where I have copied the following launch file (into ~/gazebo_src/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch).~/gazebo_src/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch).

<launch>
  <!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="mars.world"/> <!-- Note: the world_name is with respect to GAZEBO_RESOURCE_PATH environmental variable -->
    <arg name="paused" value="false"/>
    <arg name="use_sim_time" value="true"/>
    <arg name="gui" value="true"/>
    <arg name="debug" value="false"/>
  </include>
</launch>

I need to keep the mars.world in a separate folder (internal/project repository) - ~/faster_dev/branches/yn/gazebo/plugin ~/faster_dev/branches/yn/gazebo/plugin - which I have added to GAZEBO_RESOURCE_PATH. GAZEBO_RESOURCE_PATH. However when I try to launch gazebo with the command "roslaunch "roslaunch gazebo_ros mars_world.launch" mars_world.launch" I get the error that mars.world cannot be found.

I know that the mars.world works when I launch it with gazebo ("gazebo mars.world").

My environment variables are:

env | grep GAZEBO
GAZEBO_MODEL_PATH=:/home/yn/faster_dev/branches/yn/gazebo/models:
GAZEBO_RESOURCE_PATH=/home/yn/local/share/gazebo-1.9:/home/yn/local/share/gazebo_models:/home/yn/faster_dev/branches/yn/gazebo/plugin:/home/yn/faster_dev/branches/yn/gazebo/models
GAZEBO_MASTER_URI=http://localhost:11345
GAZEBO_PLUGIN_PATH=/home/yn/local/lib/gazebo-1.9/plugins:/home/yn/faster_dev/branches/yn/gazebo/plugin/build:/home/yn/faster_dev/trunk/gazebo/plugin/build
GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models

The relevant folders are

gazebo_ros: ~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros
models: ~/faster_dev/branches/yn/gazebo/models (contains a databse.config and a number of models in subfolders)
world file: ~/faster_dev/branches/yn/gazebo/plugin
launch file: ~/gazebo_source/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/launch

Does anyone have any ideas why this could be giving me an error even though the world file path is correct (relative to GAZEBO_RESOURCE_PATH)?GAZEBO_RESOURCE_PATH)?

I guess I could include "~/faster_dev/branches/yn/gazebo/plugin" "~/faster_dev/branches/yn/gazebo/plugin" in my global path, but I'd rather avoid this if possible..

Thanks!

Yasho