-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
66 lines (48 loc) · 1.79 KB
/
run.py
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
from mujoco_base import MuJoCoBase
def main():
# from examples.biped import Biped
# xml_path = "./xml/biped.xml"
# sim = Biped(xml_path)
# from examples.hopper import Hopper
# xml_path = "./xml/hopper.xml"
# sim = Hopper(xml_path)
# from examples.a1_env import A1Sim
# xml_path = "./xml/a1/xml/a1.xml"
# sim = A1Sim(xml_path)
# from examples.control_pendulum import ContolPendulum
# xml_path = "./xml/pendulum.xml"
# sim = ContolPendulum(xml_path)
# from examples.dbpendulum import DoublePendulum
# xml_path = "./xml/doublependulum.xml"
# sim = DoublePendulum(xml_path)
# from examples.gymnast import Gymnast
# xml_path = "./xml/gymnast.xml"
# sim = Gymnast(xml_path)
# from examples.iiwa import Iiwa
# xml_path = "./xml/iiwa/iiwa.xml"
# sim = Iiwa(xml_path)
# from examples.ivp import InitialValueProblem
# xml_path = "./xml/projectile_opt.xml"
# sim = InitialValueProblem(xml_path)
# from examples.jaco2 import Jaco2
# xml_path = "./xml/jaco2/jaco2.xml"
# sim = Jaco2(xml_path)
# from examples.leg_swing import LegSwing
# xml_path = "./xml/doublependulum_leg.xml"
# sim = LegSwing(xml_path)
# from examples.manipulator_drawing import ManipulatorDrawing
# xml_path = "./xml/doublependulum_manipulator.xml"
# sim = ManipulatorDrawing(xml_path)
# from examples.manipulator_ik import ManipulatorIK
# xml_path = "./xml/manipulator.xml"
# sim = ManipulatorIK(xml_path)
# sim.reset()
# sim.simulate()
# sim.visualize()
from examples.underactuated_pendulum import Acrobot
xml_path = "./xml/acrobot.xml"
sim = Acrobot(xml_path)
sim.reset()
sim.simulate()
if __name__ == "__main__":
main()