Main Page
Namespaces
Classes
Files
File List
File Members
examples
Composite
Sensor.h
Go to the documentation of this file.
1
// -*- C++ -*-
7
#ifndef SENSOR_H
8
#define SENSOR_H
9
10
#include <rtm/idl/BasicDataTypeSkel.h>
11
#include <
rtm/Manager.h
>
12
#include <
rtm/DataFlowComponentBase.h
>
13
#include <
rtm/CorbaPort.h
>
14
#include <
rtm/DataInPort.h
>
15
#include <
rtm/DataOutPort.h
>
16
17
// Service implementation headers
18
// <rtc-template block="service_impl_h">
19
20
// </rtc-template>
21
22
// Service Consumer stub headers
23
// <rtc-template block="consumer_stub_h">
24
25
// </rtc-template>
26
27
using namespace
RTC
;
28
29
class
Sensor
:
public
RTC::DataFlowComponentBase
30
{
31
public
:
32
Sensor
(
RTC::Manager
*
manager
);
33
~
Sensor
();
34
35
// The initialize action (on CREATED->ALIVE transition)
36
// formaer rtc_init_entry()
37
virtual
RTC::ReturnCode_t
onInitialize();
38
39
// The finalize action (on ALIVE->END transition)
40
// formaer rtc_exiting_entry()
41
// virtual RTC::ReturnCode_t onFinalize();
42
43
// The startup action when ExecutionContext startup
44
// former rtc_starting_entry()
45
// virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
46
47
// The shutdown action when ExecutionContext stop
48
// former rtc_stopping_entry()
49
// virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
50
51
// The activated action (Active state entry action)
52
// former rtc_active_entry()
53
// virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
54
55
// The deactivated action (Active state exit action)
56
// former rtc_active_exit()
57
// virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
58
59
// The execution action that is invoked periodically
60
// former rtc_active_do()
61
virtual
RTC::ReturnCode_t
onExecute(
RTC::UniqueId
ec_id
);
62
63
// The aborting action when main logic error occurred.
64
// former rtc_aborting_entry()
65
// virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
66
67
// The error action in ERROR state
68
// former rtc_error_do()
69
// virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
70
71
// The reset action that is invoked resetting
72
// This is same but different the former rtc_init_entry()
73
// virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
74
75
// The state update action that is invoked after onExecute() action
76
// no corresponding operation exists in OpenRTm-aist-0.2.0
77
// virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
78
79
// The action that is invoked when execution context's rate is changed
80
// no corresponding operation exists in OpenRTm-aist-0.2.0
81
// virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
82
83
84
protected
:
85
// Configuration variable declaration
86
// <rtc-template block="config_declare">
87
88
// </rtc-template>
89
90
// DataInPort declaration
91
// <rtc-template block="inport_declare">
92
TimedLong
m_in
;
93
InPort<TimedLong>
m_inIn
;
94
95
// </rtc-template>
96
97
// DataOutPort declaration
98
// <rtc-template block="outport_declare">
99
TimedFloat
m_out
;
100
OutPort<TimedFloat>
m_outOut
;
101
102
// </rtc-template>
103
104
// CORBA Port declaration
105
// <rtc-template block="corbaport_declare">
106
107
// </rtc-template>
108
109
// Service declaration
110
// <rtc-template block="service_declare">
111
112
// </rtc-template>
113
114
// Consumer declaration
115
// <rtc-template block="consumer_declare">
116
117
// </rtc-template>
118
119
private
:
120
121
};
122
123
124
extern
"C"
125
{
126
DLL_EXPORT
void
SensorInit
(
RTC::Manager
*
manager
);
127
};
128
129
#endif // SENSOR_H
130
AttachDetachRTCTest.ec_id
ec_id
Definition:
AttachDetachRTCTest.py:75
RTC
RT-Component.
Definition:
ArtExecutionContext.cpp:29
DataFlowComponentBase.h
RTC::DataFlowComponentBase
DataFlowComponentBase class.
Definition:
rtm/DataFlowComponentBase.h:69
Sensor::m_inIn
InPort< TimedLong > m_inIn
Definition:
Sensor.h:93
doil::ReturnCode_t
ReturnCode_t
Definition:
doil.h:53
Sensor::m_outOut
OutPort< TimedFloat > m_outOut
Definition:
Sensor.h:100
RTC::Manager
Manager class.
Definition:
Manager.h:80
AddRemoveMemberSDOPackageTest.manager
manager
Definition:
AddRemoveMemberSDOPackageTest.py:28
Sensor
Definition:
Sensor.h:29
DataOutPort.h
Base class of OutPort.
Sensor::m_out
TimedFloat m_out
Definition:
Sensor.h:99
CorbaPort.h
CorbaPort class.
Manager.h
RTComponent manager class.
Sensor::m_in
TimedLong m_in
Definition:
Sensor.h:92
RTC::UniqueId
ExecutionContextHandle_t UniqueId
Definition:
ComponentActionListener.h:32
DataInPort.h
Base class of InPort.
DLL_EXPORT
#define DLL_EXPORT
Definition:
PluginC.cpp:8
SensorInit
DLL_EXPORT void SensorInit(RTC::Manager *manager)
Definition:
Sensor.cpp:149
RTC::InPort< TimedLong >
RTC::OutPort< TimedFloat >
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00