-
Notifications
You must be signed in to change notification settings - Fork 745
Expand file tree
/
Copy pathant.xml
More file actions
159 lines (146 loc) · 9.26 KB
/
ant.xml
File metadata and controls
159 lines (146 loc) · 9.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!--
Copyright (c) 2020 Philipp Moritz, The dm_control Authors
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
-->
<mujoco model="ant">
<compiler angle="radian"/>
<default>
<motor ctrlrange="-1.0 1.0" ctrllimited="true" gear="75"/>
<geom friction="1 0.5 0.5" solref=".02 1" solimp="0 .8 .01" material="self" density="50.0"/>
<joint limited="true" armature="1" damping="1" stiffness="1" solreflimit=".04 1" solimplimit="0 .8 .03"/>
<default class="rangefinder">
<site type="capsule" size=".05 .5" rgba="1 0 0 .4" group="4"/>
</default>
</default>
<asset>
<material name="self" rgba=".8 .6 .4 1"/>
</asset>
<worldbody>
<camera name="sideon" pos="0 -10 5" fovy="45" mode="targetbody" target="torso" />
<camera name="float_far" pos="-4 0 2" xyaxes="0 -1 0 .5 0 1" mode="trackcom" fovy="90"/>
<body name="torso" pos="0 0 0.522">
<camera name="floating" pos="-2 0 1" xyaxes="0 -1 0 .5 0 1" mode="trackcom" fovy="90"/>
<camera name="egocentric" pos=".25 0 .11" xyaxes="0 -1 0 0 0 1" fovy="90" />
<site name="torso_touch" type="box" size="0.26 0.26 0.26" rgba="0 0 1 1" group="4"/>
<geom name="torso_geom" type="sphere" size="0.25" density="100.0"/>
<site name="torso_site" size="0.05" rgba="1 0 0 1"/>
<site name="rf_xp" class="rangefinder" pos="0.25 0 0.11" zaxis="1 0 0"/>
<site name="rf_xn" class="rangefinder" pos="-0.25 0 0.11" zaxis="-1 0 0"/>
<site name="rf_yp" class="rangefinder" pos="0 0.25 0.11" zaxis="0 1 0"/>
<site name="rf_yn" class="rangefinder" pos="0 -0.25 0.11" zaxis="0 -1 0"/>
<site name="rf_xpyp" class="rangefinder" pos="0.25 0.25 0.11" zaxis="1 1 0"/>
<site name="rf_xpyn" class="rangefinder" pos="0.25 -0.25 0.11" zaxis="1 -1 0"/>
<site name="rf_xnyn" class="rangefinder" pos="-0.25 -0.25 0.11" zaxis="-1 -1 0"/>
<site name="rf_xnyp" class="rangefinder" pos="-0.25 0.25 0.11" zaxis="-1 1 0"/>
<!-- sites that visualize the x-y axis of the ant body, good for debugging -->
<site name="x_pos" type="capsule" pos="0.5 0 0" size=".05 .5" zaxis="1 0 0" rgba="1 0 0 1" group="5"/>
<site name="x_neg" type="capsule" pos="-0.5 0 0" size=".05 .5" zaxis="-1 0 0" rgba="0 0 1 1" group="5"/>
<site name="y_pos" type="capsule" pos="0 0.5 0" size=".05 .5" zaxis="0 1 0" rgba="1 1 1 1" group="5"/>
<site name="y_neg" type="capsule" pos="0 -0.5 0" size=".05 .5" zaxis="0 -1 0" rgba="0 0 0 1" group="5"/>
<site name="port_site" pos=".5 0 0" size="0.5" rgba="1 0 0 1" group="5"/>
<site name="starboard_site" pos="-.5 0 0" size="0.5" rgba="0 1 0 1" group="5"/>
<site name="rc1" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc2" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc3" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc4" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc5" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc6" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc7" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc8" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc9" type="sphere" size=".1" rgba="1 1 1 1"/>
<site name="rc10" type="sphere" size=".1" rgba="1 1 1 1"/>
<body name="front_left_leg">
<geom name="front_left_aux_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 0.2 0.2 0.0"/>
<body name="front_left_aux" pos="0.2 0.2 0">
<joint name="front_left_hip" range="-0.52359 0.52359"/>
<geom name="front_left_leg_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 0.2 0.2 0.0"/>
<site name="front_left_leg_touch" type="box" pos="0.1 0.1 0" size="0.09 0.09 0.24" zaxis="0.2 0.2 0" rgba="1 1 0 0"/>
<body name="front_left_foot" pos="0.2 0.2 0" quat="0.98480775301220802 -0.33428158105097677 0.33428158105097677 0">
<joint name="front_left_ankle" type="hinge" pos="0.0 0.0 0.0" axis="1 -1 0" range="-0.34906 0.34906"/>
<geom name="front_left_ankle_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 0.4 0.4 0.0"/>
<site name="front_left_ankle_touch" type="box" pos="0.2 0.2 0" size="0.1 0.1 0.45" zaxis="0.2 0.2 0.0" rgba="1 1 0 0" />
</body>
</body>
</body>
<body name="front_right_leg">
<geom name="front_right_aux_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 0.2 -0.2 0.0"/>
<body name="front_right_aux" pos="0.2 -0.2 0">
<joint name="front_right_hip" range="-0.52359 0.52359"/>
<geom name="front_right_leg_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 0.2 -0.2 0.0"/>
<site name="front_right_leg_touch" type="box" pos="0.1 -0.1 0" size="0.09 0.09 0.24" zaxis="0.2 -0.2 0.0" rgba="0 0 1 0"/>
<body name="front_right_foot" pos="0.2 -0.2 0" quat="0.98480775301220802 0.33428158105097677 0.33428158105097677 0">
<joint name="front_right_ankle" type="hinge" pos="0.0 0.0 0.0" axis="-1 -1 0" range="-0.34906 0.34906"/>
<geom name="front_right_ankle_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 0.4 -0.4 0.0"/>
<site name="front_right_ankle_touch" type="box" pos="0.2 -0.2 0" size="0.09 0.09 0.39" zaxis="0.2 -0.2 0.0" rgba="0 0 1 0"/>
</body>
</body>
</body>
<body name="back_right_leg">
<geom name="back_right_aux_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 -0.2 -0.2 0.0"/>
<body name="back_right_aux" pos="-0.2 -0.2 0">
<joint name="back_right_hip" range="-0.52359 0.52359"/>
<geom name="back_right_leg_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 -0.2 -0.2 0.0"/>
<site name="back_right_leg_touch" type="box" pos="-0.1 -0.1 0" size="0.09 0.09 0.24" zaxis="-0.2 -0.2 0.0" rgba="0 0 1 0"/>
<body name="back_right_foot" pos="-0.2 -0.2 0" quat="0.98480775301220802 0.33428158105097677 -0.33428158105097677 0">
<joint name="back_right_ankle" type="hinge" pos="0.0 0.0 0.0" axis="-1 1 0" range="-0.34906 0.34906"/>
<geom name="back_right_ankle_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 -0.4 -0.4 0.0"/>
<site name="back_right_ankle_touch" type="box" pos="-0.2 -0.2 0" size="0.09 0.09 0.39" zaxis="-0.2 -0.2 0.0" rgba="0 0 1 0"/>
</body>
</body>
</body>
<body name="back_left_leg">
<geom name="back_left_aux_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 -0.2 0.2 0.0"/>
<body name="back_left_aux" pos="-0.2 0.2 0">
<joint name="back_left_hip" range="-0.52359 0.52359"/>
<geom name="back_left_leg_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 -0.2 0.2 0.0"/>
<site name="back_left_leg_touch" type="box" pos="-0.1 0.1 0" size="0.09 0.09 0.24" zaxis="-0.2 0.2 0.0" rgba="0 0 1 0"/>
<body name="back_left_foot" pos="-0.2 0.2 0" quat="0.98480775301220802 -0.33428158105097677 -0.33428158105097677 0">
<joint name="back_left_ankle" type="hinge" pos="0.0 0.0 0.0" axis="1 1 0" range="-0.34906 0.34906" />
<geom name="back_left_ankle_geom" type="capsule" size="0.08" fromto="0.0 0.0 0.0 -0.4 0.4 0.0"/>
<site name="back_left_ankle_touch" type="box" pos="-0.2 0.2 0" size="0.09 0.09 0.39" zaxis="-0.2 0.2 0.0" rgba="0 0 1 0"/>
</body>
</body>
</body>
</body>
</worldbody>
<actuator>
<motor name="front_left_hip" joint="front_left_hip"/>
<motor name="front_left_ankle" joint="front_left_ankle"/>
<motor name="front_right_hip" joint="front_right_hip"/>
<motor name="front_right_ankle" joint="front_right_ankle"/>
<motor name="back_right_hip" joint="back_right_hip"/>
<motor name="back_right_ankle" joint="back_right_ankle"/>
<motor name="back_left_hip" joint="back_left_hip"/>
<motor name="back_left_ankle" joint="back_left_ankle"/>
</actuator>
<sensor>
<touch name="torso_touch" site="torso_touch"/>
<touch name="front_left_leg_touch" site="front_left_leg_touch"/>
<touch name="front_left_ankle_touch" site="front_left_ankle_touch"/>
<touch name="back_left_leg_touch" site="back_left_leg_touch"/>
<touch name="back_left_ankle_touch" site="back_left_ankle_touch"/>
<touch name="back_right_leg_touch" site="back_right_leg_touch"/>
<touch name="back_right_ankle_touch" site="back_right_ankle_touch"/>
<touch name="front_right_leg_touch" site="front_right_leg_touch"/>
<touch name="front_right_ankle_touch" site="front_right_ankle_touch"/>
<velocimeter name="torso_vel" site="torso_site"/>
<gyro name="torso_gyro" site="torso_site"/>
<accelerometer name="torso_accel" site="torso_site"/>
<rangefinder name="rf_xp" site="rf_xp"/>
<rangefinder name="rf_yp" site="rf_yp"/>
<rangefinder name="rf_xn" site="rf_xn"/>
<rangefinder name="rf_yn" site="rf_yn"/>
<rangefinder name="rf_xpyp" site="rf_xpyp"/>
<rangefinder name="rf_xpyn" site="rf_xpyn"/>
<rangefinder name="rf_xnyp" site="rf_xnyp"/>
<rangefinder name="rf_xnyn" site="rf_xnyn"/>
</sensor>
<contact>
<exclude body1="torso" body2="front_left_aux"/>
<exclude body1="torso" body2="front_right_aux"/>
<exclude body1="torso" body2="back_right_aux"/>
<exclude body1="torso" body2="back_left_aux"/>
</contact>
</mujoco>