How to add a png file as a logo on my gazebo model which is an .stl file and written in .sdf.jinja format? [closed]

asked 2021-05-05 01:23:16 -0500

GazeboGeek gravatar image

I have been trying to add image file to a mesh type stl file by using

<script> <name>Logo/R2S</name> <uri>model://r2s_cupcar/materials/scripts/logo.material</uri> <uri>model://r2s_cupcar/materials/logo/r2s.png</uri> </script>

Changes I have made in .material file:

material Logo/R2S { technique { pass { texture_unit { texture r2s.png scale 150.0 1.0 } } } }

My config file: <?xml version="1.0"?> <model> <name>R2S Cup Car</name> <version>1.0</version> <sdf version="1.5">r2s_cupcar.sdf</sdf> <author> <name>Benjamin Perseghetti</name> <email></email> </author> <description>A model of the R2S Cup Car.</description> </model>

Please guide me about its further process on further changes I can make in my .sdf.jinja file to include logo image properly as for now I am just getting different colours from my image file on the model. Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2021-05-05 02:58:33.875444


This reads like a duplicate of #q377583. Is that correct?

gvdhoorn gravatar image gvdhoorn  ( 2021-05-05 01:24:35 -0500 )edit

Yes, I have made the question a bit more clearer by improving the format

GazeboGeek gravatar image GazeboGeek  ( 2021-05-05 01:29:19 -0500 )edit

Please do not post duplicates, there is no need in this case.

Simply edit your previous question and update it.

Use the edit button/link for that.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-05 02:59:07 -0500 )edit