Repository navigation
Expand file tree
/
Copy pathros.ts
More file actions
307 lines (284 loc) · 6.33 KB
/
Copy pathros.ts
File metadata and controls
307 lines (284 loc) · 6.33 KB
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
export type ColorRGBA = {
R: number
G: number
B: number
A: number
}
export type Joy = {
/*
Axes []float32
Buttons []int32
*/
Axes?: number[]
Buttons?: number[]
}
export type Marker = {
/*
Header std_msgs.Header
Ns string
Id int32
Type int32
Action int32
Pose geometry_msgs.Pose
Scale geometry_msgs.Vector3
Color std_msgs.ColorRGBA
Lifetime time.Duration
FrameLocked bool
Points []geometry_msgs.Point
Colors []std_msgs.ColorRGBA
Text string
MeshResource string
MeshUseEmbeddedMaterials bool
*/
Ns: string
Id: number
Type: number
Action: number
Pose: Pose
Scale: Vector3
Color: ColorRGBA
Lifetime: number
FrameLocked: boolean
Points: Point[]
Colors: ColorRGBA[]
Text: string
MeshResource: string
MeshUseEmbeddedMaterials: boolean
}
export type PoseStamped = {
/*
Pose Pose
*/
Pose?: Pose
}
export type Path = {
/*
Poses []geometry_msgs.PoseStamped
*/
Poses?: PoseStamped[]
}
export type MarkerArray = {
Markers: Marker[]
}
export type Point32 = {
/*
X float32
Y float32
Z float32
*/
X?: number
Y?: number
Z?: number
}
export type Twist = {
Linear?: Vector3
Angular?: Vector3
}
export type Polygon = {
/*
Points []Point32
*/
Points?: Point32[]
}
export type MapArea = {
/*
Name string
Area geometry_msgs.Polygon
Obstacles []geometry_msgs.Polygon
*/
Name?: string
Area?: Polygon
Obstacles?: Polygon[]
}
export type Map = {
/*
MapWidth float64`rosname:"mapWidth"`
MapHeight float64`rosname:"mapHeight"`
MapCenterX float64`rosname:"mapCenterX"`
MapCenterY float64 `rosname:"mapCenterY"`
NavigationAreas []MapArea `rosname:"navigationAreas"`
WorkingArea []MapArea `rosname:"workingArea"`
DockX float64 `rosname:"dockX"`
DockY float64`rosname:"dockY"`
DockHeading float64`rosname:"dockHeading"`
*/
MapWidth?: number
MapHeight?: number
MapCenterX?: number
MapCenterY?: number
NavigationAreas?: MapArea[]
WorkingArea?: MapArea[]
DockX?: number
DockY?: number
DockHeading?: number
}
export type WheelTick = {
/*
WheelTickFactor uint32
ValidWheels uint8
WheelDirectionFl uint8
WheelTicksFl uint32
WheelDirectionFr uint8
WheelTicksFr uint32
WheelDirectionRl uint8
WheelTicksRl uint32
WheelDirectionRr uint8
WheelTicksRr uint32
*/
WheelTickFactor?: number
ValidWheels?: number
WheelDirectionFl?: number
WheelTicksFl?: number
WheelDirectionFr?: number
WheelTicksFr?: number
WheelDirectionRl?: number
WheelTicksRl?: number
WheelDirectionRr?: number
WheelTicksRr?: number
}
export type Status = {
MowerStatus?: number
RaspberryPiPower?: boolean
GpsPower?: boolean
EscPower?: boolean
RainDetected?: boolean
SoundModuleAvailable?: boolean
SoundModuleBusy?: boolean
UiBoardAvailable?: boolean
UltrasonicRanges?: [number, number, number, number, number]
Emergency?: boolean
VCharge?: number
VBattery?: number
ChargeCurrent?: number
LeftEscStatus?: ESCStatus
RightEscStatus?: ESCStatus
MowEscStatus?: ESCStatus
MowEnabled?: boolean
}
export type ESCStatus = {
Status?: string
Current?: number
Tacho?: number
Rpm?: number
TemperatureMotor?: number
TemperaturePcb?: number
}
export type Point = {
/*
X float64
Y float64
Z float64
*/
X?: number
Y?: number
Z?: number
}
export type Quaternion = {
/*
X float64
Y float64
Z float64
W float64
*/
X?: number
Y?: number
Z?: number
W?: number
}
export type Pose = {
/*
Position Point
Orientation Quaternion
*/
Position?: Point
Orientation?: Quaternion
}
export type PoseWithCovariance = {
/*
Pose Pose
Covariance [36]float64
*/
Pose?: Pose
Covariance?: number[]
}
export type Vector3 = {
/*
X float64
Y float64
Z float64
*/
X?: number
Y?: number
Z?: number
}
export type HighLevelStatus = {
/*
State uint8
StateName string
SubStateName string
GpsQualityPercent float32
BatteryPercent float32
IsCharging bool
Emergency bool
*/
State?: number
StateName?: string
SubStateName?: string
GpsQualityPercent?: number
BatteryPercent?: number
IsCharging?: boolean
Emergency?: boolean
CurrentArea?: number
CurrentPath?: number
CurrentPathIndex?: number
}
export const enum AbsolutePoseFlags {
RTK = 1,
FIXED = 2,
FLOAT = 4,
DEAD_RECKONING = 8,
}
export type AbsolutePose = {
/*
SensorStamp uint32
ReceivedStamp uint32
Source uint8
Flags uint16
OrientationValid uint8
MotionVectorValid uint8
PositionAccuracy float32
OrientationAccuracy float32
Pose geometry_msgs.PoseWithCovariance
MotionVector geometry_msgs.Vector3
VehicleHeading float64
MotionHeading float64
*/
SensorStamp?: number
ReceivedStamp?: number
Source?: number
Flags?: AbsolutePoseFlags
OrientationValid?: number
MotionVectorValid?: number
PositionAccuracy?: number
OrientationAccuracy?: number
Pose?: PoseWithCovariance
MotionVector?: Vector3
VehicleHeading?: number
MotionHeading?: number
}
export type Imu = {
/*
Orientation geometry_msgs.Quaternion
OrientationCovariance [9]float64
AngularVelocity geometry_msgs.Vector3
AngularVelocityCovariance [9]float64
LinearAcceleration geometry_msgs.Vector3
LinearAccelerationCovariance [9]float64
*/
Orientation?: Quaternion
OrientationCovariance?: number[]
AngularVelocity?: Vector3
AngularVelocityCovariance?: number[]
LinearAcceleration?: Vector3
LinearAccelerationCovariance?: number[]
}