diff options
| author | 2026-11-09 17:48:23 +0000 | |
|---|---|---|
| committer | 2026-11-09 18:03:25 +0000 | |
| commit | bd1b82e7eba0695ad7bb62ca0482e756dc374ba4 (patch) | |
| tree | 8cc51952853cd21cd55b48974c94d57f955ea555 /res/robot.mjcf | |
| download | summer-practice-master.tar.gz | |
Diffstat (limited to 'res/robot.mjcf')
| -rw-r--r-- | res/robot.mjcf | 186 |
1 files changed, 186 insertions, 0 deletions
diff --git a/res/robot.mjcf b/res/robot.mjcf new file mode 100644 index 0000000..122d7d6 --- /dev/null +++ b/res/robot.mjcf | |||
| @@ -0,0 +1,186 @@ | |||
| 1 | <mujoco model="robot"> | ||
| 2 | <option timestep="0.001" | ||
| 3 | viscosity="1" | ||
| 4 | density="1" | ||
| 5 | integrator="implicitfast"> | ||
| 6 | <flag contact="disable" | ||
| 7 | warmstart="disable" | ||
| 8 | equality="enable" | ||
| 9 | frictionloss="disable" | ||
| 10 | midphase="enable" | ||
| 11 | nativeccd="enable" | ||
| 12 | override="disable" | ||
| 13 | fwdinv="disable" | ||
| 14 | invdiscrete="disable" | ||
| 15 | multiccd="enable"/> | ||
| 16 | </option> | ||
| 17 | |||
| 18 | <compiler alignfree="true" | ||
| 19 | balanceinertia="true" | ||
| 20 | angle="degree"/> | ||
| 21 | |||
| 22 | <default> | ||
| 23 | <geom contype="1" condim="1"/> | ||
| 24 | <site size=".0081"/> | ||
| 25 | <position kp="100" kv="10"/> | ||
| 26 | |||
| 27 | <default class="foundation"> | ||
| 28 | <geom type="mesh" mesh="foundation" material="static"/> | ||
| 29 | </default> | ||
| 30 | |||
| 31 | <default class="base-link"> | ||
| 32 | <geom type="mesh" mesh="base-link" material="static"/> | ||
| 33 | </default> | ||
| 34 | |||
| 35 | <default class="arm"> | ||
| 36 | </default> | ||
| 37 | |||
| 38 | <default class="shoulder"> | ||
| 39 | <geom type="mesh" material="shoulder" | ||
| 40 | contype="2" conaffinity="3"/> | ||
| 41 | <joint type="hinge" axis="0 0 1"/> | ||
| 42 | </default> | ||
| 43 | |||
| 44 | <default class="rod"> | ||
| 45 | <geom type="mesh" mesh="rod" material="rod" | ||
| 46 | contype="4" conaffinity="5"/> | ||
| 47 | <joint type="ball"/> | ||
| 48 | <site pos=".65 0 0"/> | ||
| 49 | </default> | ||
| 50 | |||
| 51 | <default class="carriage"> | ||
| 52 | <geom type="mesh" mesh="carriage" material="carriage" | ||
| 53 | contype="8" conaffinity="9"/> | ||
| 54 | </default> | ||
| 55 | </default> | ||
| 56 | |||
| 57 | <visual> | ||
| 58 | <global offwidth="1200" offheight="900"/> | ||
| 59 | <quality shadowsize="2048"/> | ||
| 60 | <map znear="0.01"/> | ||
| 61 | </visual> | ||
| 62 | |||
| 63 | <asset> | ||
| 64 | <texture name="grid" type="2d" builtin="checker" rgb1=".1 .2 .3" | ||
| 65 | rgb2=".2 .3 .4" width="300" height="300"/> | ||
| 66 | <material name="grid" texture="grid" texrepeat="8 8" reflectance=".2"/> | ||
| 67 | <material name="static" rgba=".5 .5 .5 1" shininess=".5"/> | ||
| 68 | <material name="shoulder" rgba=".7 .3 .3 1" shininess=".5"/> | ||
| 69 | <material name="rod" rgba=".3 .3 .7 1" shininess=".5"/> | ||
| 70 | <material name="carriage" rgba=".3 .7 .3 1" shininess=".5"/> | ||
| 71 | |||
| 72 | <mesh name="foundation" file="meshes/foundation.stl"/> | ||
| 73 | <mesh name="base-link" file="meshes/base-link.stl"/> | ||
| 74 | <mesh name="shoulder-horizontal" file="meshes/shoulder-horizontal.stl"/> | ||
| 75 | <mesh name="shoulder-vertical" file="meshes/shoulder-vertical.stl"/> | ||
| 76 | <mesh name="rod" file="meshes/rod.stl"/> | ||
| 77 | <mesh name="carriage" file="meshes/carriage.stl"/> | ||
| 78 | </asset> | ||
| 79 | |||
| 80 | <worldbody> | ||
| 81 | <geom name="ground" type="plane" material="grid" | ||
| 82 | pos=".5 0 0" size="1 1 0.1"/> | ||
| 83 | <light directional="true" diffuse=".8 .8 .8" specular=".3 .3 .3" | ||
| 84 | pos="0 0 5" dir="0 0 -1"/> | ||
| 85 | |||
| 86 | <body childclass="foundation" name="foundation"> | ||
| 87 | <geom/> | ||
| 88 | <body childclass="base-link" name="base-link"> | ||
| 89 | <geom pos="0 0 .19"/> | ||
| 90 | |||
| 91 | <body childclass="arm" name="arm-left" | ||
| 92 | pos=".274 -.15 1.48" euler="0 15 60"> | ||
| 93 | <body childclass="shoulder" name="shoulder-left"> | ||
| 94 | <geom mesh="shoulder-horizontal"/> | ||
| 95 | <joint name="shoulder-left"/> | ||
| 96 | <body childclass="rod" name="rods-left" | ||
| 97 | pos=".549 -.02 0" euler="-8 0 0"> | ||
| 98 | <body name="rod-left-lower" pos="0 0 -.04" euler="0 0 -80"> | ||
| 99 | <geom/> | ||
| 100 | <joint name="shoulder-left-rod-lower"/> | ||
| 101 | <site name="rod-left-lower"/> | ||
| 102 | </body> | ||
| 103 | <body name="rod-left-upper" pos="0 0 .04" euler="0 180 -100"> | ||
| 104 | <geom/> | ||
| 105 | <joint name="shoulder-left-rod-upper"/> | ||
| 106 | <site name="rod-left-upper"/> | ||
| 107 | </body> | ||
| 108 | </body> | ||
| 109 | </body> | ||
| 110 | </body> | ||
| 111 | |||
| 112 | <body childclass="arm" name="arm-right" | ||
| 113 | pos=".305 .15 1.595" euler="180 -15 60"> | ||
| 114 | <body childclass="shoulder" name="shoulder-right"> | ||
| 115 | <geom mesh="shoulder-horizontal"/> | ||
| 116 | <joint name="shoulder-right"/> | ||
| 117 | <body childclass="rod" name="rods-right" | ||
| 118 | pos=".549 -.02 0" euler="-3 0 0"> | ||
| 119 | <body name="rod-right-lower" pos="0 0 .04" euler="0 180 -80"> | ||
| 120 | <geom/> | ||
| 121 | <joint name="shoulder-right-rod-lower"/> | ||
| 122 | <site name="rod-right-lower"/> | ||
| 123 | </body> | ||
| 124 | <body name="rod-right-upper" pos="0 0 -.04" euler="0 0 -100"> | ||
| 125 | <geom/> | ||
| 126 | <joint name="shoulder-right-rod-upper"/> | ||
| 127 | <site name="rod-right-upper"/> | ||
| 128 | </body> | ||
| 129 | </body> | ||
| 130 | </body> | ||
| 131 | </body> | ||
| 132 | |||
| 133 | <body childclass="arm" name="arm-upper" | ||
| 134 | pos=".282 -.02 1.684" euler="-90 0 -30"> | ||
| 135 | <body childclass="shoulder" name="shoulder-upper"> | ||
| 136 | <geom mesh="shoulder-vertical"/> | ||
| 137 | <joint name="shoulder-upper"/> | ||
| 138 | <body childclass="rod" name="rods-upper" | ||
| 139 | pos=".552 .022 0" euler="0 0 -10"> | ||
| 140 | <body name="rod-upper-left" pos="0 0 -.05" euler="0 0 95"> | ||
| 141 | <geom/> | ||
| 142 | <joint name="shoulder-upper-rod-left"/> | ||
| 143 | <site name="rod-upper-left"/> | ||
| 144 | </body> | ||
| 145 | <body name="rod-upper-right" pos="0 0 .05" euler="180 0 -95"> | ||
| 146 | <geom/> | ||
| 147 | <joint name="shoulder-upper-rod-right"/> | ||
| 148 | <site name="rod-upper-right"/> | ||
| 149 | </body> | ||
| 150 | </body> | ||
| 151 | </body> | ||
| 152 | </body> | ||
| 153 | </body> | ||
| 154 | </body> | ||
| 155 | |||
| 156 | <body childclass="carriage" name="carriage" pos="1.170 -.004 1.332"> | ||
| 157 | <!-- <freejoint/> --> | ||
| 158 | <joint type="slide" axis="1 0 0"/> | ||
| 159 | <joint type="slide" axis="0 1 0"/> | ||
| 160 | <joint type="slide" axis="0 0 1"/> | ||
| 161 | |||
| 162 | <geom/> | ||
| 163 | <site name="carriage-left-lower" pos="-.0472 +.057498 -.0367589"/> | ||
| 164 | <site name="carriage-left-upper" pos="-.0275 +.057498 +.0367589"/> | ||
| 165 | <site name="carriage-right-lower" pos="-.0472 -.057498 -.0367589"/> | ||
| 166 | <site name="carriage-right-upper" pos="-.0275 -.057498 +.0367589"/> | ||
| 167 | <site name="carriage-upper-left" pos="+.0000 -.050555 +.0397000"/> | ||
| 168 | <site name="carriage-upper-right" pos="+.0000 +.050555 +.0397000"/> | ||
| 169 | </body> | ||
| 170 | </worldbody> | ||
| 171 | |||
| 172 | <equality> | ||
| 173 | <connect site1="carriage-left-lower" site2="rod-left-lower"/> | ||
| 174 | <connect site1="carriage-left-upper" site2="rod-left-upper"/> | ||
| 175 | <connect site1="carriage-right-lower" site2="rod-right-lower"/> | ||
| 176 | <connect site1="carriage-right-upper" site2="rod-right-upper"/> | ||
| 177 | <connect site1="carriage-upper-left" site2="rod-upper-left"/> | ||
| 178 | <connect site1="carriage-upper-right" site2="rod-upper-right"/> | ||
| 179 | </equality> | ||
| 180 | |||
| 181 | <actuator> | ||
| 182 | <position name="servo-left" joint="shoulder-left"/> | ||
| 183 | <position name="servo-right" joint="shoulder-right"/> | ||
| 184 | <position name="servo-upper" joint="shoulder-upper"/> | ||
| 185 | </actuator> | ||
| 186 | </mujoco> | ||
