-
Notifications
You must be signed in to change notification settings - Fork 0
/
ant.xml
111 lines (111 loc) · 6.73 KB
/
ant.xml
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
<mujoco model="ant">
<compiler angle="degree" coordinate="local" inertiafromgeom="true"/>
<option integrator="RK4" timestep="0.01"/>
<custom>
<numeric data="0.0 0.0 0.55 1.0 0.0 0.0 0.0 0.0 1.0 0.0 -1.0 0.0 -1.0 0.0 1.0" name="init_qpos"/>
</custom>
<default>
<joint armature="1" damping="1" limited="true"/>
<geom conaffinity="0" condim="3" density="5.0" friction="1 0.5 0.5" margin="0.01" rgba="0.8 0.6 0.4 1"/>
</default>
<asset>
<texture builtin="gradient" height="100" rgb1="1 1 1" rgb2="0 0 0" type="skybox" width="100"/>
<texture builtin="flat" height="1278" mark="cross" markrgb="1 1 1" name="texgeom" random="0.01" rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" type="cube" width="127"/>
<texture builtin="checker" height="100" name="texplane" rgb1="0 0 0" rgb2="0.8 0.8 0.8" type="2d" width="100"/>
<material name="MatPlane" reflectance="0.5" shininess="1" specular="1" texrepeat="60 60" texture="texplane"/>
<material name="geom" texture="texgeom" texuniform="true"/>
</asset>
<worldbody>
<light cutoff="100" diffuse="1 1 1" dir="-0 0 -1.3" directional="true" exponent="1" pos="0 0 1.3" specular=".1 .1 .1"/>
<geom conaffinity="1" condim="3" material="MatPlane" name="floor" pos="0 0 0" rgba="0.8 0.9 0.8 1" size="40 40 40" type="plane"/>
<body name="torso" pos="0 0 0.75">
<camera name="track" mode="trackcom" pos="0 -3 0.3" xyaxes="1 0 0 0 0 1"/>
<geom name="torso_geom" pos="0 0 0" size="0.25" type="sphere"/>
<joint armature="0" damping="0" limited="false" margin="0.01" name="root" pos="0 0 0" type="free"/>
<body name="front_left_leg" pos="0 0 0">
<geom fromto="0.0 0.0 0.0 0.2 0.2 0.0" name="aux_1_geom" size="0.08" type="capsule" rgba="0.746 0.246 0.246 1"/>
<body name="aux_1" pos="0.2 0.2 0">
<joint axis="0 0 1" name="hip_1" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.2 0.2 0.0" name="left_leg_geom" size="0.08" type="cylinder" rgba="0.746 0.246 0.246 1"/>
<body pos="0.2 0.2 0">
<joint axis="-1 1 0" name="ankle_1" pos="0.0 0.0 0.0" range="30 70" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.4 0.4 0.0" name="left_ankle_geom" size="0.08" type="cylinder" rgba="0.746 0.246 0.246 1"/>
</body>
</body>
</body>
<body name="front_right_leg" pos="0 0 0">
<geom fromto="0.0 0.0 0.0 -0.2 0.2 0.0" name="aux_2_geom" size="0.08" type="capsule" rgba="0.211 0.418 0.902 1"/>
<body name="aux_2" pos="-0.2 0.2 0">
<joint axis="0 0 1" name="hip_2" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
<geom fromto="0.0 0.0 0.0 -0.2 0.2 0.0" name="right_leg_geom" size="0.08" type="cylinder" rgba="0.211 0.418 0.902 1"/>
<body pos="-0.2 0.2 0">
<joint axis="1 1 0" name="ankle_2" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
<geom fromto="0.0 0.0 0.0 -0.4 0.4 0.0" name="right_ankle_geom" size="0.08" type="cylinder" rgba="0.211 0.418 0.902 1"/>
</body>
</body>
</body>
<body name="back_leg" pos="0 0 0">
<geom fromto="0.0 0.0 0.0 -0.2 -0.2 0.0" name="aux_3_geom" size="0.08" type="capsule" rgba="0.207 0.586 0.211 1"/>
<body name="aux_3" pos="-0.2 -0.2 0">
<joint axis="0 0 1" name="hip_3" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
<geom fromto="0.0 0.0 0.0 -0.2 -0.2 0.0" name="back_leg_geom" size="0.08" type="cylinder" rgba="0.207 0.586 0.211 1"/>
<body pos="-0.2 -0.2 0">
<joint axis="-1 1 0" name="ankle_3" pos="0.0 0.0 0.0" range="-70 -30" type="hinge"/>
<geom fromto="0.0 0.0 0.0 -0.4 -0.4 0.0" name="third_ankle_geom" size="0.08" type="cylinder" rgba="0.207 0.586 0.211 1"/>
</body>
</body>
</body>
<body name="right_back_leg" pos="0 0 0">
<geom fromto="0.0 0.0 0.0 0.2 -0.2 0.0" name="aux_4_geom" size="0.08" type="capsule" rgba="1 1 0 1"/>
<body name="aux_4" pos="0.2 -0.2 0">
<joint axis="0 0 1" name="hip_4" pos="0.0 0.0 0.0" range="-30 30" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.2 -0.2 0.0" name="rightback_leg_geom" size="0.08" type="cylinder" rgba="1 1 0 1"/>
<body pos="0.2 -0.2 0">
<joint axis="1 1 0" name="ankle_4" pos="0.0 0.0 0.0" range="30 70" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.4 -0.4 0.0" name="fourth_ankle_geom" size="0.08" type="cylinder" rgba="1 1 0 1"/>
</body>
</body>
</body>
</body>
<body name="Goal" pos="30 8 0">
<!-- <geom name="obstacle_geom" pos="5 5 0" size="4.0" type="sphere"/> rgba="0.15625 0.6367 0.207 1" -->
<body name="Left_Post" pos="0 3 0">
<geom fromto="0.0 0.0 0.0 0.0 0.0 2.0" name="left_post_geom" size="0.25" type="capsule"/>
</body>
<body name="Right_Post" pos="0 -3 0">
<geom fromto="0.0 0.0 0.0 0.0 0.0 2.0" name="right_post_geom" size="0.25" type="capsule"/>
</body>
<body name="Cross_Bar" pos="0 0 2">
<geom fromto="0.0 -3.0 0.0 0. 3.0 0.0" name="cross_bar_geom" size="0.25" type="capsule"/>
</body>
</body>
<body name="Obstacle1" pos="5 2 0">
<geom name="obstacle1_geom" pos="0 0 0" size="1.0" type="sphere" rgba="0.465 0.465 0.465 1"/>
</body>
<body name="Obstacle2" pos="12 6 1">
<geom name="obstacle2_geom" pos="0 0 0" size="1.0" type="sphere" rgba="0.465 0.465 0.465 1"/>
</body>
<body name="Obstacle3" pos="12 1 1">
<geom name="obstacle3_geom" pos="0 0 0" size="1.0" type="sphere" rgba="0.465 0.465 0.465 1"/>
</body>
<body name="Obstacle4" pos="20 3 0">
<geom name="obstacle4_geom" pos="0 0 0" size="2.75" type="sphere" rgba="0.465 0.465 0.465 1"/>
</body>
<body name="Obstacle5" pos="26 6 0">
<geom name="obstacle5_geom" pos="0 0 0" size=".6" type="sphere" rgba="0.465 0.465 0.465 1"/>
</body>
<body name="Obstacle6" pos="26 1 0">
<geom name="obstacle6_geom" pos="0 0 0" size=".5" type="sphere" rgba="0.465 0.465 0.465 1"/>
</body>
</worldbody>
<actuator>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="hip_4" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="ankle_4" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="hip_1" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="ankle_1" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="hip_2" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="ankle_2" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="hip_3" gear="57.29577951"/>
<position ctrllimited="true" ctrlrange="-100.0 100.0" joint="ankle_3" gear="57.29577951"/>
</actuator>
</mujoco>