Skip to content

Commit 332a3e3

Browse files
committed
Merge pull request #68 from personalrobotics/feature/issue67
Fixing issue 67
2 parents cda56f1 + e0a9add commit 332a3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prpy/planning/workspace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ def PlanWorkspacePath(self, robot, traj, timelimit=5.0,
206206
except PlanningError as e:
207207
# Compute the min acceptable time from the min waypoint index.
208208
if min_waypoint_index is None:
209-
min_waypoint_index = traj.GetNumWaypoints()
209+
min_waypoint_index = traj.GetNumWaypoints()-1
210210
cspec = traj.GetConfigurationSpecification()
211-
wpts = [traj.GetWaypoint(i) for i in range(min_waypoint_index)]
211+
wpts = [traj.GetWaypoint(i) for i in range(min_waypoint_index+1)]
212212
dts = [cspec.ExtractDeltaTime(wpt) for wpt in wpts]
213213
min_time = numpy.sum(dts)
214214

0 commit comments

Comments
 (0)