I am trying to display aruco marker on one (only one) side of the cube in Gazebo. I am using the following model, that is pasted in a world file:
<model name='charger'>
<static>true</static>
<link name='charger_link'>
<collision name='charger_collision'>
<geometry>
<box>
<size>1 1 1</size>
</box>
</geometry>
</collision>
<visual name='charger_visual'>
<geometry>
<box>
<size>1 1 1</size>
</box>
</geometry>
<material>
<script>
<uri>file://../models/aruco_markers/aruco_marker_42.png</uri>
<name>charger_material</name>
</script>
<ambient>1 1 1 1</ambient>
<diffuse>1 1 1 1</diffuse>
<specular>0 0 0 1</specular>
<emissive>1 1 1 0</emissive>
<shader type='vertex'>
<normal_map>__default__</normal_map>
</shader>
</material>
</visual>
</link>
<pose>0 7.7 0.5 0 0 0</pose>
</model>
The directory structure is:
src
src/worlds (this is where world file is)
src/models
src/models/aruco_markers (this is where images are)
Nevertheless, all I see is a cube, with no image on its sides. Any suggestions?