Skip to content

Commit cfd7d95

Browse files
committed
fix chomp OptimizeTrajectory to actually return the optimized trajectory (not the original)
1 parent 9413adb commit cfd7d95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/prpy/planning/chomp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ def OptimizeTrajectory(self, robot, traj, lambda_=100.0, n_iter=50,
207207
traj.Insert(i, waypoint, True)
208208

209209
try:
210-
run = self.module.create(robot=robot, starttraj=traj, lambda_=lambda_)
211-
self.module.iterate(n_iter=n_iter, run=run)
212-
self.module.destroy(run=run)
210+
traj = self.module.runchomp(robot=robot, starttraj=traj,
211+
lambda_=lambda_, n_iter=n_iter, **kw_args)
213212
except Exception as e:
214213
raise PlanningError(str(e))
215214

0 commit comments

Comments
 (0)