Skip to content

Commit b3f9f5a

Browse files
committed
Add fused models
1 parent 61733c4 commit b3f9f5a

12 files changed

Lines changed: 160 additions & 64 deletions
4.09 MB
Binary file not shown.
1.08 MB
Binary file not shown.
1.3 MB
Binary file not shown.
1.94 MB
Binary file not shown.

drone_models/data/cf21B_500.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,4 @@
8282
</body>
8383
</worldbody>
8484

85-
<!-- Actuators
86-
We do not limit the actuation range of the motors here, because we would need to synchronize the
87-
control limits from our constants module with the ones in the MuJoCo model. Instead, we rely on
88-
the controller simulation for proper clipping.
89-
-->
90-
<actuator>
91-
<motor gear="0 0 1 0 0 0" site="motor0" name="motor0_force" />
92-
<motor gear="0 0 1 0 0 0" site="motor1" name="motor1_force" />
93-
<motor gear="0 0 1 0 0 0" site="motor2" name="motor2_force" />
94-
<motor gear="0 0 1 0 0 0" site="motor3" name="motor3_force" />
95-
<motor gear="0 0 0 0 0 1" site="motor0" name="motor0_torque" />
96-
<motor gear="0 0 0 0 0 1" site="motor1" name="motor1_torque" />
97-
<motor gear="0 0 0 0 0 1" site="motor2" name="motor2_torque" />
98-
<motor gear="0 0 0 0 0 1" site="motor3" name="motor3_torque" />
99-
</actuator>
100-
10185
</mujoco>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<mujoco model="cf21B">
2+
<compiler inertiafromgeom="false" meshdir="assets" autolimits="true" />
3+
4+
<asset>
5+
<mesh name="cf21B_fused" file="cf21B/cf21B_fused.stl" scale="1e-3 1e-3 1e-3"/>
6+
</asset>
7+
8+
<default>
9+
<default class="cf21B">
10+
<default class="visual">
11+
<geom group="2" type="mesh" contype="0" conaffinity="0" />
12+
</default>
13+
<default class="collision">
14+
<geom group="3" condim="1" />
15+
</default>
16+
<site group="5" />
17+
</default>
18+
</default>
19+
20+
<worldbody>
21+
<body name="drone" pos="0 0 0.05" childclass="cf21B">
22+
<site name="CoM" />
23+
<inertial pos="0.0 0.0 0.0" mass="0.04338" diaginertia="2.3951e-5 2.3951e-5 3.2347e-5" />
24+
25+
<geom mesh="cf21B_fused" material="" class="visual" />
26+
27+
<geom name="col_sphere" type="sphere" size="0.086" pos="0 0 0.02" class="collision" contype="1" conaffinity="1" />
28+
<geom name="col_box" type="box" size="0.07 0.07 0.02" class="collision" rgba="0.5 0.5 0.5 0" contype="0" conaffinity="0" />
29+
30+
<site name="motor0" pos="0.03536 -0.03536 0.0" />
31+
<site name="motor1" pos="-0.03536 -0.03536 0.0" />
32+
<site name="motor2" pos="-0.03536 0.03536 0.0" />
33+
<site name="motor3" pos="0.03536 0.03536 0.0" />
34+
35+
<camera name="track_cam" pos="-1 0 .5" xyaxes="0 -1 0 1 0 2" mode="trackcom" />
36+
<camera name="fpv_cam" pos="0.03 0 0" euler="0 -90 -90" fovy="70" resolution="640 480" />
37+
</body>
38+
</worldbody>
39+
40+
</mujoco>

drone_models/data/cf2x_L250.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,4 @@
8282
</body>
8383
</worldbody>
8484

85-
<!-- Actuators
86-
We do not limit the actuation range of the motors here, because we would need to synchronize the
87-
control limits from our constants module with the ones in the MuJoCo model. Instead, we rely on
88-
the controller simulation for proper clipping.
89-
-->
90-
<actuator>
91-
<motor gear="0 0 1 0 0 0" site="motor0" name="motor0_force" />
92-
<motor gear="0 0 1 0 0 0" site="motor1" name="motor1_force" />
93-
<motor gear="0 0 1 0 0 0" site="motor2" name="motor2_force" />
94-
<motor gear="0 0 1 0 0 0" site="motor3" name="motor3_force" />
95-
<motor gear="0 0 0 0 0 1" site="motor0" name="motor0_torque" />
96-
<motor gear="0 0 0 0 0 1" site="motor1" name="motor1_torque" />
97-
<motor gear="0 0 0 0 0 1" site="motor2" name="motor2_torque" />
98-
<motor gear="0 0 0 0 0 1" site="motor3" name="motor3_torque" />
99-
</actuator>
100-
10185
</mujoco>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<mujoco model="cf2x">
2+
<compiler inertiafromgeom="false" meshdir="assets" autolimits="true" />
3+
4+
<asset>
5+
<mesh name="cf2x_fused" file="cf2x/cf2xL_fused.stl" scale="0.001 0.001 0.001"/>
6+
</asset>
7+
8+
<default>
9+
<default class="cf2x">
10+
<default class="visual">
11+
<geom group="2" type="mesh" contype="0" conaffinity="0" />
12+
</default>
13+
<default class="collision">
14+
<geom group="3" condim="1" />
15+
</default>
16+
<site group="5" />
17+
</default>
18+
</default>
19+
20+
<worldbody>
21+
<body name="drone" pos="0 0 0.05" childclass="cf2x">
22+
<site name="CoM" />
23+
<inertial pos="0.0 0.0 0.0" mass="0.027" diaginertia="2.3951e-5 2.3951e-5 3.2347e-5" />
24+
<geom mesh="cf2x_fused" material="" class="visual" />
25+
26+
27+
<geom name="col_sphere" type="sphere" size="0.07" pos="0 0 0.005" class="collision" contype="1" conaffinity="1" />
28+
<geom name="col_box" type="box" size="0.055 0.055 0.02" class="collision" rgba="0.5 0.5 0.5 0" contype="0" conaffinity="0" />
29+
30+
<site name="motor0" pos="0.0325 -0.0325 0.0" />
31+
<site name="motor1" pos="-0.0325 -0.0325 0.0" />
32+
<site name="motor2" pos="-0.0325 0.0325 0.0" />
33+
<site name="motor3" pos="0.0325 0.0325 0.0" />
34+
35+
<camera name="track_cam" pos="-1 0 .5" xyaxes="0 -1 0 1 0 2" mode="trackcom" />
36+
<camera name="fpv_cam" pos="0.03 0 0" euler="0 -90 -90" fovy="70" resolution="640 480" />
37+
</body>
38+
</worldbody>
39+
40+
</mujoco>

drone_models/data/cf2x_P250.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,4 @@
8282
</body>
8383
</worldbody>
8484

85-
<!-- Actuators
86-
We do not limit the actuation range of the motors here, because we would need to synchronize the
87-
control limits from our constants module with the ones in the MuJoCo model. Instead, we rely on
88-
the controller simulation for proper clipping.
89-
-->
90-
<actuator>
91-
<motor gear="0 0 1 0 0 0" site="motor0" name="motor0_force" />
92-
<motor gear="0 0 1 0 0 0" site="motor1" name="motor1_force" />
93-
<motor gear="0 0 1 0 0 0" site="motor2" name="motor2_force" />
94-
<motor gear="0 0 1 0 0 0" site="motor3" name="motor3_force" />
95-
<motor gear="0 0 0 0 0 1" site="motor0" name="motor0_torque" />
96-
<motor gear="0 0 0 0 0 1" site="motor1" name="motor1_torque" />
97-
<motor gear="0 0 0 0 0 1" site="motor2" name="motor2_torque" />
98-
<motor gear="0 0 0 0 0 1" site="motor3" name="motor3_torque" />
99-
</actuator>
100-
10185
</mujoco>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<mujoco model="cf2x">
2+
<compiler inertiafromgeom="false" meshdir="assets" autolimits="true" />
3+
4+
<asset>
5+
<mesh name="cf2x_fused" file="cf2x/cf2xP_fused.stl" scale="0.001 0.001 0.001"/>
6+
</asset>
7+
8+
<default>
9+
<default class="cf2x">
10+
<default class="visual">
11+
<geom group="2" type="mesh" contype="0" conaffinity="0" />
12+
</default>
13+
<default class="collision">
14+
<geom group="3" condim="1" />
15+
</default>
16+
<site group="5" />
17+
</default>
18+
</default>
19+
20+
<worldbody>
21+
<body name="drone" pos="0 0 0.05" childclass="cf2x">
22+
<site name="CoM" />
23+
<inertial pos="0.0 0.0 0.0" mass="0.027" diaginertia="2.3951e-5 2.3951e-5 3.2347e-5" />
24+
25+
<geom mesh="cf2x_fused" material="" class="visual" />
26+
27+
<geom name="col_sphere" type="sphere" size="0.07" pos="0 0 0.005" class="collision" contype="1" conaffinity="1" />
28+
<geom name="col_box" type="box" size="0.055 0.055 0.02" class="collision" rgba="0.5 0.5 0.5 0" contype="0" conaffinity="0" />
29+
30+
<site name="motor0" pos="0.0325 -0.0325 0.0" />
31+
<site name="motor1" pos="-0.0325 -0.0325 0.0" />
32+
<site name="motor2" pos="-0.0325 0.0325 0.0" />
33+
<site name="motor3" pos="0.0325 0.0325 0.0" />
34+
35+
<camera name="track_cam" pos="-1 0 .5" xyaxes="0 -1 0 1 0 2" mode="trackcom" />
36+
<camera name="fpv_cam" pos="0.03 0 0" euler="0 -90 -90" fovy="70" resolution="640 480" />
37+
</body>
38+
</worldbody>
39+
40+
</mujoco>

0 commit comments

Comments
 (0)