Referencing models from other package's launch files
Hi guys,
is it possible to distribute world models (incl. dae-files) and vehicle models in different packages? I've got the following package structure using Gazebo 2.2.3:
catkin_ws/src/model_package
contains the *.world files including references to the respective *.dae filescatkin_ws/src/robot_package
contains the robot description as well as the respective controller,ros plugins and launch files
When i try to reference the world file of the model_package in the launch file of the robot in the robot_package via
<arg name="world_name" default="$(find model_package)/worlds/Road.world"/>
i obtain the error
Error [SystemPaths.cc:367] File or path does not exist[""]
Error [MeshShape.cc:64] No mesh specified
I assume, that the linked mesh cannot be loaded. The mesh itself is referenced like
<geometry>
<mesh><uri>file://Road.dae</uri></mesh>
</geometry>
The world can be loaded from any launch file inside the model package. I just checked the GAZEBO_RESOURCE_PATH and GAZEBO_MODEL_PATH. The variables are set correctly to the directory, where both the world file and the dae-file are placed. Any suggestions?
Best regards,
Try using: <mesh filename="package://<pkg_name>/foo/mesh.dae"/> But make sure that it is finding the world file you are giving as parameter first.
Hi, i tried this, but i obtain the following error: XML Attribute[filename] in element[mesh] not defined in SDF, ignoring. Any other ideas?