Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sample
controller
SampleCrawler
SampleCrawler.h
Go to the documentation of this file.
1
// -*- mode: c++; indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
2
/*
3
* Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
4
* All rights reserved. This program is made available under the terms of the
5
* Eclipse Public License v1.0 which accompanies this distribution, and is
6
* available at http://www.eclipse.org/legal/epl-v10.html
7
* Contributors:
8
* National Institute of Advanced Industrial Science and Technology (AIST)
9
* General Robotix Inc.
10
*/
19
#ifndef SAMPLECRAWLER_H
20
#define SAMPLECRAWLER_H
21
#define DOF (2)
22
23
#include <rtm/idl/BasicDataType.hh>
24
#include <
rtm/Manager.h
>
25
#include <rtm/DataFlowComponentBase.h>
26
#include <
rtm/CorbaPort.h
>
27
#include <
rtm/DataInPort.h
>
28
#include <
rtm/DataOutPort.h
>
29
#include <rtm/idl/BasicDataTypeSkel.h>
30
31
// Service implementation headers
32
// <rtc-template block="service_impl_h">
33
34
// </rtc-template>
35
36
// Service Consumer stub headers
37
// <rtc-template block="consumer_stub_h">
38
39
// </rtc-template>
40
41
using namespace
RTC
;
42
43
class
SampleCrawler
44
:
public
RTC::DataFlowComponentBase
45
{
46
public
:
47
SampleCrawler
(
RTC::Manager
*
manager
);
48
~
SampleCrawler
();
49
50
// The initialize action (on CREATED->ALIVE transition)
51
// formaer rtc_init_entry()
52
virtual
RTC::ReturnCode_t onInitialize();
53
54
// The finalize action (on ALIVE->END transition)
55
// formaer rtc_exiting_entry()
56
//virtual RTC::ReturnCode_t onFinalize();
57
58
// The startup action when ExecutionContext startup
59
// former rtc_starting_entry()
60
//virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
61
62
// The shutdown action when ExecutionContext stop
63
// former rtc_stopping_entry()
64
//virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
65
66
// The activated action (Active state entry action)
67
// former rtc_active_entry()
68
virtual
RTC::ReturnCode_t onActivated(
RTC::UniqueId
ec_id
);
69
70
// The deactivated action (Active state exit action)
71
// former rtc_active_exit()
72
virtual
RTC::ReturnCode_t onDeactivated(
RTC::UniqueId
ec_id);
73
74
// The execution action that is invoked periodically
75
// former rtc_active_do()
76
virtual
RTC::ReturnCode_t onExecute(
RTC::UniqueId
ec_id);
77
78
// The aborting action when main logic error occurred.
79
// former rtc_aborting_entry()
80
//virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
81
82
// The error action in ERROR state
83
// former rtc_error_do()
84
//virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
85
86
// The reset action that is invoked resetting
87
// This is same but different the former rtc_init_entry()
88
//virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
89
90
// The state update action that is invoked after onExecute() action
91
// no corresponding operation exists in OpenRTm-aist-0.2.0
92
//virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
93
94
// The action that is invoked when execution context's rate is changed
95
// no corresponding operation exists in OpenRTm-aist-0.2.0
96
//virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
97
98
99
protected
:
100
// Configuration variable declaration
101
// <rtc-template block="config_declare">
102
103
// </rtc-template>
104
105
// DataInPort declaration
106
// <rtc-template block="inport_declare">
107
108
// </rtc-template>
109
110
// DataOutPort declaration
111
// <rtc-template block="outport_declare">
112
TimedDoubleSeq
m_torque
;
113
OutPort<TimedDoubleSeq>
m_torqueOut
;
114
115
// </rtc-template>
116
117
// CORBA Port declaration
118
// <rtc-template block="corbaport_declare">
119
120
// </rtc-template>
121
122
// Service declaration
123
// <rtc-template block="service_declare">
124
125
// </rtc-template>
126
127
// Consumer declaration
128
// <rtc-template block="consumer_declare">
129
130
// </rtc-template>
131
132
private
:
133
int
cnt
;
134
int
dummy
;
135
};
136
137
138
extern
"C"
139
{
140
DLL_EXPORT
void
SampleCrawlerInit
(
RTC::Manager
*
manager
);
141
};
142
143
#endif // SAMPLECRAWLER_H
ec_id
ec_id
RTC
RTC::Manager
RTC::DataFlowComponentBase
manager
manager
DataOutPort.h
SampleCrawler::cnt
int cnt
Definition:
SampleCrawler.h:133
SampleCrawler::m_torqueOut
OutPort< TimedDoubleSeq > m_torqueOut
Definition:
SampleCrawler.h:113
CorbaPort.h
Manager.h
RTC::UniqueId
ExecutionContextHandle_t UniqueId
DataInPort.h
RTC::OutPort< TimedDoubleSeq >
SampleCrawlerInit
DLL_EXPORT void SampleCrawlerInit(RTC::Manager *manager)
Definition:
SampleCrawler.cpp:192
SampleCrawler
Definition:
SampleCrawler.h:43
SampleCrawler::dummy
int dummy
Definition:
SampleCrawler.h:134
SampleCrawler::m_torque
TimedDoubleSeq m_torque
Definition:
SampleCrawler.h:112
DLL_EXPORT
#define DLL_EXPORT
Definition:
bush_customizer.cpp:20
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:40