Skip to content

Commit

Permalink
Fixed sign on tolerance in ComputeJointVelocityFromTwist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Koval committed Sep 13, 2015
1 parent 40ac3d5 commit 5f2df07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prpy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def ComputeJointVelocityFromTwist(robot, twist,
q_curr = robot.GetActiveDOFValues()
q_min, q_max = robot.GetActiveDOFLimits()
dq_bounds = [(0, max) if q_curr[i] <= q_min[i] + joint_limit_tolerance else
(min, 0) if q_curr[i] >= q_max[i] + joint_limit_tolerance else
(min, 0) if q_curr[i] >= q_max[i] - joint_limit_tolerance else
(min, max) for i, (min, max) in enumerate(bounds)]

if dq_init is None:
Expand Down

0 comments on commit 5f2df07

Please sign in to comment.