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

#include <cb_ros_timer.h>

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

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from smacc::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 executeOnEntry ()
 
virtual void executeOnExit ()
 
virtual void dispose ()
 

Detailed Description

Definition at line 8 of file cb_ros_timer.h.

Member Function Documentation

◆ onClientTimerTickCallback()

void cl_ros_timer::CbTimer::onClientTimerTickCallback ( )

Definition at line 12 of file cb_timer.cpp.

13{
14 this->postTimerEvent_();
15}
std::function< void()> postTimerEvent_
Definition: cb_ros_timer.h:26

References postTimerEvent_.

Referenced by onEntry().

Here is the caller graph for this function:

◆ onEntry()

void cl_ros_timer::CbTimer::onEntry ( )
overridevirtual

Reimplemented from smacc::SmaccClientBehavior.

Definition at line 5 of file cb_timer.cpp.

6{
8
10}
void onClientTimerTickCallback()
Definition: cb_timer.cpp:12
ClRosTimer * timerClient_
Definition: cb_ros_timer.h:25
boost::signals2::connection onTimerTick(void(T::*callback)(), T *object)
Definition: cl_ros_timer.h:34
void requiresClient(SmaccClientType *&storage)

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

Here is the call graph for this function:

◆ onExit()

void cl_ros_timer::CbTimer::onExit ( )
overridevirtual

Reimplemented from smacc::SmaccClientBehavior.

Definition at line 17 of file cb_timer.cpp.

18{
19}

◆ onOrthogonalAllocation()

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

Definition at line 15 of file cb_ros_timer.h.

16 {
17 this->postTimerEvent_ = [=]() {
18 this->template postEvent<EvTimer<TSourceObject, TOrthogonal>>();
19 };
20 }

References postTimerEvent_.

Member Data Documentation

◆ c_

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

Definition at line 27 of file cb_ros_timer.h.

◆ postTimerEvent_

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

Definition at line 26 of file cb_ros_timer.h.

Referenced by onClientTimerTickCallback(), and onOrthogonalAllocation().

◆ timerClient_

ClRosTimer* cl_ros_timer::CbTimer::timerClient_
private

Definition at line 25 of file cb_ros_timer.h.

Referenced by onEntry().


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