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 modelpackage in the launch file of the robot in the robotpackage 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 GAZEBORESOURCEPATH and GAZEBOMODELPATH. The variables are set correctly to the directory, where both the world file and the dae-file are placed. Any suggestions?
Best regards,
Asked by Illuminatur on 2016-01-20 05:50:25 UTC
Comments
Try using:
Asked by Javi V on 2016-01-20 10:14:07 UTC