def run(self): # visualize the simulation dynamically viewer = Viewer(self) viewer.reset() viewer.drawAll() viewer.registerAnimationCallback() viewer.registerKeyCallback() viewer.run()
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()