Skip to content

Commit 4eff0cc

Browse files
committed
Different materials for top and bottom decks.
1 parent c209ada commit 4eff0cc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

drone_models/data/cf21B_500.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<material name="silver" rgba="0.898 0.898 0.898 1"/>
99
<material name="gold" rgba="0.969 0.878 0.6 1"/>
1010
<material name="green" rgba="0.522 0.902 0.145 1"/>
11-
<material name="clear" rgba="1.0 1.0 1.0 0.0"/>
11+
<!-- The LED materials are initially transparent and can be changed dynamically -->
12+
<material name="led_top" rgba="1.0 1.0 1.0 0.0"/>
13+
<material name="led_bot" rgba="1.0 1.0 1.0 0.0"/>
1214

1315
<mesh name="pcb" file="cf21B/cf21B_pcb.stl" scale="1e-3 1e-3 1e-3"/>
1416
<mesh name="motors" file="cf21B/cf21B_motors.stl" scale="1e-3 1e-3 1e-3"/>
@@ -47,8 +49,8 @@
4749
<geom mesh="connector-pins" material="gold" class="visual" />
4850
<geom mesh="battery" material="light-gray" class="visual" />
4951
<geom mesh="battery-holder" material="black" class="visual" />
50-
<geom name="led_top" mesh="led-diffusor" material="clear" class="visual" pos="0 0 0.015"/>
51-
<geom name="led_bot" mesh="led-diffusor" material="clear" class="visual" pos="0 0 -0.002" euler="180 0 0"/>
52+
<geom name="led_top" mesh="led-diffusor" material="led_top" class="visual" pos="0 0 0.015"/>
53+
<geom name="led_bot" mesh="led-diffusor" material="led_bot" class="visual" pos="0 0 -0.002" euler="180 0 0"/>
5254

5355
<!-- Collision geometry is estimated based on the visual mesh. We use a sphere for maximum
5456
computational efficiency with larger swarms. Used by default-->

0 commit comments

Comments
 (0)