Skip to content

Commit

Permalink
Enable AnytimePathShortening and fix benchmarks (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Apr 18, 2023
1 parent 471e35e commit b292ca0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
10 changes: 5 additions & 5 deletions benchmarking/launch/run_benchmark.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def load_yaml(package_name, file_path):
def generate_launch_description():

moveit_ros_benchmarks_config = (
ParameterBuilder("moveit_ros_benchmarks")
ParameterBuilder("moveit_resources_benchmarking")
.yaml(
parameter_namespace="benchmark_config",
file_path="run_benchmark.yaml",
file_path="config/run_benchmark.yaml",
)
.to_dict()
)
Expand All @@ -34,8 +34,8 @@ def generate_launch_description():
.robot_description(file_path="config/panda.urdf.xacro")
.planning_pipelines("ompl", ["ompl", "chomp", "pilz_industrial_motion_planner"])
.moveit_cpp(
file_path=get_package_share_directory("moveit_ros_benchmarks")
+ "/moveit_cpp.yaml"
file_path=get_package_share_directory("moveit_resources_benchmarking")
+ "/config/moveit_cpp.yaml"
)
.to_moveit_configs()
)
Expand All @@ -61,7 +61,7 @@ def generate_launch_description():

sqlite_database = (
get_package_share_directory("moveit_resources_benchmarking")
+ "/panda_test_db.sqlite"
+ "/databases/panda_test_db.sqlite"
)

warehouse_ros_config = {
Expand Down
10 changes: 5 additions & 5 deletions fanuc_moveit_config/config/ompl_planning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ start_state_max_bounds_error: 0.1
planner_configs:
AnytimePathShortening:
type: geometric::AnytimePathShortening
shortcut: true # Attempt to shortcut all new solution paths
hybridize: true # Compute hybrid solution trajectories
max_hybrid_paths: 24 # Number of hybrid paths generated per iteration
num_planners: 4 # The number of default planners to use for planning
planners: "" # A comma-separated list of planner types (e.g., "PRM,EST,RRTConnect"Optionally, planner parameters can be passed to change the default:"PRM[max_nearest_neighbors=5],EST[goal_bias=.5],RRT[range=10. goal_bias=.1]"
shortcut: 1 # Attempt to shortcut all new solution paths
hybridize: 1 # Compute hybrid solution trajectories
max_hybrid_paths: 36 # Number of hybrid paths generated per iteration
num_planners: 8 # The number of default planners to use for planning
planners: "RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect" # A comma-separated list of planner types (e.g., "PRM,EST,RRTConnect"Optionally, planner parameters can be passed to change the default:"PRM[max_nearest_neighbors=5],EST[goal_bias=.5],RRT[range=10. goal_bias=.1]"
SBL:
type: geometric::SBL
range: 0.0 # Max motion added to tree. ==> maxDistance_ default: 0.0, if 0.0, set on setup()
Expand Down
10 changes: 10 additions & 0 deletions panda_moveit_config/config/ompl_planning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ request_adapters: >-
default_planner_request_adapters/FixStartStatePathConstraints
start_state_max_bounds_error: 0.1
planner_configs:
APSConfigDefault:
type: geometric::AnytimePathShortening
shortcut: 1 # Attempt to shortcut all new solution paths
hybridize: 1 # Compute hybrid solution trajectories
max_hybrid_paths: 36 # Number of hybrid paths generated per iteration
num_planners: 8 # The number of default planners to use for planning
planners: "RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect,RRTConnect" # A comma-separated list of planner types (e.g., "PRM,EST,RRTConnect"Optionally, planner parameters can be passed to change the default:"PRM[max_nearest_neighbors=5],EST[goal_bias=.5],RRT[range=10. goal_bias=.1]"
SBLkConfigDefault:
type: geometric::SBL
range: 0.0 # Max motion added to tree. ==> maxDistance_ default: 0.0, if 0.0, set on setup()
Expand Down Expand Up @@ -136,6 +143,7 @@ planner_configs:

panda_arm:
planner_configs:
- APSConfigDefault
- SBLkConfigDefault
- ESTkConfigDefault
- LBKPIECEkConfigDefault
Expand All @@ -162,6 +170,7 @@ panda_arm:
- TrajOptDefault
panda_arm_hand:
planner_configs:
- APSConfigDefault
- SBLkConfigDefault
- ESTkConfigDefault
- LBKPIECEkConfigDefault
Expand All @@ -188,6 +197,7 @@ panda_arm_hand:
- TrajOptDefault
hand:
planner_configs:
- APSConfigDefault
- SBLkConfigDefault
- ESTkConfigDefault
- LBKPIECEkConfigDefault
Expand Down

0 comments on commit b292ca0

Please sign in to comment.