-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.ControlEducatorVehicle20160512110837
256 lines (210 loc) · 6.68 KB
/
README.ControlEducatorVehicle20160512110837
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
======================================================================
RTComponent: ControlEducatorVehicle specificatioin
OpenRTM-aist-1.0.0
Date: $Date$
@author 宮本 信彦 n-miyamoto@aist.go.jp
産業技術総合研究所 ロボットイノベーション研究センター
ロボットソフトウエアプラットフォーム研究チーム
LGPL
This file is generated by rtc-template with the following argments.
# rtc-template -bcxx --module-name=ControlEducatorVehicle
# --module-desc='Control Educator Vehicle' --module-version=1.0.0 --module-vendor=AIST
# --module-category=Controller --module-comp-type=STATIC
# --module-act-type=PERIODIC --module-max-inst=1
# --config=sensor_height:double:0.20 --config=back_speed:double:0.1 --config=back_time:double:0.5 --config=rotate_speed:double:1.6 --config=rotate_time:double:1.0 --config=medium_motor_range:double:1.0 --config=medium_motor_speed:double:0.6
# --inport=target_velocity_in:RTC::TimedVelocity2D --inport=ultrasonic:RTC::RangeData --inport=touch:RTC::TimedBooleanSeq --outport=target_velocity_out:RTC::TimedVelocity2D --outport=angle:RTC::TimedDouble
======================================================================
Basic Information
======================================================================
# <rtc-template block="module">
Module Name: ControlEducatorVehicle
Description: Control Educator Vehicle
Version: 1.0.0
Vendor: AIST
Category: Controller
Kind: DataFlowComponent
Comp. Type: STATIC
Act. Type: PERIODIC
MAX Inst.: 1
Lang: C++
Lang Type:
Overview: EV3のEducator
Vehicleで障害物の回避、滑落の回避をするためのRTCです。
# </rtc-template>
======================================================================
Activity definition
======================================================================
[on_initialize] implemented
[on_finalize] implemented
[on_startup] implemented
[on_shutdown] implemented
[on_activated] implemented
[on_deactivated] implemented
[on_execute] implemented
[on_aborting] implemented
[on_error] implemented
[on_reset] implemented
[on_state_update] implemented
[on_rate_changed] implemented
======================================================================
InPorts definition
======================================================================
# <rtc-template block="inport">
Name: target_velocity_in
PortNumber: 0
Description: 目標速度
PortType:
DataType: RTC::TimedVelocity2D
MaxOut:
[Data Elements]
Name:
Type: RTC::TimedVelocity2D
Number:
Semantics:
Unit: m/s, rad/s
Frequency:
Operation Cycle:
RangeLow:
RangeHigh:
DefaultValue:
Name: ultrasonic
PortNumber: 1
Description: 超音波センサをレンジセンサと仮定し、要素1の距離デー
タを格納
PortType:
DataType: RTC::RangeData
MaxOut:
[Data Elements]
Name:
Type: RTC::RangeData
Number:
Semantics:
Unit: m
Frequency:
Operation Cycle:
RangeLow:
RangeHigh:
DefaultValue:
Name: touch
PortNumber: 2
Description: タッチセンサの値をBoolean[2] で出力
PortType:
DataType: RTC::TimedBooleanSeq
MaxOut:
[Data Elements]
Name:
Type: RTC::TimedBooleanSeq
Number: 2
Semantics:
Unit:
Frequency:
Operation Cycle:
RangeLow:
RangeHigh:
DefaultValue:
# </rtc-template>
======================================================================
OutPorts definition
======================================================================
# <rtc-template block="outport">
Name: target_velocity_out
PortNumber: 0
Description: 補正後の目標速度
PortType:
DataType: RTC::TimedVelocity2D
MaxOut:
[Data Elements]
Name:
Type: RTC::TimedVelocity2D
Number:
Semantics:
Unit: m/s, rad/s
Frequency:
Operation Cycle:
RangeLow:
RangeHigh:
DefaultValue:
Name: angle
PortNumber: 1
Description: モーターMの角度
PortType:
DataType: RTC::TimedDouble
MaxOut:
[Data Elements]
Name:
Type: RTC::TimedDouble
Number:
Semantics:
Unit: rad
Frequency:
Operation Cycle:
RangeLow:
RangeHigh:
DefaultValue:
# </rtc-template>
======================================================================
Service Port definition
======================================================================
# <rtc-template block="serviceport">
# </rtc-template>
======================================================================
Configuration definition
======================================================================
# <rtc-template block="configuration">
Configuration:
Name: sensor_height sensor_height
Description: 走行できる地面があると判定する超音波センサの計
測値
Type: double
DefaultValue: 0.20 0.20
Unit: m
Range:
Constraint:
Name: back_speed back_speed
Description: 後退運動をする速さ
Type: double
DefaultValue: 0.1 0.1
Unit: m/s
Range:
Constraint:
Name: back_time back_time
Description: 後退運動する時間
Type: double
DefaultValue: 0.5 0.5
Unit: s
Range:
Constraint:
Name: rotate_speed rotate_speed
Description: 回転運動する速さ
Type: double
DefaultValue: 1.6 1.6
Unit:
Range:
Constraint:
Name: rotate_time rotate_time
Description: 回転運動する時間
Type: double
DefaultValue: 1.0 1.0
Unit: s
Range:
Constraint:
Name: medium_motor_range medium_motor_range
Description: Mモーターの動作範囲
Type: double
DefaultValue: 1.0 1.0
Unit: rad
Range:
Constraint: 0 < x < 3.14
Name: medium_motor_speed medium_motor_speed
Description: Mモーターの速度
Type: double
DefaultValue: 0.6 0.6
Unit: rad/s
Range:
Constraint:
# </rtc-template>
This software is developed at the National Institute of Advanced
Industrial Science and Technology. Approval number H23PRO-????. This
software is licensed under the Lesser General Public License. See
COPYING.LESSER.
This area is reserved for future OpenRTM.