Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zkingston committed Oct 18, 2024
1 parent 299bcc9 commit 6c8a670
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/evaluate_mbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main(
dataset: str = "problems.pkl", # Pickled dataset to use
problem: Union[str, List[str]] = [], # Problem name or list of problems to evaluate
trials: int = 1, # Number of trials to evaluate each instance
sampler_name: str = "halton", # Sampler to use.
sampler_name: str = "halton", # Sampler to use.
skip_rng_iterations: int = 0, # Skip a number of RNG iterations
print_failures: bool = False, # Print out failures and invalid problems
pointcloud: bool = False, # Use pointcloud rather than primitive geometry
Expand Down
2 changes: 1 addition & 1 deletion scripts/sphere_cage_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main(
radius: float = 0.2,
visualize: bool = False,
planner: str = "rrtc",
sampler_name: str = "halton", # Sampler to use.
sampler_name: str = "halton", # Sampler to use.
skip_rng_iterations: int = 0, # Skip a number of RNG iterations
**kwargs,
):
Expand Down
6 changes: 4 additions & 2 deletions src/impl/vamp/planning/simplify.hh
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ namespace vamp::planning

const auto bspline = [&result, &environment, settings]()
{ return smooth_bspline<Robot, rake, resolution>(result.path, environment, settings.bspline); };
const auto reduce = [&result, &environment, settings, rng]()
{ return reduce_path_vertices<Robot, rake, resolution>(result.path, environment, settings.reduce, rng); };
const auto reduce = [&result, &environment, settings, rng]() {
return reduce_path_vertices<Robot, rake, resolution>(
result.path, environment, settings.reduce, rng);
};
const auto shortcut = [&result, &environment, settings]()
{ return shortcut_path<Robot, rake, resolution>(result.path, environment, settings.shortcut); };
const auto perturb = [&result, &environment, settings, rng]()
Expand Down

0 comments on commit 6c8a670

Please sign in to comment.