Skip to content

Commit 587c9c0

Browse files
committed
Merge pull request #177 from personalrobotics/bugfix/ComputeJointVelocityFromTwist
Fixed sign on tolerance in ComputeJointVelocityFromTwist.
2 parents 40ac3d5 + 5f2df07 commit 587c9c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prpy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def ComputeJointVelocityFromTwist(robot, twist,
612612
q_curr = robot.GetActiveDOFValues()
613613
q_min, q_max = robot.GetActiveDOFLimits()
614614
dq_bounds = [(0, max) if q_curr[i] <= q_min[i] + joint_limit_tolerance else
615-
(min, 0) if q_curr[i] >= q_max[i] + joint_limit_tolerance else
615+
(min, 0) if q_curr[i] >= q_max[i] - joint_limit_tolerance else
616616
(min, max) for i, (min, max) in enumerate(bounds)]
617617

618618
if dq_init is None:

0 commit comments

Comments
 (0)