Skip to content

Commit 5313100

Browse files
author
Siddhartha Srinivasa
committed
Go as fast as possible!
1 parent d8da483 commit 5313100

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/prpy/planning/vectorfield.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def vf_geodesic():
7878
goal_pose)
7979
dqout, tout = prpy.util.ComputeJointVelocityFromTwist(
8080
robot, twist)
81+
# Go as fast as possible
82+
dqout = min(abs(robot.GetDOFVelocityLimits()/dqout))*dqout
83+
8184
return dqout
8285

8386
def CloseEnough():
@@ -138,6 +141,9 @@ def vf_straightline():
138141
twist[0:3] = direction
139142
dqout, tout = prpy.util.ComputeJointVelocityFromTwist(
140143
robot, twist)
144+
145+
# Go as fast as possible
146+
dqout = min(abs(robot.GetDOFVelocityLimits()/dqout))*dqout
141147
return dqout
142148

143149
def TerminateMove():

0 commit comments

Comments
 (0)