Beispiel #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 )
Beispiel #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 )
Beispiel #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 )
Beispiel #4
0
 def show3(self, q ):
     """ Plot figure of configuration q """
     
     self.ani = graphical.Animator( self )
     
     self.ani.show3( q )
Beispiel #5
0
 def get_animator(self):
     """ Return an Animator object with param based on sys instance """
     
     return graphical.Animator(self)