|
SMACC2
|
Namespaces | |
| namespace | anonymous_namespace{smacc_client_async_behavior.cpp} |
| namespace | client_bases |
| namespace | client_behavior_bases |
| namespace | client_behaviors |
| namespace | client_core_components |
| namespace | default_events |
| namespace | default_transition_tags |
| namespace | event_generators |
| namespace | introspection |
| namespace | state_reactors |
| namespace | utils |
Classes | |
| struct | AddTEventTypeStateReactor |
| struct | AddTEventTypeStateReactorInfo |
| class | CallbackCounterSemaphore |
| class | CbServiceServerCallbackBase |
| class | ClientHandler |
| struct | ComponentKey |
| struct | EvCbFailure |
| struct | EvCbFinished |
| struct | EvCbSuccess |
| class | HasSpecificNamedOnExit |
| class | HasStandardOnExit |
| class | ISmaccClient |
| class | ISmaccClientBehavior |
| class | ISmaccComponent |
| class | ISmaccOrthogonal |
| class | ISmaccState |
| class | ISmaccStateMachine |
| class | ISmaccUpdatable |
| class | Orthogonal |
| class | SignalDetector |
| class | SmaccAsyncClientBehavior |
| class | SmaccClientBehavior |
| class | SmaccEventGenerator |
| class | SmaccSignal |
| class | SmaccState |
| struct | SmaccStateMachineBase |
| State Machine. More... | |
| class | StateReactor |
| class | Transition |
Typedefs | |
| template<class T > | |
| using | deep_history = sc::deep_history<T> |
| typedef boost::signals2::connection | SmaccSignalConnection |
Enumerations | |
| enum class | SMRunMode { DEBUG , RELEASE } |
| enum class | ComponentRequirement { SOFT , HARD } |
| enum class | ExecutionModel { SINGLE_THREAD_SPINNER , MULTI_THREAD_SPINNER } |
| enum class | EventLifeTime { ABSOLUTE , CURRENT_STATE } |
| enum class | StateMachineInternalAction { STATE_CONFIGURING , STATE_ENTERING , STATE_RUNNING , STATE_EXITING , TRANSITIONING , STATE_MACHINE_INITIALIZING } |
Functions | |
| template<typename TState , typename TTransitionTagName > | |
| void | specificNamedOnExit (TState &st, TTransitionTagName tn, std::true_type) |
| template<typename TState , typename TTransitionTagName > | |
| void | specificNamedOnExit (TState &, TTransitionTagName, std::false_type) |
| template<typename TState , typename TTransitionTagName > | |
| void | specificNamedOnExit (TState &m, TTransitionTagName tn) |
| template<typename TState > | |
| void | standardOnExit (TState &st, std::true_type) |
| template<typename TState > | |
| void | standardOnExit (TState &, std::false_type) |
| template<typename TState > | |
| void | standardOnExit (TState &m) |
| void | onSigQuit (int sig) |
| template<typename StateMachineType > | |
| void | run (ExecutionModel executionModel=ExecutionModel::SINGLE_THREAD_SPINNER) |
| template<typename TAddressee > | |
| void | postStInitializationFailure (ISmaccStateMachine *stateMachine, const std::string &stateName, const std::string &what) |
| template<typename EventType , typename... Args> | |
| boost::intrusive_ptr< EventType > | makeEvent (Args &&... args) |
| static bool | sleepUnlessShutdown (rclcpp::Rate &rate) |
| static void | logThreadException (const rclcpp::Logger &logger, const std::string &name, const char *thread, const char *what) |
| using smacc2::deep_history = sc::deep_history<T> |
Definition at line 61 of file common.hpp.
| typedef boost::signals2::connection smacc2::SmaccSignalConnection |
Definition at line 33 of file smacc_signal.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| ABSOLUTE | |
| CURRENT_STATE | |
Definition at line 48 of file smacc_state_machine.hpp.
|
strong |
| Enumerator | |
|---|---|
| SINGLE_THREAD_SPINNER | |
| MULTI_THREAD_SPINNER | |
Definition at line 30 of file smacc_signal_detector.hpp.
|
strong |
| Enumerator | |
|---|---|
| DEBUG | |
| RELEASE | |
Definition at line 75 of file common.hpp.
|
strong |
| Enumerator | |
|---|---|
| STATE_CONFIGURING | |
| STATE_ENTERING | |
| STATE_RUNNING | |
| STATE_EXITING | |
| TRANSITIONING | |
| STATE_MACHINE_INITIALIZING | |
Definition at line 54 of file smacc_state_machine.hpp.
|
static |
Definition at line 75 of file smacc_client_async_behavior.cpp.
Referenced by smacc2::SmaccAsyncClientBehavior::dispose(), smacc2::SmaccAsyncClientBehavior::executeOnEntry(), and smacc2::SmaccAsyncClientBehavior::waitFutureIfNotFinished().

| boost::intrusive_ptr< EventType > smacc2::makeEvent | ( | Args &&... | args | ) |
Definition at line 32 of file smacc_types.hpp.
Referenced by smacc2::ISmaccState::configure(), cl_generic_sensor::components::CpMessageTimeout< MessageType >::onComponentInitialization(), cl_nav2z::components::CpNav2ActionInterface::onComponentInitialization(), smacc2::client_core_components::CpActionClient< ActionType >::onComponentInitialization(), smacc2::client_core_components::CpServiceClient< ServiceType >::onComponentInitialization(), cl_gcalcli::CpCalendarEventListener::onStateOrthogonalAllocation(), cl_gcalcli::CpCalendarPoller::onStateOrthogonalAllocation(), cl_moveit2z::CbMoveEndEffectorTrajectory::onStateOrthogonalAllocation(), smacc2::client_bases::SmaccActionClientBase< ActionType >::onStateOrthogonalAllocation(), smacc2::client_bases::SmaccSubscriberClient< MessageType >::onStateOrthogonalAllocation(), smacc2::client_core_components::CpTopicSubscriber< MessageType >::onStateOrthogonalAllocation(), smacc2::ISmaccComponent::postEvent(), smacc2::ISmaccStateMachine::postEvent(), cl_keyboard::CbDefaultKeyboardBehavior::postKeyEvent(), smacc2::client_bases::SmaccActionClientBase< ActionType >::postResultEvent(), smacc2::client_core_components::CpActionClient< ActionType >::postResultEvent(), postStInitializationFailure(), cl_generic_sensor::CbDefaultGenericSensorBehavior< ClientType >::propagateMessageEvent(), and smacc2::StateReactor::setOutputEvent().

| void smacc2::onSigQuit | ( | int | ) |
Definition at line 533 of file signal_detector.cpp.
Referenced by run().

| void smacc2::postStInitializationFailure | ( | ISmaccStateMachine * | stateMachine, |
| const std::string & | stateName, | ||
| const std::string & | what ) |
Definition at line 37 of file smacc_state_base.hpp.
References CURRENT_STATE, makeEvent(), smacc2::ISmaccStateMachine::postEvent(), and postStInitializationFailure().
Referenced by smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::onInitializationFailure(), and postStInitializationFailure().


| void smacc2::run | ( | ExecutionModel | executionModel = ExecutionModel::SINGLE_THREAD_SPINNER | ) |
Definition at line 140 of file smacc_signal_detector.hpp.
References smacc2::SignalDetector::joinAsyncClientBehaviorThreads(), onSigQuit(), smacc2::SignalDetector::pollingLoop(), smacc2::SignalDetector::setProcessorHandle(), and smacc2::SignalDetector::terminateScheduler().
Referenced by smacc2::SmaccStateMachineBase< DerivedStateMachine, InitialStateType >::reset().


|
static |
Definition at line 368 of file signal_detector.cpp.
Referenced by smacc2::SignalDetector::pollingLoop().

| void smacc2::specificNamedOnExit | ( | TState & | , |
| TTransitionTagName | , | ||
| std::false_type | ) |
Definition at line 50 of file state_traits.hpp.
| void smacc2::specificNamedOnExit | ( | TState & | m, |
| TTransitionTagName | tn ) |
Definition at line 55 of file state_traits.hpp.
References specificNamedOnExit().

| void smacc2::specificNamedOnExit | ( | TState & | st, |
| TTransitionTagName | tn, | ||
| std::true_type | ) |
Definition at line 44 of file state_traits.hpp.
Referenced by smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_with_action(), smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_without_action(), and specificNamedOnExit().

| void smacc2::standardOnExit | ( | TState & | , |
| std::false_type | ) |
Definition at line 89 of file state_traits.hpp.
| void smacc2::standardOnExit | ( | TState & | m | ) |
Definition at line 94 of file state_traits.hpp.
References standardOnExit().

| void smacc2::standardOnExit | ( | TState & | st, |
| std::true_type | ) |
Definition at line 83 of file state_traits.hpp.
Referenced by smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::exit(), and standardOnExit().
