Skip to content

Commit 9f2270f

Browse files
committed
Fixing MoveUntilTouch error broken by earlier commit
1 parent e630819 commit 9f2270f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/prpy/base/wam.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ def MoveUntilTouch(manipulator, direction, distance, max_distance=None,
305305

306306
try:
307307
with robot.CreateRobotStateSaver(Robot.SaveParameters.JointMaxVelocityAndAcceleration):
308+
v1 = robot.GetVelocityLimits()
308309
manipulator.SetVelocityLimits(velocity_limit_scale*vl, 0.5)
309310
robot.ExecutePath(path)
310311
return False

0 commit comments

Comments
 (0)