<mujoco model="308-detached-pendulum-escapement">
<compiler angle="radian" autolimits="true"/>
<option timestep="0.0002" integrator="implicitfast" iterations="50" cone="elliptic" impratio="10" gravity="0 0 -9.81"/>
<asset><mesh name="wheel_h0" vertex="0.0115 -0.006 -0.0173205 0.0115 -0.001 -0.0173205 0.0114488887 -0.006 -0.0169322714 0.0114488887 -0.001 -0.0169322714 0.0112990381 -0.006 -0.0165705 0.0112990381 -0.001 -0.0165705 0.0110606602 -0.006 -0.0162598398 0.0110606602 -0.001 -0.0162598398 0.01075 -0.006 -0.0160214619 0.01075 -0.001 -0.0160214619 0.0103882286 -0.006 -0.0158716113 0.0103882286 -0.001 -0.0158716113 0.01 -0.006 -0.0158205 0.01 -0.001 -0.0158205 0.00961177143 -0.006 -0.0158716113 0.00961177143 -0.001 -0.0158716113 0.00925 -0.006 -0.0160214619 0.00925 -0.001 -0.0160214619 0.00893933983 -0.006 -0.0162598398 0.00893933983 -0.001 -0.0162598398 0.00870096189 -0.006 -0.0165705 0.00870096189 -0.001 -0.0165705 0.00855111126 -0.006 -0.0169322714 0.00855111126 -0.001 -0.0169322714 0.0085 -0.006 -0.0173205 0.0085 -0.001 -0.0173205 0.00855111126 -0.006 -0.0177087286 0.00855111126 -0.001 -0.0177087286 0.00870096189 -0.006 -0.0180705 0.00870096189 -0.001 -0.0180705 0.00893933983 -0.006 -0.0183811602 0.00893933983 -0.001 -0.0183811602 0.00925 -0.006 -0.0186195381 0.00925 -0.001 -0.0186195381 0.00961177143 -0.006 -0.0187693887 0.00961177143 -0.001 -0.0187693887 0.01 -0.006 -0.0188205 0.01 -0.001 -0.0188205 0.0103882286 -0.006 -0.0187693887 0.0103882286 -0.001 -0.0187693887 0.01075 -0.006 -0.0186195381 0.01075 -0.001 -0.0186195381 0.0110606602 -0.006 -0.0183811602 0.0110606602 -0.001 -0.0183811602 0.0112990381 -0.006 -0.0180705 0.0112990381 -0.001 -0.0180705 0.0114488887 -0.006 -0.0177087286 0.0114488887 -0.001 -0.0177087286"/><mesh name="wheel_h1" vertex="0.0215 -0.006 0 0.0215 -0.001 0 0.0214488887 -0.006 0.000388228568 0.0214488887 -0.001 0.000388228568 0.0212990381 -0.006 0.00075 0.0212990381 -0.001 0.00075 0.0210606602 -0.006 0.00106066017 0.0210606602 -0.001 0.00106066017 0.02075 -0.006 0.00129903811 0.02075 -0.001 0.00129903811 0.0203882286 -0.006 0.00144888874 0.0203882286 -0.001 0.00144888874 0.02 -0.006 0.0015 0.02 -0.001 0.0015 0.0196117714 -0.006 0.00144888874 0.0196117714 -0.001 0.00144888874 0.01925 -0.006 0.00129903811 0.01925 -0.001 0.00129903811 0.0189393398 -0.006 0.00106066017 0.0189393398 -0.001 0.00106066017 0.0187009619 -0.006 0.00075 0.0187009619 -0.001 0.00075 0.0185511113 -0.006 0.000388228568 0.0185511113 -0.001 0.000388228568 0.0185 -0.006 1.8369702e-19 0.0185 -0.001 1.8369702e-19 0.0185511113 -0.006 -0.000388228568 0.0185511113 -0.001 -0.000388228568 0.0187009619 -0.006 -0.00075 0.0187009619 -0.001 -0.00075 0.0189393398 -0.006 -0.00106066017 0.0189393398 -0.001 -0.00106066017 0.01925 -0.006 -0.00129903811 0.01925 -0.001 -0.00129903811 0.0196117714 -0.006 -0.00144888874 0.0196117714 -0.001 -0.00144888874 0.02 -0.006 -0.0015 0.02 -0.001 -0.0015 0.0203882286 -0.006 -0.00144888874 0.0203882286 -0.001 -0.00144888874 0.02075 -0.006 -0.00129903811 0.02075 -0.001 -0.00129903811 0.0210606602 -0.006 -0.00106066017 0.0210606602 -0.001 -0.00106066017 0.0212990381 -0.006 -0.00075 0.0212990381 -0.001 -0.00075 0.0214488887 -0.006 -0.000388228568 0.0214488887 -0.001 -0.000388228568"/><mesh name="wheel_h2" vertex="0.0115 -0.006 0.0173205 0.0115 -0.001 0.0173205 0.0114488887 -0.006 0.0177087286 0.0114488887 -0.001 0.0177087286 0.0112990381 -0.006 0.0180705 0.0112990381 -0.001 0.0180705 0.0110606602 -0.006 0.0183811602 0.0110606602 -0.001 0.0183811602 0.01075 -0.006 0.0186195381 0.01075 -0.001 0.0186195381 0.0103882286 -0.006 0.0187693887 0.0103882286 -0.001 0.0187693887 0.01 -0.006 0.0188205 0.01 -0.001 0.0188205 0.00961177143 -0.006 0.0187693887 0.00961177143 -0.001 0.0187693887 0.00925 -0.006 0.0186195381 0.00925 -0.001 0.0186195381 0.00893933983 -0.006 0.0183811602 0.00893933983 -0.001 0.0183811602 0.00870096189 -0.006 0.0180705 0.00870096189 -0.001 0.0180705 0.00855111126 -0.006 0.0177087286 0.00855111126 -0.001 0.0177087286 0.0085 -0.006 0.0173205 0.0085 -0.001 0.0173205 0.00855111126 -0.006 0.0169322714 0.00855111126 -0.001 0.0169322714 0.00870096189 -0.006 0.0165705 0.00870096189 -0.001 0.0165705 0.00893933983 -0.006 0.0162598398 0.00893933983 -0.001 0.0162598398 0.00925 -0.006 0.0160214619 0.00925 -0.001 0.0160214619 0.00961177143 -0.006 0.0158716113 0.00961177143 -0.001 0.0158716113 0.01 -0.006 0.0158205 0.01 -0.001 0.0158205 0.0103882286 -0.006 0.0158716113 0.0103882286 -0.001 0.0158716113 0.01075 -0.006 0.0160214619 0.01075 -0.001 0.0160214619 0.0110606602 -0.006 0.0162598398 0.0110606602 -0.001 0.0162598398 0.0112990381 -0.006 0.0165705 0.0112990381 -0.001 0.0165705 0.0114488887 -0.006 0.0169322714 0.0114488887 -0.001 0.0169322714"/><mesh name="wheel_h3" vertex="-0.0085 -0.006 0.0173205 -0.0085 -0.001 0.0173205 -0.00855111126 -0.006 0.0177087286 -0.00855111126 -0.001 0.0177087286 -0.00870096189 -0.006 0.0180705 -0.00870096189 -0.001 0.0180705 -0.00893933983 -0.006 0.0183811602 -0.00893933983 -0.001 0.0183811602 -0.00925 -0.006 0.0186195381 -0.00925 -0.001 0.0186195381 -0.00961177143 -0.006 0.0187693887 -0.00961177143 -0.001 0.0187693887 -0.01 -0.006 0.0188205 -0.01 -0.001 0.0188205 -0.0103882286 -0.006 0.0187693887 -0.0103882286 -0.001 0.0187693887 -0.01075 -0.006 0.0186195381 -0.01075 -0.001 0.0186195381 -0.0110606602 -0.006 0.0183811602 -0.0110606602 -0.001 0.0183811602 -0.0112990381 -0.006 0.0180705 -0.0112990381 -0.001 0.0180705 -0.0114488887 -0.006 0.0177087286 -0.0114488887 -0.001 0.0177087286 -0.0115 -0.006 0.0173205 -0.0115 -0.001 0.0173205 -0.0114488887 -0.006 0.0169322714 -0.0114488887 -0.001 0.0169322714 -0.0112990381 -0.006 0.0165705 -0.0112990381 -0.001 0.0165705 -0.0110606602 -0.006 0.0162598398 -0.0110606602 -0.001 0.0162598398 -0.01075 -0.006 0.0160214619 -0.01075 -0.001 0.0160214619 -0.0103882286 -0.006 0.0158716113 -0.0103882286 -0.001 0.0158716113 -0.01 -0.006 0.0158205 -0.01 -0.001 0.0158205 -0.00961177143 -0.006 0.0158716113 -0.00961177143 -0.001 0.0158716113 -0.00925 -0.006 0.0160214619 -0.00925 -0.001 0.0160214619 -0.00893933983 -0.006 0.0162598398 -0.00893933983 -0.001 0.0162598398 -0.00870096189 -0.006 0.0165705 -0.00870096189 -0.001 0.0165705 -0.00855111126 -0.006 0.0169322714 -0.00855111126 -0.001 0.0169322714"/><mesh name="wheel_h4" vertex="-0.0185 -0.006 0 -0.0185 -0.001 0 -0.0185511113 -0.006 0.000388228568 -0.0185511113 -0.001 0.000388228568 -0.0187009619 -0.006 0.00075 -0.0187009619 -0.001 0.00075 -0.0189393398 -0.006 0.00106066017 -0.0189393398 -0.001 0.00106066017 -0.01925 -0.006 0.00129903811 -0.01925 -0.001 0.00129903811 -0.0196117714 -0.006 0.00144888874 -0.0196117714 -0.001 0.00144888874 -0.02 -0.006 0.0015 -0.02 -0.001 0.0015 -0.0203882286 -0.006 0.00144888874 -0.0203882286 -0.001 0.00144888874 -0.02075 -0.006 0.00129903811 -0.02075 -0.001 0.00129903811 -0.0210606602 -0.006 0.00106066017 -0.0210606602 -0.001 0.00106066017 -0.0212990381 -0.006 0.00075 -0.0212990381 -0.001 0.00075 -0.0214488887 -0.006 0.000388228568 -0.0214488887 -0.001 0.000388228568 -0.0215 -0.006 1.8369702e-19 -0.0215 -0.001 1.8369702e-19 -0.0214488887 -0.006 -0.000388228568 -0.0214488887 -0.001 -0.000388228568 -0.0212990381 -0.006 -0.00075 -0.0212990381 -0.001 -0.00075 -0.0210606602 -0.006 -0.00106066017 -0.0210606602 -0.001 -0.00106066017 -0.02075 -0.006 -0.00129903811 -0.02075 -0.001 -0.00129903811 -0.0203882286 -0.006 -0.00144888874 -0.0203882286 -0.001 -0.00144888874 -0.02 -0.006 -0.0015 -0.02 -0.001 -0.0015 -0.0196117714 -0.006 -0.00144888874 -0.0196117714 -0.001 -0.00144888874 -0.01925 -0.006 -0.00129903811 -0.01925 -0.001 -0.00129903811 -0.0189393398 -0.006 -0.00106066017 -0.0189393398 -0.001 -0.00106066017 -0.0187009619 -0.006 -0.00075 -0.0187009619 -0.001 -0.00075 -0.0185511113 -0.006 -0.000388228568 -0.0185511113 -0.001 -0.000388228568"/><mesh name="wheel_h5" vertex="-0.0085 -0.006 -0.0173205 -0.0085 -0.001 -0.0173205 -0.00855111126 -0.006 -0.0169322714 -0.00855111126 -0.001 -0.0169322714 -0.00870096189 -0.006 -0.0165705 -0.00870096189 -0.001 -0.0165705 -0.00893933983 -0.006 -0.0162598398 -0.00893933983 -0.001 -0.0162598398 -0.00925 -0.006 -0.0160214619 -0.00925 -0.001 -0.0160214619 -0.00961177143 -0.006 -0.0158716113 -0.00961177143 -0.001 -0.0158716113 -0.01 -0.006 -0.0158205 -0.01 -0.001 -0.0158205 -0.0103882286 -0.006 -0.0158716113 -0.0103882286 -0.001 -0.0158716113 -0.01075 -0.006 -0.0160214619 -0.01075 -0.001 -0.0160214619 -0.0110606602 -0.006 -0.0162598398 -0.0110606602 -0.001 -0.0162598398 -0.0112990381 -0.006 -0.0165705 -0.0112990381 -0.001 -0.0165705 -0.0114488887 -0.006 -0.0169322714 -0.0114488887 -0.001 -0.0169322714 -0.0115 -0.006 -0.0173205 -0.0115 -0.001 -0.0173205 -0.0114488887 -0.006 -0.0177087286 -0.0114488887 -0.001 -0.0177087286 -0.0112990381 -0.006 -0.0180705 -0.0112990381 -0.001 -0.0180705 -0.0110606602 -0.006 -0.0183811602 -0.0110606602 -0.001 -0.0183811602 -0.01075 -0.006 -0.0186195381 -0.01075 -0.001 -0.0186195381 -0.0103882286 -0.006 -0.0187693887 -0.0103882286 -0.001 -0.0187693887 -0.01 -0.006 -0.0188205 -0.01 -0.001 -0.0188205 -0.00961177143 -0.006 -0.0187693887 -0.00961177143 -0.001 -0.0187693887 -0.00925 -0.006 -0.0186195381 -0.00925 -0.001 -0.0186195381 -0.00893933983 -0.006 -0.0183811602 -0.00893933983 -0.001 -0.0183811602 -0.00870096189 -0.006 -0.0180705 -0.00870096189 -0.001 -0.0180705 -0.00855111126 -0.006 -0.0177087286 -0.00855111126 -0.001 -0.0177087286"/><mesh name="pendulum_h0" vertex="0.0147669 -0.006 -0.1596309 0.0147669 -0.0015 -0.1596309 0.020734 -0.006 -0.1590037 0.020734 -0.0015 -0.1590037 0.0211521 -0.006 -0.1629818 0.0211521 -0.0015 -0.1629818 0.015185 -0.006 -0.163609 0.015185 -0.0015 -0.163609"/><mesh name="click_h0" vertex="0.0004773 -0.012 0.0049726 0.0004773 -0.008 0.0049726 0.000443225826 -0.012 0.00523141905 0.000443225826 -0.008 0.00523141905 0.000343325404 -0.012 0.0054726 0.000343325404 -0.008 0.0054726 0.000184406781 -0.012 0.00567970678 0.000184406781 -0.008 0.00567970678 -0.0000227 -0.012 0.0058386254 -0.0000227 -0.008 0.0058386254 -0.000263880955 -0.012 0.00593852583 -0.000263880955 -0.008 0.00593852583 -0.0005227 -0.012 0.0059726 -0.0005227 -0.008 0.0059726 -0.000781519045 -0.012 0.00593852583 -0.000781519045 -0.008 0.00593852583 -0.0010227 -0.012 0.0058386254 -0.0010227 -0.008 0.0058386254 -0.00122980678 -0.012 0.00567970678 -0.00122980678 -0.008 0.00567970678 -0.0013887254 -0.012 0.0054726 -0.0013887254 -0.008 0.0054726 -0.00148862583 -0.012 0.00523141905 -0.00148862583 -0.008 0.00523141905 -0.0015227 -0.012 0.0049726 -0.0015227 -0.008 0.0049726 -0.00148862583 -0.012 0.00471378095 -0.00148862583 -0.008 0.00471378095 -0.0013887254 -0.012 0.0044726 -0.0013887254 -0.008 0.0044726 -0.00122980678 -0.012 0.00426549322 -0.00122980678 -0.008 0.00426549322 -0.0010227 -0.012 0.0041065746 -0.0010227 -0.008 0.0041065746 -0.000781519045 -0.012 0.00400667417 -0.000781519045 -0.008 0.00400667417 -0.0005227 -0.012 0.0039726 -0.0005227 -0.008 0.0039726 -0.000263880955 -0.012 0.00400667417 -0.000263880955 -0.008 0.00400667417 -0.0000227 -0.012 0.0041065746 -0.0000227 -0.008 0.0041065746 0.000184406781 -0.012 0.00426549322 0.000184406781 -0.008 0.00426549322 0.000343325404 -0.012 0.0044726 0.000343325404 -0.008 0.0044726 0.000443225826 -0.012 0.00471378095 0.000443225826 -0.008 0.00471378095"/><mesh name="lever_h0" vertex="-0.0022 -0.0075 0.03046 -0.0022 -0.001 0.03046 0.0015 -0.0075 0.03046 0.0015 -0.001 0.03046 0.0015 -0.0075 0.0292 0.0015 -0.001 0.0292 -0.0022 -0.0075 0.0292 -0.0022 -0.001 0.0292"/><mesh name="lever_h1" vertex="-0.0175 -0.012 -0.018 -0.0175 -0.008 -0.018 -0.0165 -0.012 -0.018 -0.0165 -0.008 -0.018 -0.0165 -0.012 -0.024 -0.0165 -0.008 -0.024 -0.0175 -0.012 -0.024 -0.0175 -0.008 -0.024"/></asset>
<size memory="64M"/>
<worldbody>
<body name="wheel" pos="0 0 0"><joint name="j_wheel" type="hinge" axis="0 1 0" damping="0.0001" frictionloss="0"/><inertial pos="0 -0.0005092592593 0" mass="0.01" fullinertia="8.973158358e-7 0.000001750441693 8.973160619e-7 0 0 0"/><geom name="wheel_h0" type="mesh" mesh="wheel_h0" contype="16" conaffinity="8" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><geom name="wheel_h1" type="mesh" mesh="wheel_h1" contype="16" conaffinity="8" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><geom name="wheel_h2" type="mesh" mesh="wheel_h2" contype="16" conaffinity="8" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><geom name="wheel_h3" type="mesh" mesh="wheel_h3" contype="16" conaffinity="8" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><geom name="wheel_h4" type="mesh" mesh="wheel_h4" contype="16" conaffinity="8" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><geom name="wheel_h5" type="mesh" mesh="wheel_h5" contype="16" conaffinity="8" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/></body>
<body name="pendulum" pos="0 0 0.14"><joint name="j_pend" type="hinge" axis="0 1 0" damping="0.002" frictionloss="0"/><inertial pos="0.02359932103 0.009671486847 -0.2244940371" mass="0.5948917996" fullinertia="0.001712110443 0.001792923326 0.00008849819498 -0.000004162967348 0.0001724265004 0.00003985611019"/><geom name="pendulum_h0" type="mesh" mesh="pendulum_h0" contype="8" conaffinity="16" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><body name="click" pos="0.0268206 0 -0.1977799"><joint name="j_c" type="hinge" axis="0 1 0" damping="0.00001" frictionloss="0" range="-1 0" solreflimit="0.002 1" solimplimit="0.95 0.99 0.001" stiffness="0.0005" springref="0.1"/><inertial pos="-0.0002847452909 -0.01 0.002708866336" mass="0.0005" fullinertia="3.433391022e-9 2.992887182e-9 7.0572222e-10 0 2.89925226e-10 0"/><geom name="click_h0" type="mesh" mesh="click_h0" contype="16" conaffinity="8" condim="3" friction="0.15 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/></body>
</body>
<body name="lever" pos="0.021 0 -0.032"><joint name="j_q" type="hinge" axis="0 1 0" damping="0.00005" frictionloss="0" range="0 0.5" solreflimit="0.002 1" solimplimit="0.95 0.99 0.001" stiffness="0.002" springref="-0.1"/><inertial pos="-0.004153721868 -0.00799629748 0.004048834895" mass="0.001" fullinertia="3.08337433e-7 3.462498079e-7 5.032843972e-8 -7.937038153e-9 -8.707671203e-8 -3.410646333e-8"/><geom name="lever_h0" type="mesh" mesh="lever_h0" contype="8" conaffinity="16" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/><geom name="lever_h1" type="mesh" mesh="lever_h1" contype="8" conaffinity="16" condim="3" friction="0.1 0.005 0.0001" solref="0.002 1" solimp="0.95 0.99 0.0005" margin="0" group="2" mass="0"/></body>
<body name="frame" pos="0 0 0"></body>
<geom name="floor" type="plane" size="1 1 0.1" contype="0" conaffinity="0" group="1"/>
</worldbody>
<equality></equality>

<actuator><motor name="drive" joint="j_wheel" gear="1" ctrlrange="-1 1"/></actuator>
</mujoco>
