@@ -0,0 +1,691 @@
+from osim.env import ProstheticsEnv%0Aimport numpy as np%0Aimport unittest%0A%0Aclass SimulationTest(unittest.TestCase):%0A    def test1(self):%0A        %0A        env = ProstheticsEnv(visualize=True)%0A        observation = env.reset()%0A%0A        simbody_state = env.osim_model.get_state()%0A        print(simbody_state.getNumSubsystems())%0A        print(simbody_state.getY())%0A        oldy = simbody_state.updY()%0A        for i in range(len(oldy)):%0A            oldy%5Bi%5D += 0.2%0A        print(simbody_state.getY())%0A        env.osim_model.set_state(simbody_state)%0A%0A        action = env.action_space.sample()%0A%0A        for i in range(50):%0A            env.step(action)%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Test Simbody State