Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem with including a model

When I try to include a model in my world file, I get the following error in ROS-fuerte.

Error [SystemPaths.cc:262] cannot load file [models/angen_empty.model]in GAZEBO_RESOURCE_PATH[/home/angenuser/ros_workspace/angen_gazebo/Media/models]
Warning [parser.cc:348] Gazebo SDF has no gazebo element
Entity: line 2: parser error : Start tag expected, '<' not found

^
Error [parser_deprecated.cc:1365] Could not parse the xml
Entity: line 2: parser error : Start tag expected, '<' not found

^
Error [parser_deprecated.cc:1307] Could not parse the xml
Error [parser.cc:263] parse as old deprecated model file failed.
Error [parser.cc:500] Unable to read file[]
Error [parser.cc:557] Error reading element
Error [parser.cc:557] Error reading element
Error [parser.cc:340] Unable to parse sdf element[gazebo]
Error [parser.cc:263] parse as old deprecated model file failed.
Error [Server.cc:196] Unable to read sdf file[/home/angenuser/ros_workspace/angen_cognitive_environment/angen_gazebo/worlds/try.world]
[gazebo-2] process has died [pid 6314, exit code 255, cmd /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gazebo -u /home/angenuser/ros_workspace/angen_cognitive_environment/angen_gazebo/worlds/try.world __name:=gazebo __log:=/home/angenuser/.ros/log/dfdc436c-909c-11e2-9418-dc0ea13f6144/gazebo-2.log].
log file: /home/angenuser/.ros/log/dfdc436c-909c-11e2-9418-dc0ea13f6144/gazebo-2*.log

I attached the following code to the empty.world

<model name='angen_model' static='1'>
      <origin pose='0 0 0 0 0 0'/>
      <include filename='angen_empty.model'/>
</model>

I recently converted the .model file I am using to the new format using gzsdf recently. I works well as .world file but when I remove the world tags and use just the model, I get the errors.

Is this the problem with gazebo or am I doing a mistake ? Can someone tell a proper way to add a .model file to a world.

Thanks, Prasanna