forked from moveit/moveit2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor local planner plugins (moveit#447)
* Add reset method for trajectory operator and local constraint sampler * Refactor next_waypoint_sampler into simple_sampler * Include collision checking to forward_trajectory and remove unneeded plugin * Fix formatting and plugin description * Update README and add missing planner logic plugin description Add TODO to use lifecycle components nodes to trigger initialization Return a reaction result instead of bool on react() Set invalidation flag to false on reset() in ForwardTrajectory local solver Return local planner feedback from trajectory operator function calls Fix segfault caused by passing through the global trajectory Update comment, unify logging and add missing config parameters Update to rolling
- Loading branch information
Showing
32 changed files
with
452 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
# Hybrid Planning | ||
Implementation of MoveIt 2's new hybrid planning architecture. You find more information in the [project's issue](https://github.com/ros-planning/moveit2/issues/300) and on the [MoveIt 2 roadmap](https://moveit.ros.org/documentation/contributing/roadmap/). | ||
Implementation of MoveIt 2's new hybrid planning architecture. You find more information in the project's issues[#300](https://github.com/ros-planning/moveit2/issues/300), [#433](https://github.com/ros-planning/moveit2/issues/433) and on the [MoveIt 2 roadmap](https://moveit.ros.org/documentation/contributing/roadmap/). | ||
|
||
## Getting started | ||
1. Build moveit2 from source and make sure you use [this fork](https://github.com/sjahr/moveit_msgs) of moveit_msgs for the hybrid planning specific action definitions | ||
2. To start the demo run: | ||
``` | ||
ros2 launch moveit_hybrid_planning hybrid_planning.launch.py | ||
``` | ||
You can exchange the planner logic plugin in the hybrid_planning_manager.yaml | ||
|
||
## Components | ||
- hybrid_planning_manager: Control unit of the architecture. The manager coordinates planners and implements reactive behavior defined by the planner logic plugin. | ||
- Implementation as ROS 2 component node | ||
- Planner logic plugin interface | ||
- global_planner: ROS 2 component node that receives global motion planning requests and computes a solution to the global problem | ||
- local_planner: Solves local constraints and can be used to execute the global solution. The is realized with the constraint solver plugin. The local planner also handles trajectory blending and matching with the trajectory operator plugin. | ||
- Implementation as ROS 2 component node | ||
- Constraint solver plugin interface | ||
- Trajectory operator plugin interface | ||
- planner_logic_plugins: Planner logic plugin implementation | ||
- replan_invalidated_trajectory: Replan the global solution if the local planner triggers a collision detection event | ||
- single_plan_execution: Call the global planner once and execute the this global solution | ||
- trajectory_operator_plugins: Trajectory operator plugin implementations | ||
- next_waypoint_sample: Forwards the next three waypoints of the global trajectory to the local solver based on the current robot state. When the global solution is updated, the internal (old) reference trajectory is dumped in favor of the update | ||
- constraint_solver_plugins: Constraint solver plugin implementations | ||
- handle_imminent_collision: Follows local trajectory and stops in front of collision objects | ||
- test: | ||
- hybrid_planning_test_node: Simple test demo | ||
You can exchange the planner logic plugin in the hybrid_planning_manager.yaml. Currently available demo plugins are: | ||
- planner logic plugins: | ||
- replan_invalidated_trajectory: Runs the global planner once and starts executing the global solution | ||
with the local planner. In case the local planner detects a collision the global planner is rerun to update the | ||
invalidated global trajectory. | ||
- single_plan_execution: Run the global planner once and starts executing the global solution | ||
with the local planner | ||
- trajectory operator plugins: | ||
- simple_sampler: Samples the next global trajectory waypoint as local goal constraint | ||
based on the current robot state. When the waypoint is reached the index that marks the current local goal constraint | ||
is updated to the next global trajectory waypoint. Global trajectory updates simply replace the reference trajectory. | ||
- local solver plugins: | ||
- forward_trajectory: Forwards the next waypoint of the sampled local trajectory. | ||
Additionally, it is possible to enable collision checking, which lets the robot stop in front of a collision object. |
7 changes: 0 additions & 7 deletions
7
moveit_ros/hybrid_planning/decelerate_before_collision_plugin.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<library path="forward_trajectory_plugin"> | ||
<class name="moveit_hybrid_planning/ForwardTrajectory" type="moveit_hybrid_planning::ForwardTrajectory" base_class_type="moveit_hybrid_planning::LocalConstraintSolverInterface"> | ||
<description> | ||
Simple trajectory operator plugin that appends new global trajectories to the local planner's reference trajectory and extracts the next trajectory point based on the current robot state and an index. | ||
Simple local solver plugin that forwards the next waypoint of the sampled local trajectory. | ||
</description> | ||
</class> | ||
</library> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.