Ejemplo n.º 1
0
 def run(self):
     # visualize the simulation dynamically
     viewer = Viewer(self)
     viewer.reset()
     viewer.drawAll()
     viewer.registerAnimationCallback()
     viewer.registerKeyCallback()
     viewer.run()
Ejemplo n.º 2
0
 def render(self, mode='human', actor=None):
     # visualize the current step of the simulation
     viewer = Viewer(self)
     viewer.reset()
     viewer.drawAll()
     # self.viewer.registerAnimationCallback()
     viewer.registerKeyCallback()
     viewer.run()