SMACC2
|
#include <cp_goal_checker_switcher.hpp>
Public Member Functions | |
CpGoalCheckerSwitcher (std::string goal_checker_selector_topic="goal_checker_selector", std::string default_goal_checker_name="goal_checker") | |
void | onInitialize () override |
virtual | ~CpGoalCheckerSwitcher () |
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_ |
Definition at line 31 of file cp_goal_checker_switcher.hpp.
cl_nitrosz::CpGoalCheckerSwitcher::CpGoalCheckerSwitcher | ( | std::string | goal_checker_selector_topic = "goal_checker_selector" , |
std::string | default_goal_checker_name = "goal_checker" |
||
) |
Definition at line 24 of file cp_goal_checker_switcher.cpp.
|
virtual |
Definition at line 31 of file cp_goal_checker_switcher.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 33 of file cp_goal_checker_switcher.cpp.
References smacc2::ISmaccComponent::getNode(), goal_checker_selector_pub_, and goal_checker_selector_topic_.
void cl_nitrosz::CpGoalCheckerSwitcher::setDefaultGoalChecker | ( | ) |
Definition at line 42 of file cp_goal_checker_switcher.cpp.
References default_goal_checker_name_, and setGoalCheckerId().
void cl_nitrosz::CpGoalCheckerSwitcher::setGoalCheckerId | ( | std::string | goal_checker_id | ) |
Definition at line 47 of file cp_goal_checker_switcher.cpp.
References smacc2::ISmaccComponent::getLogger(), and goal_checker_selector_pub_.
Referenced by cl_nitrosz::CbAbsoluteRotate::onEntry(), cl_nitrosz::CbNavigateBackwards::onEntry(), cl_nitrosz::CbNavigateForward::onEntry(), cl_nitrosz::CbNavigateGlobalPosition::onEntry(), cl_nitrosz::CbUndoPathBackwards::onEntry(), and setDefaultGoalChecker().
|
private |
Definition at line 44 of file cp_goal_checker_switcher.hpp.
Referenced by setDefaultGoalChecker().
|
private |
Definition at line 45 of file cp_goal_checker_switcher.hpp.
Referenced by onInitialize(), and setGoalCheckerId().
|
private |
Definition at line 43 of file cp_goal_checker_switcher.hpp.
Referenced by onInitialize().