1. German Larrain
  2. ars

Commits

German Larrain  committed 78e37c1

app.Program: removed key-press action functions (methods) because they were not implemented.

  • Participants
  • Parent commits c5424e0
  • Branches dev

Comments (0)

Files changed (1)

File ars/app/__init__.py

View file
 		"""
 		# TODO: add to constructor ``self.key_press_functions = None``?
 		self.key_press_functions = ActionMap()
-		self.key_press_functions.add('plus', self.select_next_joint)
-		self.key_press_functions.add('minus', self.select_previous_joint)
 		self.key_press_functions.add('r', self.reset_simulation)
-		self.key_press_functions.add('h', self.add_force)
-		self.key_press_functions.add('n', self.add_torque)
-		self.key_press_functions.add('f', self.inc_joint_vel)
-		self.key_press_functions.add('v', self.dec_joint_vel)
-		self.key_press_functions.add('g', self.inc_joint_pos)
-		self.key_press_functions.add('b', self.dec_joint_pos)
 
 	def on_action_selection(self, key):
 		"""Method called after an actions is selected by pressing a key."""
 			print(ex)
 
 	#==========================================================================
-	# KEYPRESS action functions
-	#==========================================================================
-
-	def select_next_joint(self):
-		"""select next joint for future user actions"""
-		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 has not been implemented yet')
-
-	def add_force(self):
-		"""add force to an already selected joint"""
-		print('add_force has not been implemented yet')
-
-	def add_torque(self):
-		"""add torque to an already selected joint"""
-		print('add_torque has not been fully implemented')
-
-	def inc_joint_vel(self):
-		"""increment the velocity of an already selected joint"""
-		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 has not been implemented yet')
-
-	def inc_joint_pos(self):
-		"""increment the position of an already selected joint"""
-		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 has not been implemented yet')
-
-	#==========================================================================
 	# other
 	#==========================================================================