Commits

German Larrain  committed cc0e0e2

robot.joints.Rotary.set_speed: fixed wrong comparison with None.

  • Participants
  • Parent commits 3180ec0

Comments (0)

Files changed (1)

File ars/model/robot/joints.py

 
 	def set_speed(self, speed, max_force=None):
 		dispatcher.send(signals.JOINT_PRE_SET_SPEED, sender=self, speed=speed)
-		if max_force:
+		if max_force is not None:
 			self._inner_joint.setParam(ode.ParamFMax, max_force)
 		self._inner_joint.setParam(ode.ParamVel, speed)
 		dispatcher.send(signals.JOINT_POST_SET_SPEED, sender=self, speed=speed)