SMACC2
|
#include <smacc_state.hpp>
Protected Attributes | |
rclcpp::Node::SharedPtr | node_ |
std::shared_ptr< rclcpp::Logger > | logger_ |
std::vector< std::shared_ptr< StateReactor > > | stateReactors_ |
std::vector< std::shared_ptr< smacc2::SmaccEventGenerator > > | eventGenerators_ |
ISmaccState * | parentState_ |
const smacc2::introspection::SmaccStateInfo * | stateInfo_ |
Definition at line 25 of file smacc_state.hpp.
Definition at line 37 of file smacc_state_impl.hpp.
References getLogger(), and THIS_STATE_NAME.
std::shared_ptr< TEventGenerator > smacc2::ISmaccState::createEventGenerator | ( | TEvArgs... | args | ) |
Definition at line 116 of file smacc_state_impl.hpp.
References eventGenerators_.
std::shared_ptr< TStateReactor > smacc2::ISmaccState::createStateReactor | ( | TEvArgs... | args | ) |
Definition at line 155 of file smacc_state_impl.hpp.
References stateReactors_.
std::shared_ptr< TStateReactor > smacc2::ISmaccState::createStateReactor | ( | TEvArgs... | args | ) |
Definition at line 106 of file smacc_state_impl.hpp.
References stateReactors_.
|
virtual |
Definition at line 26 of file smacc_state.cpp.
References smacc2::introspection::demangleSymbol().
TClientBehavior * smacc2::ISmaccState::getClientBehavior | ( | int | index = 0 | ) |
Definition at line 177 of file smacc_state_impl.hpp.
References getStateMachine().
TEventGenerator * smacc2::ISmaccState::getEventGenerator | ( | ) |
Definition at line 183 of file smacc_state_impl.hpp.
References eventGenerators_.
|
inline |
Definition at line 82 of file smacc_state.hpp.
References eventGenerators_.
Referenced by smacc2::SignalDetector::findUpdatableStateElements().
Definition at line 91 of file smacc_state_impl.hpp.
References getStateMachine().
|
inline |
Definition at line 36 of file smacc_state.hpp.
References logger_.
Referenced by smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::checkWhileLoopConditionAndThrowEvent(), configure(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::entryStateInternal(), smacc2::StateReactor::getLogger(), notifyTransitionFromTransitionTypeInfo(), requiresClient(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState().
|
pure virtual |
Implemented in smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >.
Referenced by cl_nav2z::CbAbsoluteRotate::onEntry(), cl_nav2z::CbNavigateForward::onEntry(), cl_nav2z::CbNavigateGlobalPosition::onEntry(), cl_nav2z::CbRotate::onEntry(), cl_nitrosz::CbAbsoluteRotate::onEntry(), cl_nitrosz::CbNavigateForward::onEntry(), cl_nitrosz::CbNavigateGlobalPosition::onEntry(), cl_nitrosz::CbRotate::onEntry(), cl_nav2z::CpWaypointNavigator::sendNextGoal(), and cl_nitrosz::CpWaypointNavigator::sendNextGoal().
|
inline |
Definition at line 34 of file smacc_state.hpp.
References node_.
Referenced by smacc2::StateReactor::getNode().
TOrthogonal * smacc2::ISmaccState::getOrthogonal | ( | ) |
Definition at line 171 of file smacc_state_impl.hpp.
References getStateMachine().
Referenced by smacc2::client_behaviors::CbSequence::then().
|
inline |
|
pure virtual |
Implemented in smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >.
Referenced by getClientBehavior(), getGlobalSMData(), getOrthogonal(), notifyTransitionFromTransitionTypeInfo(), postEvent(), postEvent(), requiresClient(), requiresComponent(), setGlobalSMData(), and smacc2::StateReactor::setOutputEvent().
TStateReactor * smacc2::ISmaccState::getStateReactor | ( | ) |
Definition at line 195 of file smacc_state_impl.hpp.
References eventGenerators_.
|
inline |
Definition at line 80 of file smacc_state.hpp.
References stateReactors_.
Referenced by smacc2::SignalDetector::findUpdatableStateElements().
void smacc2::ISmaccState::notifyTransition | ( | ) |
Definition at line 232 of file smacc_state_impl.hpp.
References notifyTransitionFromTransitionTypeInfo().
void smacc2::ISmaccState::notifyTransitionFromTransitionTypeInfo | ( | std::shared_ptr< smacc2::introspection::TypeInfo > & | transitionTypeInfo | ) |
Definition at line 28 of file smacc_state.cpp.
References getLogger(), getStateMachine(), and stateInfo_.
Referenced by notifyTransition().
Definition at line 225 of file smacc_state_impl.hpp.
References getStateMachine().
Definition at line 219 of file smacc_state_impl.hpp.
References getStateMachine().
Referenced by smacc2::SmaccEventGenerator::postEvent(), smacc2::StateReactor::postEvent(), smacc2::SmaccEventGenerator::postEvent(), and smacc2::StateReactor::postEvent().
void smacc2::ISmaccState::requiresClient | ( | SmaccClientType *& | storage | ) |
Definition at line 71 of file smacc_state_impl.hpp.
References smacc2::introspection::demangleSymbol(), getLogger(), and getStateMachine().
void smacc2::ISmaccState::requiresComponent | ( | SmaccComponentType *& | storage | ) |
Definition at line 64 of file smacc_state_impl.hpp.
References getStateMachine().
Definition at line 99 of file smacc_state_impl.hpp.
References getStateMachine().
|
protected |
Definition at line 106 of file smacc_state.hpp.
Referenced by createEventGenerator(), getEventGenerator(), getEventGenerators(), and getStateReactor().
|
protected |
Definition at line 104 of file smacc_state.hpp.
Referenced by getLogger(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState().
|
protected |
Definition at line 103 of file smacc_state.hpp.
Referenced by getNode(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState().
|
protected |
Definition at line 108 of file smacc_state.hpp.
Referenced by getParentState(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::getParentState(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState().
|
protected |
Definition at line 110 of file smacc_state.hpp.
Referenced by notifyTransitionFromTransitionTypeInfo(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState().
|
protected |
Definition at line 105 of file smacc_state.hpp.
Referenced by createStateReactor(), and getStateReactors().