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