SMACC
Loading...
Searching...
No Matches
smacc_client_library
ros_timer_client
include
ros_timer_client
client_behaviors
cb_ros_timer.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
smacc/smacc.h
>
4
#include <
ros_timer_client/cl_ros_timer.h
>
5
6
namespace
cl_ros_timer
7
{
8
class
CbTimer
:
public
smacc::SmaccClientBehavior
9
{
10
public
:
11
virtual
void
onEntry
()
override
;
12
virtual
void
onExit
()
override
;
13
14
template
<
typename
TOrthogonal,
typename
TSourceObject>
15
void
onOrthogonalAllocation
()
16
{
17
this->
postTimerEvent_
= [=]() {
18
this->
template
postEvent<EvTimer<TSourceObject, TOrthogonal>>();
19
};
20
}
21
22
void
onClientTimerTickCallback
();
23
24
private
:
25
ClRosTimer
*
timerClient_
;
26
std::function<void()>
postTimerEvent_
;
27
boost::signals2::scoped_connection
c_
;
28
};
29
}
// namespace cl_ros_timer
cl_ros_timer.h
cl_ros_timer::CbTimer
Definition:
cb_ros_timer.h:9
cl_ros_timer::CbTimer::onExit
virtual void onExit() override
Definition:
cb_timer.cpp:17
cl_ros_timer::CbTimer::c_
boost::signals2::scoped_connection c_
Definition:
cb_ros_timer.h:27
cl_ros_timer::CbTimer::onOrthogonalAllocation
void onOrthogonalAllocation()
Definition:
cb_ros_timer.h:15
cl_ros_timer::CbTimer::onClientTimerTickCallback
void onClientTimerTickCallback()
Definition:
cb_timer.cpp:12
cl_ros_timer::CbTimer::onEntry
virtual void onEntry() override
Definition:
cb_timer.cpp:5
cl_ros_timer::CbTimer::postTimerEvent_
std::function< void()> postTimerEvent_
Definition:
cb_ros_timer.h:26
cl_ros_timer::CbTimer::timerClient_
ClRosTimer * timerClient_
Definition:
cb_ros_timer.h:25
cl_ros_timer::ClRosTimer
Definition:
cl_ros_timer.h:25
smacc::SmaccClientBehavior
Definition:
smacc_client_behavior.h:13
cl_ros_timer
Definition:
cl_ros_timer.h:8
smacc.h
Generated by
1.9.5