예제 #1
0
 def plot_animation(self, x0 , tf = 10 , n = 10001 , solver = 'ode' ):
     """ Simulate and animate system """
     
     self.compute_trajectory( x0 , tf , n , solver )
     
     self.ani = graphical.Animator( self )
     self.ani.animate_simulation( 1.0 )
예제 #2
0
 def show(self, q , x_axis = 0 , y_axis = 1 ):
     """ Plot figure of configuration q """
     
     self.ani = graphical.Animator( self )
     self.ani.x_axis  = x_axis
     self.ani.y_axis  = y_axis
     
     self.ani.show( q )
예제 #3
0
 def animate_simulation(self, time_factor_video =  1.0 , is_3d = False, save = False , file_name = 'RobotSim' ):
     """ 
     Show Animation of the simulation 
     ----------------------------------
     time_factor_video < 1 --> Slow motion video        
     
     """  
     self.ani = graphical.Animator( self )
     self.ani.animate_simulation( time_factor_video , is_3d, save , file_name )
예제 #4
0
 def show3(self, q ):
     """ Plot figure of configuration q """
     
     self.ani = graphical.Animator( self )
     
     self.ani.show3( q )
예제 #5
0
파일: system.py 프로젝트: auxym/pyro
 def get_animator(self):
     """ Return an Animator object with param based on sys instance """
     
     return graphical.Animator(self)