41 #include <rclcpp/rclcpp.hpp>
42 #include <moveit_msgs/msg/move_it_error_codes.hpp>
54 switch (planning_event)
57 event =
"Hybrid planning request received";
60 event =
"Global planning action successful";
63 event =
"Global planning action aborted";
66 event =
"Global planning action canceled";
69 event =
"Global solution available";
72 event =
"Local planning action successful";
75 event =
"Local planning action aborted";
78 event =
"Local planning action canceled";
81 event =
"Undefined event";
119 virtual bool initialize(
const std::shared_ptr<HybridPlanningManager>& hybrid_planning_manager) = 0;
virtual ReactionResult react(const std::string &event)=0
std::shared_ptr< HybridPlanningManager > hybrid_planning_manager_
PlannerLogicInterface & operator=(const PlannerLogicInterface &)=default
PlannerLogicInterface(const PlannerLogicInterface &)=default
PlannerLogicInterface()=default
PlannerLogicInterface & operator=(PlannerLogicInterface &&)=default
PlannerLogicInterface(PlannerLogicInterface &&)=default
virtual bool initialize(const std::shared_ptr< HybridPlanningManager > &hybrid_planning_manager)=0
virtual ReactionResult react(const HybridPlanningEvent &event)=0
virtual ~PlannerLogicInterface()=default
@ GLOBAL_SOLUTION_AVAILABLE
@ GLOBAL_PLANNING_ACTION_SUCCESSFUL
@ GLOBAL_PLANNING_ACTION_ABORTED
@ HYBRID_PLANNING_REQUEST_RECEIVED
@ LOCAL_PLANNING_ACTION_SUCCESSFUL
@ LOCAL_PLANNING_ACTION_ABORTED
@ GLOBAL_PLANNING_ACTION_CANCELED
@ LOCAL_PLANNING_ACTION_CANCELED
ReactionResult(const HybridPlanningEvent &planning_event, const std::string &error_msg, int error_code)
ReactionResult(const std::string &event, const std::string &error_msg, int error_code)
MoveItErrorCode error_code
std::string error_message