Skip to content

Commit

Permalink
Merge pull request #177 from personalrobotics/bugfix/ComputeJointVelo…
Browse files Browse the repository at this point in the history
…cityFromTwist

Fixed sign on tolerance in ComputeJointVelocityFromTwist.
  • Loading branch information
mkoval committed Sep 13, 2015
2 parents 40ac3d5 + 5f2df07 commit 587c9c0
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 587c9c0

Please sign in to comment.