How to add png file as a logo to a mesh which of the type - stl. The model file is of the form .sdf.jinja
I have been trying to add image file to a mesh which is a stl file by using the following commands :
<script>
<name>Logo/GTX</name>
<uri>model://gtx_cupcar/materials/scripts/logo.material</uri>
<uri>model://gtx_cupcar/materials/logo/gtx.png</uri>
</script>
in my sdf code. Using this code and making logo.material file like: material Logo/GTX { technique { pass { texture_unit { texture gtx.png scale 150.0 1.0 } } } } But from above steps, I am not getting the desired results. No logo is being added on the model. Please guide us on what changes can be made in my .sdf.jinja file to load the image on the mesh file. The config file is given below - <model> <name>GTX Cup Car</name> <version>1.0</version> <sdf version="1.5">gtx_cupcar.sdf</sdf> <author> <name>Benjamin Perseghetti</name> <email>bperseghetti@rudislabs.com> </author> <description>A model of the GTX Cup Car.</description> </model>
please edit your question to add code formatting to the exerts from your
logo.material
file and.sdf.jinja
file to make your question more readable. just highlight the sections of text corresponding to the files, and click the101010
buttonPlease note: this reads like a Gazebo question.
Those should not be posted here, but over at
answers.gazebosim.org
.