Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added baked support to CBiRRT and OMPL #340

Merged
merged 2 commits into from
Aug 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/prpy/planning/cbirrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def Plan(self, robot, smoothingitrs=None, timelimit=None, allowlimadj=0,
args += ['bdofresl2norm', '1']
args += ['steplength', '0.05999']

if self._is_baked:
args += ['bbakedcheckers', '1']

if extra_args is not None:
args += extra_args

Expand Down
3 changes: 3 additions & 0 deletions src/prpy/planning/ompl.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def _Plan(self, robot, goal=None, tsrchains=None, timeout=30., shortcut_timeout=
if formatted_extra_params is not None:
extraParams += formatted_extra_params

if self._is_baked and (ompl_args is None or 'do_baked' not in ompl_args):
extraParams += '<do_baked>1</do_baked>'

params = openravepy.Planner.PlannerParameters()
params.SetRobotActiveJoints(robot)
if goal is not None:
Expand Down