Gazebo: Q&A Forum - RSS feedhttp://answers.gazebosim.org/questions/Open source question and answer forum for GazeboenCopyright Askbot, 2010-2011.Tue, 13 Dec 2016 10:26:51 -0600Hi, 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.http://answers.gazebosim.org/question/15008/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.Tue, 13 Dec 2016 08:31:34 -0600http://answers.gazebosim.org/question/15008/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/Answer by chapulina for <p>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.</p>
http://answers.gazebosim.org/question/15008/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/?answer=15009#post-id-15009You could use the [model editor](http://gazebosim.org/tutorials?tut=model_editor&cat=model_editor_top) to create it graphically.
Or you could write [SDF](http://sdformat.org/spec) 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](http://gazebosim.org/tutorials?tut=model_structure&cat=build_robot) tutorial has a nice introduction.Tue, 13 Dec 2016 10:26:51 -0600http://answers.gazebosim.org/question/15008/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/?answer=15009#post-id-15009