SMACC2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
cl_ros_timer::CbTimer Class Reference

#include <cb_ros_timer.hpp>

Inheritance diagram for cl_ros_timer::CbTimer:
Inheritance graph
Collaboration diagram for cl_ros_timer::CbTimer:
Collaboration graph

Public Member Functions

void onEntry () override
 
void onEntry () override
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
void onClientTimerTickCallback ()
 
void onEntry () override
 
void onExit () override
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
void onClientTimerTickCallback ()
 
void onEntry () override
 
void onExit () override
 
- Public Member Functions inherited from smacc2::ISmaccClientBehavior
 ISmaccClientBehavior ()
 
virtual ~ISmaccClientBehavior ()
 
ISmaccStateMachinegetStateMachine ()
 
std::string getName () const
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
template<typename SmaccComponentType >
void requiresComponent (SmaccComponentType *&storage)
 

Private Attributes

ClRosTimertimerClient_
 
std::function< void()> postTimerEvent_
 
boost::signals2::scoped_connection c_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccClientBehavior
virtual void runtimeConfigure ()
 
virtual void onEntry ()
 
virtual void onExit ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
ISmaccStategetCurrentState ()
 
virtual void dispose ()
 
virtual rclcpp::Node::SharedPtr getNode ()
 
virtual rclcpp::Logger getLogger ()
 

Detailed Description

Definition at line 22 of file cb_ros_timer.hpp.

Member Function Documentation

◆ onClientTimerTickCallback() [1/2]

void cl_ros_timer::CbTimer::onClientTimerTickCallback ( )

Definition at line 26 of file cb_timer.cpp.

26{ this->postTimerEvent_(); }
std::function< void()> postTimerEvent_

References postTimerEvent_.

Referenced by onEntry().

Here is the caller graph for this function:

◆ onClientTimerTickCallback() [2/2]

void cl_ros_timer::CbTimer::onClientTimerTickCallback ( )

◆ onEntry() [1/3]

void cl_ros_timer::CbTimer::onEntry ( )
overridevirtual

Reimplemented from smacc2::SmaccClientBehavior.

Definition at line 19 of file cb_timer.cpp.

20{
22
24}
ClRosTimer * timerClient_
void onClientTimerTickCallback()
Definition: cb_timer.cpp:26
boost::signals2::connection onTimerTick(void(T::*callback)(), T *object)
void requiresClient(SmaccClientType *&storage)

References onClientTimerTickCallback(), cl_ros_timer::ClRosTimer::onTimerTick(), smacc2::ISmaccClientBehavior::requiresClient(), and timerClient_.

Here is the call graph for this function:

◆ onEntry() [2/3]

void cl_ros_timer::CbTimer::onEntry ( )
overridevirtual

Reimplemented from smacc2::SmaccClientBehavior.

◆ onEntry() [3/3]

void cl_ros_timer::CbTimer::onEntry ( )
overridevirtual

Reimplemented from smacc2::SmaccClientBehavior.

◆ onExit()

void cl_ros_timer::CbTimer::onExit ( )
overridevirtual

Reimplemented from smacc2::SmaccClientBehavior.

Definition at line 28 of file cb_timer.cpp.

28{}

◆ onOrthogonalAllocation() [1/2]

template<typename TOrthogonal , typename TSourceObject >
void cl_ros_timer::CbTimer::onOrthogonalAllocation ( )
inline

Definition at line 29 of file cb_ros_timer.hpp.

30 {
31 this->postTimerEvent_ = [=]()
32 { this->template postEvent<EvTimer<TSourceObject, TOrthogonal>>(); };
33 }

References postTimerEvent_.

◆ onOrthogonalAllocation() [2/2]

template<typename TOrthogonal , typename TSourceObject >
void cl_ros_timer::CbTimer::onOrthogonalAllocation ( )
inline

Definition at line 29 of file cb_ros_timer.hpp.

30 {
31 this->postTimerEvent_ = [this]()
32 { this->template postEvent<EvTimer<TSourceObject, TOrthogonal>>(); };
33 }

References postTimerEvent_.

Member Data Documentation

◆ c_

boost::signals2::scoped_connection cl_ros_timer::CbTimer::c_
private

Definition at line 40 of file cb_ros_timer.hpp.

◆ postTimerEvent_

std::function< void()> cl_ros_timer::CbTimer::postTimerEvent_
private

Definition at line 39 of file cb_ros_timer.hpp.

Referenced by onClientTimerTickCallback(), and onOrthogonalAllocation().

◆ timerClient_

ClRosTimer * cl_ros_timer::CbTimer::timerClient_
private

Definition at line 38 of file cb_ros_timer.hpp.

Referenced by onEntry().


The documentation for this class was generated from the following files: