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