Skip to content

Commit

Permalink
Revert "Remove custom OMPL config"
Browse files Browse the repository at this point in the history
This reverts commit b89f839.

Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Nov 19, 2024
1 parent b89f839 commit ad609b7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,16 @@ def launch_setup(context, *args, **kwargs):

# Planning Functionality
ompl_planning_pipeline_config = {
"move_group": load_yaml(moveit_config_package, "config/ompl_planning.yaml")
"move_group": {
"planning_plugins": ["ompl_interface/OMPLPlanner"],
"request_adapters": """default_planner_request_adapters/AddTimeOptimalParameterization default_planner_request_adapters/ResolveConstraintFrames default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStatePathConstraints""",
"start_state_max_bounds_error": 0.1,
}
}
ompl_planning_yaml = load_yaml(
"abb_irb1300_10_115_moveit_config", "config/ompl_planning.yaml"
)
ompl_planning_pipeline_config["move_group"].update(ompl_planning_yaml)

# Trajectory Execution Functionality
moveit_simple_controllers_yaml = load_yaml(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,16 @@ def launch_setup(context, *args, **kwargs):

# Planning Functionality
ompl_planning_pipeline_config = {
"move_group": load_yaml(moveit_config_package, "config/ompl_planning.yaml")
"move_group": {
"planning_plugins": ["ompl_interface/OMPLPlanner"],
"request_adapters": """default_planner_request_adapters/AddTimeOptimalParameterization default_planner_request_adapters/ResolveConstraintFrames default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStatePathConstraints""",
"start_state_max_bounds_error": 0.1,
}
}
ompl_planning_yaml = load_yaml(
"abb_irb910sc_3_45_moveit_config", "config/ompl_planning.yaml"
)
ompl_planning_pipeline_config["move_group"].update(ompl_planning_yaml)

# Trajectory Execution Functionality
moveit_simple_controllers_yaml = load_yaml(
Expand Down
10 changes: 9 additions & 1 deletion nexus_motion_planner/launch/demo_planner_server.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,16 @@ def launch_setup(context, *args, **kwargs):

# Planning Functionality
ompl_planning_pipeline_config = {
"move_group": load_yaml(moveit_config_package, "config/ompl_planning.yaml")
"move_group": {
"planning_plugins": ["ompl_interface/OMPLPlanner"],
"request_adapters": """default_planner_request_adapters/AddTimeOptimalParameterization default_planner_request_adapters/ResolveConstraintFrames default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStatePathConstraints""",
"start_state_max_bounds_error": 0.1,
}
}
ompl_planning_yaml = load_yaml(
moveit_config_package.perform(context), "config/ompl_planning.yaml"
)
ompl_planning_pipeline_config["move_group"].update(ompl_planning_yaml)

# Trajectory Execution Functionality
moveit_simple_controllers_yaml = load_yaml(
Expand Down
10 changes: 9 additions & 1 deletion nexus_motion_planner/test/test_request.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,16 @@ def generate_test_description():

# Planning Functionality
ompl_planning_pipeline_config = {
"move_group": load_yaml(moveit_config_package, "config/ompl_planning.yaml")
"move_group": {
"planning_plugins": ["ompl_interface/OMPLPlanner"],
"request_adapters": """default_planner_request_adapters/AddTimeOptimalParameterization default_planner_request_adapters/ResolveConstraintFrames default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStatePathConstraints""",
"start_state_max_bounds_error": 0.1,
}
}
ompl_planning_yaml = load_yaml(
moveit_config_package, "config/ompl_planning.yaml"
)
ompl_planning_pipeline_config["move_group"].update(ompl_planning_yaml)

# Trajectory Execution Functionality
moveit_simple_controllers_yaml = load_yaml(
Expand Down
10 changes: 9 additions & 1 deletion nexus_motion_planner/test/test_request_with_cache.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,16 @@ def generate_test_description():

# Planning Functionality
ompl_planning_pipeline_config = {
"move_group": load_yaml(moveit_config_package, "config/ompl_planning.yaml")
"move_group": {
"planning_plugins": ["ompl_interface/OMPLPlanner"],
"request_adapters": """default_planner_request_adapters/AddTimeOptimalParameterization default_planner_request_adapters/ResolveConstraintFrames default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStatePathConstraints""",
"start_state_max_bounds_error": 0.1,
}
}
ompl_planning_yaml = load_yaml(
moveit_config_package, "config/ompl_planning.yaml"
)
ompl_planning_pipeline_config["move_group"].update(ompl_planning_yaml)

# Trajectory Execution Functionality
moveit_simple_controllers_yaml = load_yaml(
Expand Down

0 comments on commit ad609b7

Please sign in to comment.