SMACC2
|
Classes | |
struct | add_type_wrapper |
struct | AddSubState |
struct | AddTransition |
struct | CheckType |
class | ClientBehaviorHandler |
struct | ClientBehaviorInfoEntry |
struct | EventGeneratorCallbackFunctor |
class | EventGeneratorHandler |
class | HasAutomaticTransitionTag |
class | HasAutomaticTransitionType |
class | HasEventLabel |
class | HasOnDefinition |
struct | SmaccEventGeneratorInfo |
struct | SmaccEventInfo |
class | SmaccStateInfo |
class | SmaccStateMachineInfo |
struct | SmaccStateReactorInfo |
struct | SmaccTransitionInfo |
struct | StateReactorCallbackFunctor |
class | StateReactorHandler |
struct | type_ |
class | TypeInfo |
struct | typelist |
struct | WalkStatesExecutor |
Typedefs | |
typedef std::allocator< boost::statechart::none > | SmaccAllocator |
typedef boost::mpl::list< SUCCESS, ABORT, CANCEL, CONTINUELOOP, ENDLOOP > | DEFAULT_TRANSITION_TYPES |
Enumerations | |
enum class | SmaccStateType { SUPERSTATE = 2 , STATE = 1 , SUPERSTATE_ROUTINE = 1 } |
Functions | |
void | transitionInfoToMsg (const SmaccTransitionInfo &transition, smacc2_msgs::msg::SmaccTransition &transitionMsg) |
template<class T > | |
auto | optionalNodeHandle (std::shared_ptr< T > &obj) -> T * |
template<class T > | |
auto | optionalNodeHandle (boost::intrusive_ptr< T > &obj) -> T * |
template<class T > | |
auto | optionalNodeHandle (T *obj) -> T * |
std::string | demangleSymbol (const std::string &name) |
std::string | demangleSymbol (const char *name) |
template<typename T > | |
std::string | demangleSymbol () |
template<class T > | |
std::string | demangledTypeName () |
std::string | demangleType (const std::type_info *tinfo) |
std::string | demangleType (const std::type_info &tinfo) |
template<typename T > | |
std::enable_if< HasEventLabel< T >::value, void >::type | EventLabel (std::string &label) |
template<typename T > | |
std::enable_if<!HasEventLabel< T >::value, void >::type | EventLabel (std::string &label) |
template<typename T > | |
std::enable_if< HasAutomaticTransitionTag< T >::value, void >::type | automaticTransitionTag (std::string &transition_name) |
template<typename T > | |
std::enable_if<!HasAutomaticTransitionTag< T >::value, void >::type | automaticTransitionTag (std::string &transition_name) |
template<typename T > | |
std::enable_if< HasAutomaticTransitionType< T >::value, void >::type | automaticTransitionType (std::string &transition_type) |
template<typename T > | |
std::enable_if<!HasAutomaticTransitionType< T >::value, void >::type | automaticTransitionType (std::string &transition_type) |
template<typename TTransition > | |
static std::string | getTransitionType () |
template<typename T > | |
disable_if< boost::mpl::is_sequence< T > >::type | processSubState (std::shared_ptr< SmaccStateInfo > &parentState) |
template<typename T > | |
enable_if< boost::mpl::is_sequence< T > >::type | processSubState (std::shared_ptr< SmaccStateInfo > &parentState) |
template<typename T > | |
enable_if< boost::mpl::is_sequence< T > >::type | processTransitions (std::shared_ptr< SmaccStateInfo > &sourceState) |
template<typename Ev , typename Dst , typename Tag > | |
void | processTransition (smacc2::Transition< Ev, boost::statechart::deep_history< Dst >, Tag > *, std::shared_ptr< SmaccStateInfo > &sourceState) |
template<typename Ev , typename Dst , typename Tag > | |
void | processTransition (smacc2::Transition< Ev, Dst, Tag > *t, std::shared_ptr< SmaccStateInfo > &sourceState) |
template<typename Ev , typename Dst , typename Tag > | |
void | processTransitionAux (smacc2::Transition< Ev, Dst, Tag > *, std::shared_ptr< SmaccStateInfo > &sourceState, bool history, TypeInfo::Ptr &transitionTypeInfo) |
template<typename Ev , typename Dst > | |
void | processTransition (statechart::transition< Ev, Dst > *, std::shared_ptr< SmaccStateInfo > &sourceState) |
template<typename Ev > | |
void | processTransition (statechart::custom_reaction< Ev > *, std::shared_ptr< SmaccStateInfo > &sourceState) |
template<typename T > | |
disable_if< boost::mpl::is_sequence< T > >::type | processTransitions (std::shared_ptr< SmaccStateInfo > &sourceState) |
template<typename T > | |
std::enable_if< HasOnDefinition< T >::value, void >::type | CallOnDefinition () |
template<typename T > | |
std::enable_if<!HasOnDefinition< T >::value, void >::type | CallOnDefinition () |
bool | replace (std::string &str, const std::string &from, const std::string &to) |
std::string | replace_back (std::string roottype, std::vector< std::pair< std::string, std::string > > &orderedtypesdict) |
Variables | |
rclcpp::Node::SharedPtr | globalNh_ |
typedef boost::mpl::list<SUCCESS, ABORT, CANCEL, CONTINUELOOP, ENDLOOP> smacc2::introspection::DEFAULT_TRANSITION_TYPES |
Definition at line 223 of file introspection.hpp.
typedef std::allocator<boost::statechart::none> smacc2::introspection::SmaccAllocator |
Definition at line 52 of file introspection.hpp.
Enumerator | |
---|---|
SUPERSTATE | |
STATE | |
SUPERSTATE_ROUTINE |
Definition at line 164 of file smacc_state_info.hpp.
std::enable_if< HasAutomaticTransitionTag< T >::value, void >::type smacc2::introspection::automaticTransitionTag | ( | std::string & | transition_name | ) |
Definition at line 174 of file introspection.hpp.
std::enable_if<!HasAutomaticTransitionTag< T >::value, void >::type smacc2::introspection::automaticTransitionTag | ( | std::string & | transition_name | ) |
Definition at line 181 of file introspection.hpp.
std::enable_if< HasAutomaticTransitionType< T >::value, void >::type smacc2::introspection::automaticTransitionType | ( | std::string & | transition_type | ) |
Definition at line 208 of file introspection.hpp.
std::enable_if<!HasAutomaticTransitionType< T >::value, void >::type smacc2::introspection::automaticTransitionType | ( | std::string & | transition_type | ) |
Definition at line 215 of file introspection.hpp.
std::enable_if< HasOnDefinition< T >::value, void >::type smacc2::introspection::CallOnDefinition | ( | ) |
Definition at line 348 of file smacc_state_machine_info.hpp.
References demangleSymbol(), and globalNh_.
std::enable_if<!HasOnDefinition< T >::value, void >::type smacc2::introspection::CallOnDefinition | ( | ) |
Definition at line 357 of file smacc_state_machine_info.hpp.
References demangleSymbol(), and globalNh_.
Definition at line 101 of file introspection.hpp.
References demangleSymbol().
Definition at line 95 of file introspection.hpp.
References demangleSymbol().
Referenced by smacc2::introspection::SmaccStateMachineInfo::assembleSMStructureMessage(), CallOnDefinition(), smacc2::ISmaccStateMachine::createSignalConnection(), demangledTypeName(), demangleSymbol(), demangleSymbol(), demangleType(), demangleType(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::entryStateInternal(), smacc2::ISmaccState::getClassName(), smacc2::introspection::SmaccStateInfo::getDemangledFullName(), cl_multirole_sensor::CbDefaultMultiRoleSensorBehavior< ClientType >::getEventLabel(), smacc2::introspection::SmaccEventInfo::getEventSourceName(), smacc2::introspection::SmaccEventInfo::getEventTypeName(), smacc2::introspection::TypeInfo::getFromStdTypeInfo(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::getFullName(), smacc2::ISmaccComponent::getName(), smacc2::ISmaccClient::getName(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccOrthogonal::getName(), smacc2::introspection::SmaccEventInfo::getOrthogonalName(), smacc2::ISmaccStateMachine::getStateMachineName(), smacc2::ISmaccStateMachine::mapBehavior(), smacc2::ISmaccStateMachine::notifyOnStateEntryEnd(), smacc2::ISmaccStateMachine::notifyOnStateEntryStart(), smacc2::ISmaccStateMachine::notifyOnStateExited(), smacc2::ISmaccStateMachine::notifyOnStateExitting(), cl_moveit2z::CbMoveEndEffectorTrajectory::onEntry(), smacc2::state_reactors::SrAllEventsGo::onEventNotified(), smacc2::state_reactors::SrEventCountdown::onEventNotified(), smacc2::client_bases::SmaccActionClientBase< ActionType >::onInitialize(), cl_keyboard::ClKeyboard::postKeyEvent(), cl_keyboard::CbDefaultKeyboardBehavior::postKeyEvent(), smacc2::client_bases::SmaccActionClientBase< ActionType >::postResultEvent(), processTransition(), processTransitionAux(), smacc2::ISmaccState::requiresClient(), smacc2::ISmaccStateMachine::requiresComponent(), smacc2::ISmaccComponent::requiresComponent(), smacc2::ISmaccComponent::requiresComponent(), and smacc2::client_bases::SmaccActionClientBase< ActionType >::sendGoal().
Definition at line 76 of file introspection.hpp.
|
inline |
Definition at line 74 of file introspection.hpp.
References demangleSymbol().
|
inline |
Definition at line 111 of file introspection.hpp.
References demangleSymbol().
|
inline |
Definition at line 106 of file introspection.hpp.
References demangleSymbol().
Referenced by smacc2::Orthogonal< TOrthogonal >::createClient(), smacc2::SignalDetector::findUpdatableClientsAndComponents(), smacc2::SignalDetector::findUpdatableStateElements(), cl_nav2z::CbNav2ZClientBehaviorBase::isOwnActionResponse(), cl_nitrosz::CbNav2ZClientBehaviorBase::isOwnActionResponse(), smacc2::client_behaviors::CbSequence::onEntry(), smacc2::client_bases::SmaccActionClientBase< ActionType >::onOrthogonalAllocation(), and smacc2::SignalDetector::pollOnce().
std::enable_if< HasEventLabel< T >::value, void >::type smacc2::introspection::EventLabel | ( | std::string & | label | ) |
Definition at line 142 of file introspection.hpp.
std::enable_if<!HasEventLabel< T >::value, void >::type smacc2::introspection::EventLabel | ( | std::string & | label | ) |
Definition at line 148 of file introspection.hpp.
|
static |
Definition at line 259 of file introspection.hpp.
Definition at line 62 of file introspection.hpp.
Definition at line 55 of file introspection.hpp.
Definition at line 69 of file introspection.hpp.
disable_if< boost::mpl::is_sequence< T > >::type smacc2::introspection::processSubState | ( | std::shared_ptr< SmaccStateInfo > & | parentState | ) |
Definition at line 141 of file smacc_state_machine_info.hpp.
References smacc2::introspection::WalkStatesExecutor< InitialStateType >::walkStates().
enable_if< boost::mpl::is_sequence< T > >::type smacc2::introspection::processSubState | ( | std::shared_ptr< SmaccStateInfo > & | parentState | ) |
Definition at line 149 of file smacc_state_machine_info.hpp.
void smacc2::introspection::processTransition | ( | smacc2::Transition< Ev, boost::statechart::deep_history< Dst >, Tag > * | , |
std::shared_ptr< SmaccStateInfo > & | sourceState | ||
) |
Definition at line 172 of file smacc_state_machine_info.hpp.
References smacc2::introspection::TypeInfo::getTypeInfoFromType(), and processTransitionAux().
Referenced by processTransitions().
void smacc2::introspection::processTransition | ( | smacc2::Transition< Ev, Dst, Tag > * | t, |
std::shared_ptr< SmaccStateInfo > & | sourceState | ||
) |
Definition at line 183 of file smacc_state_machine_info.hpp.
References demangleSymbol(), globalNh_, and processTransitionAux().
void smacc2::introspection::processTransition | ( | statechart::custom_reaction< Ev > * | , |
std::shared_ptr< SmaccStateInfo > & | sourceState | ||
) |
Definition at line 328 of file smacc_state_machine_info.hpp.
void smacc2::introspection::processTransition | ( | statechart::transition< Ev, Dst > * | , |
std::shared_ptr< SmaccStateInfo > & | sourceState | ||
) |
Definition at line 321 of file smacc_state_machine_info.hpp.
void smacc2::introspection::processTransitionAux | ( | smacc2::Transition< Ev, Dst, Tag > * | , |
std::shared_ptr< SmaccStateInfo > & | sourceState, | ||
bool | history, | ||
TypeInfo::Ptr & | transitionTypeInfo | ||
) |
Definition at line 194 of file smacc_state_machine_info.hpp.
References demangleSymbol(), globalNh_, and smacc2::introspection::WalkStatesExecutor< InitialStateType >::walkStates().
Referenced by processTransition(), and processTransition().
enable_if< boost::mpl::is_sequence< T > >::type smacc2::introspection::processTransitions | ( | std::shared_ptr< SmaccStateInfo > & | sourceState | ) |
Definition at line 160 of file smacc_state_machine_info.hpp.
References globalNh_.
disable_if< boost::mpl::is_sequence< T > >::type smacc2::introspection::processTransitions | ( | std::shared_ptr< SmaccStateInfo > & | sourceState | ) |
Definition at line 338 of file smacc_state_machine_info.hpp.
References processTransition().
bool smacc2::introspection::replace | ( | std::string & | str, |
const std::string & | from, | ||
const std::string & | to | ||
) |
Definition at line 39 of file string_type_walker.cpp.
Referenced by smacc2::introspection::TypeInfo::getTypeInfoFromString(), and replace_back().
std::string smacc2::introspection::replace_back | ( | std::string | roottype, |
std::vector< std::pair< std::string, std::string > > & | orderedtypesdict | ||
) |
Definition at line 47 of file string_type_walker.cpp.
References replace().
Referenced by smacc2::introspection::TypeInfo::getTypeInfoFromString().
void smacc2::introspection::transitionInfoToMsg | ( | const SmaccTransitionInfo & | transition, |
smacc2_msgs::msg::SmaccTransition & | transitionMsg | ||
) |
Definition at line 30 of file reflection.cpp.
References smacc2::introspection::SmaccTransitionInfo::destinyState, smacc2::introspection::SmaccTransitionInfo::eventInfo, smacc2::introspection::SmaccTransitionInfo::historyNode, smacc2::introspection::SmaccTransitionInfo::index, smacc2::introspection::SmaccTransitionInfo::sourceState, smacc2::introspection::SmaccTransitionInfo::transitionTag, and smacc2::introspection::SmaccTransitionInfo::transitionType.
Referenced by smacc2::introspection::SmaccStateMachineInfo::assembleSMStructureMessage(), and smacc2::ISmaccStateMachine::publishTransition().
rclcpp::Node::SharedPtr smacc2::introspection::globalNh_ |
Definition at line 28 of file reflection.cpp.
Referenced by CallOnDefinition(), smacc2::introspection::TypeInfo::getTypeInfoFromString(), smacc2::SmaccStateMachineBase< DerivedStateMachine, InitialStateType >::initiate_impl(), processTransition(), processTransitionAux(), processTransitions(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::static_createStateReactor(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::static_createStateReactor_aux().