SMACC2
|
#include <planner_switcher.hpp>
Public Member Functions | |
PlannerSwitcher () | |
void | setBackwardPlanner () |
void | setUndoPathBackwardPlanner () |
void | setForwardPlanner () |
void | setPureSpinningPlanner () |
void | onInitialize () override |
void | setDefaultPlanners () |
Public Member Functions inherited from smacc2::ISmaccComponent | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Private Member Functions | |
void | updatePlanners () |
Private Attributes | |
std::string | desired_global_planner_ |
std::string | desired_local_planner_ |
bool | set_planners_mode_flag_ |
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr | planner_selector_pub_ |
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr | controller_selector_pub_ |
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr | goal_checker_selector_pub_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
virtual void | onInitialize () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TComponent > | |
void | requiresComponent (TComponent *&requiredComponentStorage) |
template<typename TClient > | |
void | requiresClient (TClient *&requiredClientStorage) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
Definition at line 31 of file planner_switcher.hpp.
cl_nav2z::PlannerSwitcher::PlannerSwitcher | ( | ) |
Definition at line 27 of file planner_switcher.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 29 of file planner_switcher.cpp.
References controller_selector_pub_, smacc2::ISmaccComponent::getNode(), and planner_selector_pub_.
void cl_nav2z::PlannerSwitcher::setBackwardPlanner | ( | ) |
Definition at line 50 of file planner_switcher.cpp.
References desired_global_planner_, desired_local_planner_, smacc2::ISmaccComponent::getLogger(), and updatePlanners().
Referenced by cl_nav2z::CbNavigateBackwards::onEntry().
void cl_nav2z::PlannerSwitcher::setDefaultPlanners | ( | ) |
Definition at line 77 of file planner_switcher.cpp.
References desired_global_planner_, desired_local_planner_, and updatePlanners().
Referenced by cl_nav2z::WaypointNavigator::sendNextGoal().
void cl_nav2z::PlannerSwitcher::setForwardPlanner | ( | ) |
Definition at line 59 of file planner_switcher.cpp.
References desired_global_planner_, desired_local_planner_, smacc2::ISmaccComponent::getLogger(), and updatePlanners().
Referenced by cl_nav2z::CbNavigateForward::onEntry().
void cl_nav2z::PlannerSwitcher::setPureSpinningPlanner | ( | ) |
Definition at line 68 of file planner_switcher.cpp.
References desired_global_planner_, desired_local_planner_, smacc2::ISmaccComponent::getLogger(), and updatePlanners().
Referenced by cl_nav2z::CbAbsoluteRotate::onEntry(), and cl_nav2z::CbRotate::onEntry().
void cl_nav2z::PlannerSwitcher::setUndoPathBackwardPlanner | ( | ) |
Definition at line 40 of file planner_switcher.cpp.
References desired_global_planner_, desired_local_planner_, smacc2::ISmaccComponent::getLogger(), and updatePlanners().
|
private |
Definition at line 85 of file planner_switcher.cpp.
References controller_selector_pub_, desired_global_planner_, desired_local_planner_, and planner_selector_pub_.
Referenced by setBackwardPlanner(), setDefaultPlanners(), setForwardPlanner(), setPureSpinningPlanner(), and setUndoPathBackwardPlanner().
|
private |
Definition at line 60 of file planner_switcher.hpp.
Referenced by onInitialize(), and updatePlanners().
|
private |
Definition at line 50 of file planner_switcher.hpp.
Referenced by setBackwardPlanner(), setDefaultPlanners(), setForwardPlanner(), setPureSpinningPlanner(), setUndoPathBackwardPlanner(), and updatePlanners().
|
private |
Definition at line 52 of file planner_switcher.hpp.
Referenced by setBackwardPlanner(), setDefaultPlanners(), setForwardPlanner(), setPureSpinningPlanner(), setUndoPathBackwardPlanner(), and updatePlanners().
|
private |
Definition at line 62 of file planner_switcher.hpp.
|
private |
Definition at line 58 of file planner_switcher.hpp.
Referenced by onInitialize(), and updatePlanners().
|
private |
Definition at line 54 of file planner_switcher.hpp.