-
Notifications
You must be signed in to change notification settings - Fork 0
/
hexapod.xml
113 lines (109 loc) · 6.78 KB
/
hexapod.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
112
113
<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.5 0.1 0.1" margin="0.01" rgba="0.8 0.6 0.4 1"/>
</default>
<worldbody>
<body name="torso" pos="0 0 .9">
<geom name="torso_geom" fromto="-0.8 0 0 0.8 0 0" size="0.1" type="capsule"/>
<joint armature="0" damping="0" limited="false" margin="0.01" name="root" pos="0 0 0" type="free"/>
<body name="front_legs" pos="0.8 0 0">
<geom fromto="0.0 -0.2 0.0 0.0 0.2 0.0" name="front_legs_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body name="front_left_leg" pos="0.0 0.2 0.0">
<joint axis="0 1 0" name="hip_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 0.05 0.0" name="front_left_leg_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 0.05 0" name="front_left_foot">
<joint axis="1 0 0" name="ankle_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 0.4 0.0" name="front_left_ankle_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 0.4 0" name="front_left_ext">
<joint axis="1 0 0" name="ext_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0 0.4 0.0" name="front_left_ext_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
</body>
</body>
</body>
<body name="front_right_leg" pos="0.0 -0.2 0.0">
<joint axis="0 1 0" name="hip_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 -0.05 0.0" name="front_right_leg_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 -0.05 0" name="front_right_foot">
<joint axis="1 0 0" name="ankle_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 -0.4 0.0" name="front_right_ankle_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 -0.4 0" name="front_right_ext">
<joint axis="1 0 0" name="ext_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0 -0.4 0.0" name="front_right_ext_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
</body>
</body>
</body>
</body>
<body name="mid_legs" pos="0 0 0">
<geom fromto="0.0 -0.2 0.0 0.0 0.2 0.0" name="mid_legs_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body name="mid_left_leg" pos="0.0 0.2 0.0">
<joint axis="0 1 0" name="hip_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 0.05 0.0" name="mid_left_leg_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 0.05 0" name="mid_left_foot">
<joint axis="1 0 0" name="ankle_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 0.4 0.0" name="mid_left_ankle_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 0.4 0" name="mid_left_ext">
<joint axis="1 0 0" name="ext_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0 0.4 0.0" name="mid_left_ext_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
</body>
</body>
</body>
<body name="mid_right_leg" pos="0.0 -0.2 0.0">
<joint axis="0 1 0" name="hip_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 -0.05 0.0" name="mid_right_leg_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 -0.05 0" name="mid_right_foot">
<joint axis="1 0 0" name="ankle_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 -0.4 0.0" name="mid_right_ankle_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 -0.4 0" name="mid_right_ext">
<joint axis="1 0 0" name="ext_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0 -0.4 0.0" name="mid_right_ext_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
</body>
</body>
</body>
</body>
<body name="back_legs" pos="-0.8 0 0">
<geom fromto="0.0 -0.2 0.0 0.0 0.2 0.0" name="back_legs_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body name="back_left_leg" pos="0.0 0.2 0.0">
<joint axis="0 1 0" name="hip_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 0.05 0.0" name="back_left_leg_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 0.05 0" name="back_left_foot">
<joint axis="1 0 0" name="ankle_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 0.4 0.0" name="back_left_ankle_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 0.4 0" name="back_left_ext">
<joint axis="1 0 0" name="ext_1" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0 0.4 0.0" name="back_left_ext_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
</body>
</body>
</body>
<body name="back_right_leg" pos="0.0 -0.2 0.0">
<joint axis="0 1 0" name="hip_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 -0.05 0.0" name="back_right_leg_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 -0.05 0" name="back_right_foot">
<joint axis="1 0 0" name="ankle_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0.0 -0.4 0.0" name="back_right_ankle_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
<body pos="0 -0.4 0" name="back_right_ext">
<joint axis="1 0 0" name="ext_2" pos="0.0 0.0 0.0" type="hinge"/>
<geom fromto="0.0 0.0 0.0 0 -0.4 0.0" name="back_right_ext_geom" size="0.08" type="capsule" rgba=".8 .5 .3 1"/>
</body>
</body>
</body>
</body>
</body>
</worldbody>
<actuator>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_4" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_4" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_1" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_1" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_2" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_2" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="hip_3" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ankle_3" gear="150"/>
<motor ctrllimited="true" ctrlrange="-1.0 1.0" joint="ext_1" gear="150"/>
</actuator>
</mujoco>