File: rotations.xml

package info (click to toggle)
mujoco 2.2.2-3.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,796 kB
  • sloc: ansic: 28,947; cpp: 28,897; cs: 14,241; python: 10,465; xml: 5,104; sh: 93; makefile: 34
file content (29 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download | duplicates (2)
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
<!-- This file is a playground for understanding different rotations.
     Currently, two examples are given:
     - A rotation in the xy plane about a ball joint located in the corner of a box.
     - A rotation in the xy plane about a free joing located in the center of a box.
-->

<mujoco>
  <option density="1000">
    <flag gravity="disable"/>
  </option>

  <worldbody>
    <geom type="plane" size="10 10 .1" rgba="1 1 1 1"/>
    <light pos="0 0 20"/>
    <body name="body_ball" pos="0 0 .5">
      <geom type="box" size=".5 .5 .1" pos="0 0 0"/>
      <joint name="ball" pos=".5 .5 0" axis="0 0 1" type="ball"/>
    </body>
    <body name="body_free" pos="3 0 .5">
      <freejoint name="free"/>
      <geom type="box" size=".5 .5 .1" pos="0 0 0"/>
    </body>
  </worldbody>

  <actuator>
    <general name="ball" joint="ball" dyntype="integrator" gear="0 0 1" ctrllimited="true" ctrlrange="-100 100"/>
    <general name="free" joint="free" dyntype="integrator" gear="0 0 0 0 0 1" ctrllimited="true" ctrlrange="-100 100"/>
  </actuator>
</mujoco>