Commits

German Larrain committed 077efe7

ControlledSimpleArm: erroneus check of None values were corrected.

Comments (0)

Files changed (1)

bin/ControlledSimpleArm.py

 		self.apply_torque_to_joints(-self.R1_TORQUE, 0)
 	
 	def apply_torque_to_joints(self, torque1, torque2):
-		if torque1:
+		if torque1 is not None:
 			self.sim.get_joint('r1').add_torque(torque1)
-		if torque2:
+		if torque2 is not None:
 			self.sim.get_joint('r2').add_torque(torque2)
 	
 	def increase_sp(self):