Skip to content

Commit ecc77f9

Browse files
committed
Merge pull request #108 from personalrobotics/bugfix/issue99
Fixed two bugs in vectorfield planner.
2 parents bbb16eb + a5ba02b commit ecc77f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prpy/planning/vectorfield.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def TerminateMove():
183183

184184
@PlanningMethod
185185
def FollowVectorField(self, robot, fn_vectorfield, fn_terminate,
186-
timelimit=5.0, dt_multiplier=1.0, **kw_args):
186+
timelimit=5.0, dt_multiplier=1.01, **kw_args):
187187
"""
188188
Follow a joint space vectorfield to termination.
189189
@@ -228,7 +228,7 @@ def FollowVectorField(self, robot, fn_vectorfield, fn_terminate,
228228

229229
dqout = fn_vectorfield()
230230
numsteps = int(math.floor(max(
231-
dqout*dt_step/robot.GetActiveDOFResolutions()
231+
abs(dqout*dt_step/robot.GetActiveDOFResolutions())
232232
)))
233233
if numsteps == 0:
234234
raise PlanningError('Step size too small, '

0 commit comments

Comments
 (0)