30template <
typename EventType>
37 "The client behavior cannot post events before being assigned to an orthogonal. Ignoring "
40 if constexpr (std::is_pointer_v<EventType>)
42 boost::intrusive_ptr<std::remove_pointer_t<EventType>> discarded(ev);
51template <
typename EventType>
58 "The client behavior cannot post events before being assigned to an orthogonal. Ignoring "
73template <
typename SmaccClientType>
79template <
typename SmaccComponentType>
87 "Cannot use the requiresComponent functionality before assigning the client behavior to an "
88 "orthogonal. Try using the OnEntry method to capture required components.");
96template <
typename SmaccComponentType>
104 "Cannot use the requiresComponent functionality before assigning the client behavior to an "
105 "orthogonal. Try using the OnEntry method to capture required components.");
113template <
typename TOrthogonal,
typename TSourceObject>
smacc2::ISmaccOrthogonal * currentOrthogonal
ISmaccState * getCurrentState()
ISmaccStateMachine * stateMachine_
void onStateOrthogonalAllocation()
virtual rclcpp::Logger getLogger() const
ISmaccState * currentState
void requiresClient(SmaccClientType *&storage)
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
ISmaccStateMachine * getStateMachine()
bool requiresClient(SmaccClientType *&storage)
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType, ISmaccOrthogonal *first=nullptr)
void postEvent(EventType *ev, EventLifeTime evlifetime=EventLifeTime::ABSOLUTE)