1 | initial version |
Yo could use a relative path and the GAZERO_RESOURCE_PATH environment variable. For example, in your case:
<material>
<script>
<uri>file://Media/materials.material</uri>
<name>materials/Black</name>
</script>
</material>
export GAZEBO_RESOURCE_PATH=$GAZEBO_RESOURCE_PATH:/home/mago/Development/hydro/src/ugv_description/
It's very common to use a bash script that sets GAZEBO_RESOURCE_PATH according to the directory where your resource files are located. Using this method you just need to remember source this script.
2 | No.2 Revision |
Yo could use a relative path and the GAZERO_RESOURCE_PATH GAZEBO_RESOURCE_PATH environment variable. For example, in your case:
<material>
<script>
<uri>file://Media/materials.material</uri>
<name>materials/Black</name>
</script>
</material>
export GAZEBO_RESOURCE_PATH=$GAZEBO_RESOURCE_PATH:/home/mago/Development/hydro/src/ugv_description/
It's very common to use a bash script that sets GAZEBO_RESOURCE_PATH according to the directory where your resource files are located. Using this method you just need to remember source this script.