SMACC2
|
#include <goal_checker_switcher.hpp>
Public Member Functions | |
GoalCheckerSwitcher (std::string goal_checker_selector_topic="goal_checker_selector", std::string default_goal_checker_name="goal_checker") | |
void | onInitialize () override |
virtual | ~GoalCheckerSwitcher () |
void | setDefaultGoalChecker () |
void | setGoalCheckerId (std::string goal_checker_id) |
Public Member Functions inherited from smacc2::ISmaccComponent | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Private Attributes | |
std::string | goal_checker_selector_topic_ |
std::string | default_goal_checker_name_ |
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, bool throwExceptionIfNotExist=false) |
template<typename TComponent > | |
void | requiresComponent (std::string name, TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist=false) |
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 () const |
ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
Definition at line 31 of file goal_checker_switcher.hpp.
cl_nav2z::GoalCheckerSwitcher::GoalCheckerSwitcher | ( | std::string | goal_checker_selector_topic = "goal_checker_selector" , |
std::string | default_goal_checker_name = "goal_checker" |
||
) |
Definition at line 24 of file goal_checker_switcher.cpp.
|
virtual |
Definition at line 31 of file goal_checker_switcher.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 33 of file goal_checker_switcher.cpp.
References smacc2::ISmaccComponent::getNode(), goal_checker_selector_pub_, and goal_checker_selector_topic_.
void cl_nav2z::GoalCheckerSwitcher::setDefaultGoalChecker | ( | ) |
Definition at line 42 of file goal_checker_switcher.cpp.
References default_goal_checker_name_, and setGoalCheckerId().
void cl_nav2z::GoalCheckerSwitcher::setGoalCheckerId | ( | std::string | goal_checker_id | ) |
Definition at line 47 of file goal_checker_switcher.cpp.
References smacc2::ISmaccComponent::getLogger(), and goal_checker_selector_pub_.
Referenced by cl_nav2z::CbAbsoluteRotate::onEntry(), cl_nav2z::CbNavigateBackwards::onEntry(), cl_nav2z::CbNavigateForward::onEntry(), cl_nav2z::CbNavigateGlobalPosition::onEntry(), cl_nav2z::CbUndoPathBackwards::onEntry(), and setDefaultGoalChecker().
|
private |
Definition at line 44 of file goal_checker_switcher.hpp.
Referenced by setDefaultGoalChecker().
|
private |
Definition at line 45 of file goal_checker_switcher.hpp.
Referenced by onInitialize(), and setGoalCheckerId().
|
private |
Definition at line 43 of file goal_checker_switcher.hpp.
Referenced by onInitialize().