MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / test_step

Function test_step

tests/python/test_simulator_instance.py:142–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140
141
142def test_step():
143 model = pin.buildSampleModelManipulator()
144 geom_model = pin.buildSampleGeometryModelManipulator(model)
145 data = model.createData()
146 geom_data = geom_model.createData()
147
148 sim = simple.Simulator(model, data, geom_model, geom_data)
149
150 q = pin.randomConfiguration(model)
151 v = np.random.random(model.nv)
152 tau = np.random.random(model.nv)
153 dt = 1e-3
154 sim.step(q, v, tau, dt)
155
156 fext = [pin.Force(np.random.random(6)) for i in range(model.njoints)]
157 sim.step(q, v, tau, fext, dt)
158 assert True
159
160
161def test_step_balls():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected