|
SMACC2
|
#include <cb_timer_countdown_once.hpp>


Public Member Functions | |
| CbTimerCountdownOnce (rclcpp::Duration targetDuration) | |
| template<typename T , std::enable_if_t< std::is_integral< T >::value, int > = 0> | |
| CbTimerCountdownOnce (T) | |
| void | onEntry () override |
| void | onExit () override |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| template<typename T > | |
| smacc2::SmaccSignalConnection | onTimerTick (void(T::*callback)(), T *object) |
Public Member Functions inherited from smacc2::SmaccClientBehavior | |
| ~SmaccClientBehavior () override | |
| void | onEntry () override |
| void | onExit () override |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
| ISmaccClientBehavior () | |
| virtual | ~ISmaccClientBehavior () |
| ISmaccClientBehavior (const ISmaccClientBehavior &)=delete | |
| ISmaccClientBehavior & | operator= (const ISmaccClientBehavior &)=delete |
| ISmaccClientBehavior (ISmaccClientBehavior &&)=delete | |
| ISmaccClientBehavior & | operator= (ISmaccClientBehavior &&)=delete |
| ISmaccStateMachine * | getStateMachine () |
| std::string | getName () const |
| template<typename SmaccClientType > | |
| void | requiresClient (SmaccClientType *&storage) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (const std::string &name, SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| virtual void | executeOnEntry () |
| virtual void | executeOnExit () |
Private Attributes | |
| rclcpp::Duration | targetDuration_ |
| rclcpp::TimerBase::SharedPtr | wallTimer_ |
| std::function< void()> | postCountDownEvent_ |
| smacc2::SmaccSignal< void()> | onTimerTick_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
| virtual void | runtimeConfigure () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| ISmaccState * | getCurrentState () |
| void | postInitializationFailureEvent (const std::string &what) |
| virtual void | dispose () |
| virtual rclcpp::Node::SharedPtr | getNode () const |
| virtual rclcpp::Logger | getLogger () const |
| std::string | getTraceStateName () const |
| std::string | getTraceOrthogonalName () const |
Definition at line 22 of file cb_timer_countdown_once.hpp.
|
inline |
Definition at line 25 of file cb_timer_countdown_once.hpp.
|
inlineexplicit |
Definition at line 29 of file cb_timer_countdown_once.hpp.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 40 of file cb_timer_countdown_once.hpp.
References smacc2::ISmaccClientBehavior::getNode(), targetDuration_, and wallTimer_.

|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 54 of file cb_timer_countdown_once.hpp.
References wallTimer_.
|
inline |
Definition at line 64 of file cb_timer_countdown_once.hpp.
References postCountDownEvent_, and smacc2::ISmaccClientBehavior::postEvent().

|
inline |
Definition at line 71 of file cb_timer_countdown_once.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClientBehavior::getStateMachine(), and onTimerTick_.

|
private |
Definition at line 81 of file cb_timer_countdown_once.hpp.
Referenced by onTimerTick().
|
private |
Definition at line 80 of file cb_timer_countdown_once.hpp.
Referenced by onStateOrthogonalAllocation().
|
private |
Definition at line 77 of file cb_timer_countdown_once.hpp.
Referenced by onEntry().
|
private |
Definition at line 78 of file cb_timer_countdown_once.hpp.