def simulate_scene( scene: scene_if.Scene, steps: int = DEFAULT_MAX_STEPS, stride: int = 1, physics: scene_if.Physics = scene_if.Physics() ) -> List[scene_if.Scene]: serialized_scenes = simulator_bindings.simulate_scene( serialize(scene), steps, stride, serialize(physics)) scenes = [deserialize(scene_if.Scene(), b) for b in serialized_scenes] return scenes
def simulate_scene(scene, steps=DEFAULT_MAX_STEPS): serialized_scenes = simulator_bindings.simulate_scene( serialize(scene), steps) scenes = [deserialize(scene_if.Scene(), b) for b in serialized_scenes] return scenes