EEROS
1.0.0.0
API for the EEROS Real-Time Robotics Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TimeDomain.hpp
Go to the documentation of this file.
1
#ifndef ORG_EEROS_CONTROLTIMEDOMAIN_HPP
2
#define ORG_EEROS_CONTROLTIMEDOMAIN_HPP
3
4
#include <list>
5
#include <string>
6
#include <
eeros/core/Runnable.hpp
>
7
#include <
eeros/control/NotConnectedFault.hpp
>
8
#include <
eeros/control/NaNOutputFault.hpp
>
9
#include <
eeros/safety/SafetySystem.hpp
>
10
#include <
eeros/safety/SafetyLevel.hpp
>
11
12
namespace
eeros
{
13
namespace
control {
14
15
using namespace
safety;
16
17
class
TimeDomain
:
public
virtual
Runnable
{
18
public
:
19
TimeDomain
(std::string name,
double
period,
bool
realtime);
20
virtual
void
addBlock(
Runnable
* block);
21
virtual
void
addBlock(
Runnable
& block);
22
virtual
void
removeBlock(
Runnable
* block);
23
virtual
void
removeBlock(
Runnable
& block);
24
25
std::string getName();
26
double
getPeriod();
27
bool
getRealtime();
28
void
registerSafetyEvent(
SafetySystem
& ss,
SafetyEvent
& e);
29
30
virtual
void
run();
31
virtual
void
start();
32
virtual
void
stop();
33
34
friend
std::ostream&
operator<<
(std::ostream& os,
TimeDomain
& td);
35
36
private
:
37
std::string name;
38
double
period;
39
bool
realtime;
40
bool
running
=
true
;
41
std::list<Runnable*> blocks;
42
SafetySystem
* safetySystem;
43
SafetyEvent
* safetyEvent;
44
};
45
};
46
};
47
48
#endif // ORG_EEROS_CONTROLTIMEDOMAIN_HPP
eeros::safety::SafetySystem
Safety system.
Definition:
SafetySystem.hpp:19
Runnable.hpp
eeros
Definition:
Config.hpp:14
eeros::Runnable
Definition:
Runnable.hpp:6
SafetySystem.hpp
SafetyLevel.hpp
NaNOutputFault.hpp
running
volatile bool running
Definition:
Executor.cpp:25
eeros::control::operator<<
std::ostream & operator<<(std::ostream &os, Constant< T > &c)
Definition:
Constant.hpp:56
NotConnectedFault.hpp
eeros::control::TimeDomain
Definition:
TimeDomain.hpp:17
eeros::safety::SafetyEvent
Definition:
SafetyLevel.hpp:21
home
markus
github
eeros-project
eeros-framework
includes
eeros
control
TimeDomain.hpp
Generated on Tue Feb 19 2019 10:49:30 for EEROS by
1.8.11