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

could not open world file

asked 2020-06-27 04:50:38 -0500

me_saw gravatar image

updated 2020-06-27 04:53:23 -0500

world file

<?xml version="1.0"?>
    <sdf version="1.6">
      <world name="default">
        <include>
          <uri>model://ground_plane</uri>
        </include>
        <include>
          <uri>model://sun</uri>
        </include>
        <model name="my_mesh">
          <pose>-80 -80 0  0 0 0</pose>
          <static>true</static>
          <link name="body">
            <visual name="visual">
              <geometry>
                <mesh><uri>file://model.dae</uri></mesh>
              </geometry>
            </visual>
          </link>
        </model>
      </world>
    </sdf>

this is file

<launch>
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="city.world"/>
    <arg name="verbose" value="true"/>
  </include>
</launch>

this is my launch file

when I launch this it shows me an error as

[Err] [Server.cc:379] Could not open file[city.world]

but when spawn using

gazebo city.world

there is no error and it's spawning correctly. what could be the problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-06-27 06:37:39 -0500

xibeisiber gravatar image

you need to give the path of "city.world":

arg name="world_name" value="/path/city.world"

edit flag offensive delete link more

Comments

Thanks, that was the problem

but now when I'm trying to launch it gives this error

[Wrn] [FuelModelDatabase.cc:248] URI not supported by Fuel [model.dae]
[Wrn] [SystemPaths.cc:464] File or path does not exist [""] [model.dae]
[Wrn] [FuelModelDatabase.cc:248] URI not supported by Fuel [file://model.dae]
[Wrn] [SystemPaths.cc:464] File or path does not exist [""] [file://model.dae]
[Err] [Visual.cc:3034] No mesh specified
me_saw gravatar image me_saw  ( 2020-06-27 06:50:02 -0500 )edit
1

maybe you also need to set the path of model.dae... like this:

          <geometry>
        <mesh>
          <uri>model://iscas_museum/meshes/ISCAS_museum.dae</uri>
        </mesh>
      </geometry>enter code here
xibeisiber gravatar image xibeisiber  ( 2020-06-27 07:00:19 -0500 )edit

@xibeisiber got it thank you

me_saw gravatar image me_saw  ( 2020-06-27 08:05:16 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-27 04:50:38 -0500

Seen: 2,283 times

Last updated: Jun 27 '20