Commits

German Larrain committed b73b3c3

Program:
-key_press_functions and sim attributes are assigned None in the constructor, to follow convention.
-all the "key-press action" and file method stubs print a message mentioning they are not implemented yet. They do not raise an error when called.

  • Participants
  • Parent commits b466f8a
  • Branches default

Comments (0)

Files changed (1)

File ars/app/__init__.py

 		self.data_files_names = None # TODO
 		self.data_files = None # TODO
 		
+		self.key_press_functions = None
+		self.sim = None
+		
 		# (key -> action) mapping
 		self.set_key_2_action_mapping()
 		
 # KEYPRESS action functions
 #===============================================================================
 	
-	
 	def select_next_joint(self):
 		'''
 		select next joint for future user actions
 		'''
-		print('select_next_joint')
+		print('select_next_joint has not been implemented yet')
 	
 	def select_previous_joint(self):
 		'''
 		select previous joint for future user actions
 		'''
-		print('select_previous_joint')
+		print('select_previous_joint has not been implemented yet')
 	
 	def add_force(self):
 		'''
 		add force to an already selected joint
 		'''
-		print('add_force')
+		print('add_force has not been implemented yet')
 	
 	def add_torque(self):
 		'''
 		add torque to an already selected joint
 		'''
-		print('add_torque')
+		print('add_torque has not been fully implemented')
 		self.sim.get_joint('r1').add_torque(1000) # FIXME: use member or global variable
 	
 	def inc_joint_vel(self):
 		'''
 		increment the velocity of an already selected joint
 		'''
-		print('inc_joint_vel')
+		print('inc_joint_vel has not been implemented yet')
 	
 	def dec_joint_vel(self):
 		'''
 		decrement the velocity of an already selected joint
 		'''
-		print('dec_joint_vel')
+		print('dec_joint_vel has not been implemented yet')
 		
 	def inc_joint_pos(self):
 		'''
 		increment the position of an already selected joint
 		'''
-		print('inc_joint_pos')
+		print('inc_joint_pos has not been implemented yet')
 	
 	def dec_joint_pos(self):
 		'''
 		decrement the position of an already selected joint
 		'''
-		print('dec_joint_pos')
+		print('dec_joint_pos has not been implemented yet')
 
 
 #===============================================================================
 #===============================================================================
 
 	def read_filenames(self):
-		# TODO
-		pass # see Ragdoll2.ars.RagdollPyOdeVtk
+		# TODO: see Ragdoll2.ars.RagdollPyOdeVtk
+		print('read_filenames has not been implemented')
 	
 	def open_files(self):
-		# TODO
-		pass # see Ragdoll2.ars.RagdollPyOdeVtk
+		# TODO: see Ragdoll2.ars.RagdollPyOdeVtk
+		print('open_files has not been implemented')
 	
 	def close_files(self, files):
 		# TODO