Hi, I need to make 3 cubes, each one with a different color (red, blue and green) and I cant find how to do so. Can anyone help me? Thanks.
Hi, I need to make 3 cubes, each one with a different color (red, blue and green) and I cant find how to do so. Can anyone help me? Thanks.
Asked by eyal.erez on 2016-12-13 09:31:34 UTC
Answers
You could use the model editor to create it graphically.
Or you could write SDF directly. Something like this:
<model name="box">
<pose>0 0 0.5 0 0 0</pose>
<link name="link">
<collision name="collision">
<geometry>
<box>
<size>1 1 1</size>
</box>
</geometry>
</collision>
<visual name="visual">
<geometry>
<box>
<size>1 1 1</size>
</box>
</geometry>
<material>
<script>Gazebo/Red</script> <!-- Green / Blue -->
</material>
</visual>
</link>
</model>
If you're new to making Gazebo models, this tutorial has a nice introduction.
Asked by chapulina on 2016-12-13 11:26:51 UTC
Comments