SMACC
Loading...
Searching...
No Matches
smacc
include
smacc
smacc_updatable.h
Go to the documentation of this file.
1
/*****************************************************************************************************************
2
* ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
3
* Authors: Pablo Inigo Blasco, Brett Aldrich
4
*
5
******************************************************************************************************************/
6
7
#pragma once
8
#include <chrono>
9
#include <boost/optional.hpp>
10
#include <ros/duration.h>
11
#include <ros/time.h>
12
13
namespace
smacc
14
{
15
class
ISmaccUpdatable
16
{
17
public
:
18
ISmaccUpdatable
();
19
ISmaccUpdatable
(ros::Duration duration);
20
21
void
executeUpdate
();
22
void
setUpdatePeriod
(ros::Duration duration);
23
24
protected
:
25
virtual
void
update
() = 0;
26
27
private
:
28
boost::optional<ros::Duration>
periodDuration_
;
29
ros::Time
lastUpdate_
;
30
};
31
}
// namespace smacc
smacc::ISmaccUpdatable
Definition:
smacc_updatable.h:16
smacc::ISmaccUpdatable::ISmaccUpdatable
ISmaccUpdatable()
Definition:
smacc_updatable.cpp:6
smacc::ISmaccUpdatable::executeUpdate
void executeUpdate()
Definition:
smacc_updatable.cpp:22
smacc::ISmaccUpdatable::update
virtual void update()=0
smacc::ISmaccUpdatable::setUpdatePeriod
void setUpdatePeriod(ros::Duration duration)
Definition:
smacc_updatable.cpp:17
smacc::ISmaccUpdatable::periodDuration_
boost::optional< ros::Duration > periodDuration_
Definition:
smacc_updatable.h:28
smacc::ISmaccUpdatable::lastUpdate_
ros::Time lastUpdate_
Definition:
smacc_updatable.h:29
smacc
Definition:
callback_counter_semaphore.h:17
Generated by
1.9.5