@openrobops/iso21423 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +358 -2
- package/dist/ccs-CU8XD5sl.d.cts +69 -0
- package/dist/ccs-CU8XD5sl.d.ts +69 -0
- package/dist/chunk-3JNSIJSX.js +31 -0
- package/dist/chunk-3JNSIJSX.js.map +1 -0
- package/dist/chunk-5ZIUSUHF.js +55 -0
- package/dist/chunk-5ZIUSUHF.js.map +1 -0
- package/dist/chunk-DMJ6T3RX.js +445 -0
- package/dist/chunk-DMJ6T3RX.js.map +1 -0
- package/dist/chunk-GPNR37CI.js +1915 -0
- package/dist/chunk-GPNR37CI.js.map +1 -0
- package/dist/chunk-JDO725KR.js +210 -0
- package/dist/chunk-JDO725KR.js.map +1 -0
- package/dist/chunk-JIYCTQXR.js +1 -0
- package/dist/chunk-JIYCTQXR.js.map +1 -0
- package/dist/chunk-JLUENXGS.js +48 -0
- package/dist/chunk-JLUENXGS.js.map +1 -0
- package/dist/chunk-JQAMNFAF.js +1 -0
- package/dist/chunk-JQAMNFAF.js.map +1 -0
- package/dist/chunk-LTPOAVGF.js +44 -0
- package/dist/chunk-LTPOAVGF.js.map +1 -0
- package/dist/chunk-ODBIFZN3.js +65 -0
- package/dist/chunk-ODBIFZN3.js.map +1 -0
- package/dist/chunk-OH2DOPKJ.js +107 -0
- package/dist/chunk-OH2DOPKJ.js.map +1 -0
- package/dist/chunk-QAA44UNO.js +1 -0
- package/dist/chunk-QAA44UNO.js.map +1 -0
- package/dist/chunk-RD7PYTIT.js +107 -0
- package/dist/chunk-RD7PYTIT.js.map +1 -0
- package/dist/chunk-UJC46NTA.js +13 -0
- package/dist/chunk-UJC46NTA.js.map +1 -0
- package/dist/chunk-UW6WTEPT.js +293 -0
- package/dist/chunk-UW6WTEPT.js.map +1 -0
- package/dist/chunk-W7DIDPTG.js +1 -0
- package/dist/chunk-W7DIDPTG.js.map +1 -0
- package/dist/core.cjs +2874 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +996 -0
- package/dist/core.d.ts +996 -0
- package/dist/core.js +59 -0
- package/dist/core.js.map +1 -0
- package/dist/gateway.cjs +2937 -0
- package/dist/gateway.cjs.map +1 -0
- package/dist/gateway.d.cts +165 -0
- package/dist/gateway.d.ts +165 -0
- package/dist/gateway.js +21 -0
- package/dist/gateway.js.map +1 -0
- package/dist/geometry.cjs +98 -0
- package/dist/geometry.cjs.map +1 -0
- package/dist/geometry.d.cts +38 -0
- package/dist/geometry.d.ts +38 -0
- package/dist/geometry.js +14 -0
- package/dist/geometry.js.map +1 -0
- package/dist/identity-BGr2FJmC.d.cts +258 -0
- package/dist/identity-Bw8Dik5S.d.ts +258 -0
- package/dist/index.cjs +3327 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +118 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +193 -0
- package/dist/index.js.map +1 -0
- package/dist/schema.cjs +375 -0
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.cts +28 -0
- package/dist/schema.d.ts +28 -0
- package/dist/schema.js +14 -0
- package/dist/schema.js.map +1 -0
- package/dist/session-RV32MFpV.d.cts +139 -0
- package/dist/session-ueiESY7Y.d.ts +139 -0
- package/dist/session.cjs +855 -0
- package/dist/session.cjs.map +1 -0
- package/dist/session.d.cts +94 -0
- package/dist/session.d.ts +94 -0
- package/dist/session.js +20 -0
- package/dist/session.js.map +1 -0
- package/dist/testing.cjs +205 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +94 -0
- package/dist/testing.d.ts +94 -0
- package/dist/testing.js +169 -0
- package/dist/testing.js.map +1 -0
- package/dist/topics-BiVeZyTW.d.cts +43 -0
- package/dist/topics-BiVeZyTW.d.ts +43 -0
- package/dist/topics.cjs +134 -0
- package/dist/topics.cjs.map +1 -0
- package/dist/topics.d.cts +41 -0
- package/dist/topics.d.ts +41 -0
- package/dist/topics.js +30 -0
- package/dist/topics.js.map +1 -0
- package/dist/transport-BT4AjTn9.d.cts +61 -0
- package/dist/transport-BT4AjTn9.d.ts +61 -0
- package/dist/types.cjs +186 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +83 -0
- package/dist/types.d.ts +83 -0
- package/dist/types.js +50 -0
- package/dist/types.js.map +1 -0
- package/dist/validators-Be0ce1b8.d.cts +29 -0
- package/dist/validators-Be0ce1b8.d.ts +29 -0
- package/package.json +48 -4
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { U as Uuid, I as IsoTimestamp, L as LocationPoint, O as Orientation, P as Point } from './ccs-CU8XD5sl.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright 2026 InOrbit, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
declare const ROOT_NAMESPACE = "/ISO_21423/v1";
|
|
19
|
+
declare const PROTOCOL_VERSION = "1.0";
|
|
20
|
+
declare const ENTITY_TYPES: readonly ["IMR", "IMRFM"];
|
|
21
|
+
type KnownEntityType = (typeof ENTITY_TYPES)[number];
|
|
22
|
+
/** Widened to allow vendor-defined entity types beyond the two the spec names, while still autocompleting the known ones. */
|
|
23
|
+
type EntityType = KnownEntityType | (string & {});
|
|
24
|
+
/** All operating states the spec defines: stop categories, motion states, and MODE_* (mutually-exclusive mode markers) mixed together. */
|
|
25
|
+
declare const KNOWN_OPERATING_STATES: readonly ["STOP_CATEGORY_0", "STOP_CATEGORY_1", "STOP_CATEGORY_2", "PAUSED", "WAIT_FOR_RESET", "MAPPING", "LOST", "WAIT_FOR_ATTACHMENT", "WAIT_FOR_EVENT", "BLOCKED", "ATTACHMENT_ACTIVE", "STOPPED", "DOCKING", "SLOWING", "ACCELERATING", "LEFT_TURN", "RIGHT_TURN", "REVERSE", "FORWARD", "LINE_FOLLOWING", "CHARGING", "LOW_BATTERY", "IDLE", "PARKED", "OFFLINE", "READY", "NOT_READY", "MODE_AUTO", "MODE_SEMIAUTO", "MODE_TELEOP", "MODE_MANUAL", "MODE_MAINTENANCE"];
|
|
26
|
+
type KnownOperatingState = (typeof KNOWN_OPERATING_STATES)[number];
|
|
27
|
+
type OperatingState = KnownOperatingState | (string & {});
|
|
28
|
+
/** Subset of {@link KNOWN_OPERATING_STATES} that are the mutually-exclusive MODE_* markers. */
|
|
29
|
+
declare const OPERATING_MODES: readonly ["MODE_AUTO", "MODE_SEMIAUTO", "MODE_TELEOP", "MODE_MANUAL", "MODE_MAINTENANCE"];
|
|
30
|
+
/** LWT state published by the broker on ungraceful disconnect (B.4). */
|
|
31
|
+
declare const LOST_CONNECTION_STATE = "LOST_CONNECTION";
|
|
32
|
+
/** Overall lifecycle states for a whole {@link Request} (its `RECOVERY` state has no per-detail equivalent — see {@link DetailState}). */
|
|
33
|
+
declare const REQUEST_STATES: readonly ["RECEIVED", "ACCEPTED", "EXECUTING", "CANCELED", "SUCCEEDED", "ABORTED", "RECOVERY"];
|
|
34
|
+
type RequestState = (typeof REQUEST_STATES)[number];
|
|
35
|
+
/** Lifecycle states for a single detail/action within a request. */
|
|
36
|
+
declare const DETAIL_STATES: readonly ["RECEIVED", "ACCEPTED", "EXECUTING", "CANCELED", "SUCCEEDED", "ABORTED"];
|
|
37
|
+
type DetailState = (typeof DETAIL_STATES)[number];
|
|
38
|
+
declare const KNOWN_REASON_CODES: readonly ["OK", "GENERAL_FAILURE", "TIMEOUT", "VERSION_NOT_SUPPORTED", "FORMAT_NOT_SUPPORTED", "ACTION_NOT_IMPLEMENTED", "REJECTED", "MALFORMED_REQUEST", "INVALID_IMR_STATE_FOR_ACTION"];
|
|
39
|
+
type ReasonCode = (typeof KNOWN_REASON_CODES)[number] | (string & {});
|
|
40
|
+
declare const BATTERY_HEALTH: readonly ["UNKNOWN", "HEALTHY", "OVERHEAT", "DEAD", "OVERVOLTAGE", "FAILURE", "COLD"];
|
|
41
|
+
type BatteryHealth = (typeof BATTERY_HEALTH)[number] | (string & {});
|
|
42
|
+
/** Charging state as distinct from {@link BatteryHealth} — this is about current/direction of charge flow, not battery condition. */
|
|
43
|
+
declare const CHARGING_STATES: readonly ["UNKNOWN", "CHARGING", "DISCHARGING", "NOT_CHARGING", "FULL"];
|
|
44
|
+
type ChargingState = (typeof CHARGING_STATES)[number] | (string & {});
|
|
45
|
+
declare const DOCK_ACTIONS: readonly ["CHARGE", "DUMP", "FILL", "LOAD", "UNLOAD", "PICK", "DROP"];
|
|
46
|
+
type DockAction = (typeof DOCK_ACTIONS)[number] | (string & {});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Copyright 2026 InOrbit, Inc.
|
|
50
|
+
*
|
|
51
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
52
|
+
* you may not use this file except in compliance with the License.
|
|
53
|
+
* You may obtain a copy of the License at
|
|
54
|
+
*
|
|
55
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
56
|
+
*
|
|
57
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
58
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
59
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
60
|
+
* See the License for the specific language governing permissions and
|
|
61
|
+
* limitations under the License.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/** One action within a {@link Request}'s `details` array. */
|
|
65
|
+
interface RequestDetail {
|
|
66
|
+
type: string;
|
|
67
|
+
version: string;
|
|
68
|
+
format?: string;
|
|
69
|
+
blocking?: boolean;
|
|
70
|
+
atomic?: boolean;
|
|
71
|
+
properties?: Record<string, unknown>;
|
|
72
|
+
}
|
|
73
|
+
/** Wire shape of an ISO 21423 request message, one or more {@link RequestDetail} actions bundled together. */
|
|
74
|
+
interface Request {
|
|
75
|
+
destination: Uuid | '';
|
|
76
|
+
source: Uuid;
|
|
77
|
+
sequenceId: number;
|
|
78
|
+
timestamp: IsoTimestamp;
|
|
79
|
+
priority?: number;
|
|
80
|
+
atomic?: boolean;
|
|
81
|
+
details: RequestDetail[];
|
|
82
|
+
recoveries?: RequestDetail[];
|
|
83
|
+
}
|
|
84
|
+
/** Status of a single detail/action. Allows arbitrary vendor extension keys alongside the standard fields. */
|
|
85
|
+
interface DetailStatusBody {
|
|
86
|
+
code: DetailState;
|
|
87
|
+
reason?: ReasonCode;
|
|
88
|
+
message?: string;
|
|
89
|
+
[vendor: string]: unknown;
|
|
90
|
+
}
|
|
91
|
+
/** Status of one {@link RequestDetail}, mirroring its `type`/`version`/`blocking`. */
|
|
92
|
+
interface RequestDetailStatus {
|
|
93
|
+
type: string;
|
|
94
|
+
version: string;
|
|
95
|
+
blocking?: boolean;
|
|
96
|
+
status: DetailStatusBody;
|
|
97
|
+
properties?: Record<string, unknown>;
|
|
98
|
+
}
|
|
99
|
+
/** Wire shape of a status message replying to a {@link Request}. */
|
|
100
|
+
interface RequestStatus {
|
|
101
|
+
source: Uuid;
|
|
102
|
+
destination: Uuid;
|
|
103
|
+
sequenceId: number;
|
|
104
|
+
requestSequenceId: number;
|
|
105
|
+
timestamp: IsoTimestamp;
|
|
106
|
+
status: RequestState;
|
|
107
|
+
detailStatuses: RequestDetailStatus[];
|
|
108
|
+
recoveryStatuses?: RequestDetailStatus[];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Copyright 2026 InOrbit, Inc.
|
|
113
|
+
*
|
|
114
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
115
|
+
* you may not use this file except in compliance with the License.
|
|
116
|
+
* You may obtain a copy of the License at
|
|
117
|
+
*
|
|
118
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
119
|
+
*
|
|
120
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
121
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
122
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
123
|
+
* See the License for the specific language governing permissions and
|
|
124
|
+
* limitations under the License.
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/** Pose + velocity telemetry sample. */
|
|
128
|
+
interface Odometry {
|
|
129
|
+
timestamp: IsoTimestamp;
|
|
130
|
+
pose: {
|
|
131
|
+
locationPoint: LocationPoint;
|
|
132
|
+
orientation: Orientation;
|
|
133
|
+
};
|
|
134
|
+
velocity: {
|
|
135
|
+
linear: number;
|
|
136
|
+
angular: number;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
interface BatteryStatus {
|
|
140
|
+
timestamp: IsoTimestamp;
|
|
141
|
+
batterySoc: number;
|
|
142
|
+
batteryHealth?: BatteryHealth;
|
|
143
|
+
batteryTemperature?: number;
|
|
144
|
+
batteryVoltage?: number;
|
|
145
|
+
batteryCurrent?: number;
|
|
146
|
+
batteryChargingState?: ChargingState;
|
|
147
|
+
}
|
|
148
|
+
interface LocationPointStamped {
|
|
149
|
+
timestamp: IsoTimestamp;
|
|
150
|
+
locationPoint: LocationPoint;
|
|
151
|
+
}
|
|
152
|
+
/** Recent path already traveled, as a time-ordered sequence of points. */
|
|
153
|
+
interface LocalTrajectory {
|
|
154
|
+
timestamp: IsoTimestamp;
|
|
155
|
+
localTrajectory: LocationPointStamped[];
|
|
156
|
+
}
|
|
157
|
+
interface NurbsControlPoint {
|
|
158
|
+
locationPoint: LocationPoint;
|
|
159
|
+
weight?: number;
|
|
160
|
+
}
|
|
161
|
+
/** NURBS curve definition for a planned path. */
|
|
162
|
+
interface NurbsCurve {
|
|
163
|
+
degree: number;
|
|
164
|
+
controlPoints: NurbsControlPoint[];
|
|
165
|
+
knots: number[];
|
|
166
|
+
}
|
|
167
|
+
/** Global path as a single NURBS curve (contrast with {@link GlobalPlan}'s discrete waypoints). */
|
|
168
|
+
interface GlobalPath {
|
|
169
|
+
timestamp: IsoTimestamp;
|
|
170
|
+
globalPath: NurbsCurve;
|
|
171
|
+
}
|
|
172
|
+
/** Global plan as a time-ordered sequence of waypoints (contrast with {@link GlobalPath}'s curve). */
|
|
173
|
+
interface GlobalPlan {
|
|
174
|
+
timestamp: IsoTimestamp;
|
|
175
|
+
globalPlan: LocationPointStamped[];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Copyright 2026 InOrbit, Inc.
|
|
180
|
+
*
|
|
181
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
* you may not use this file except in compliance with the License.
|
|
183
|
+
* You may obtain a copy of the License at
|
|
184
|
+
*
|
|
185
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
*
|
|
187
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
* See the License for the specific language governing permissions and
|
|
191
|
+
* limitations under the License.
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
/** What an entity can do and, for fleet managers, which robots it manages (or, for a managed robot, who manages it). */
|
|
195
|
+
interface Capabilities {
|
|
196
|
+
provides: string[];
|
|
197
|
+
accepts: {
|
|
198
|
+
requests: string[];
|
|
199
|
+
};
|
|
200
|
+
manages?: Uuid[];
|
|
201
|
+
managedBy?: Uuid;
|
|
202
|
+
}
|
|
203
|
+
interface SoftwareVersion {
|
|
204
|
+
moduleName: string;
|
|
205
|
+
moduleVersion: string;
|
|
206
|
+
}
|
|
207
|
+
interface AdditionalProperty {
|
|
208
|
+
key: string;
|
|
209
|
+
value: string;
|
|
210
|
+
}
|
|
211
|
+
interface SupportVendorContactInformation {
|
|
212
|
+
name: string;
|
|
213
|
+
phone?: string;
|
|
214
|
+
address?: string;
|
|
215
|
+
email?: string;
|
|
216
|
+
}
|
|
217
|
+
/** Identity payload for an IMR (the robot itself). */
|
|
218
|
+
interface ImrDetails {
|
|
219
|
+
imrModel: string;
|
|
220
|
+
imrSerialNumber: string;
|
|
221
|
+
imrName?: string;
|
|
222
|
+
imrFootprint: Point[];
|
|
223
|
+
imrWorkingArea: Point[];
|
|
224
|
+
imrHeight: number;
|
|
225
|
+
softwareVersions: SoftwareVersion[];
|
|
226
|
+
priority?: number;
|
|
227
|
+
ratedSpeed?: number;
|
|
228
|
+
supportedChargerTypes?: string[];
|
|
229
|
+
supportVendorName?: string;
|
|
230
|
+
supportVendorContactInformation?: string;
|
|
231
|
+
visualThumbnailImage?: string;
|
|
232
|
+
ratedLoad?: number;
|
|
233
|
+
supportURL?: string;
|
|
234
|
+
imrDocumentation?: string;
|
|
235
|
+
payloadTypes?: string[];
|
|
236
|
+
batteryType?: string;
|
|
237
|
+
additionalProperties?: AdditionalProperty[];
|
|
238
|
+
}
|
|
239
|
+
/** Identity payload for an IMRFM (fleet manager). */
|
|
240
|
+
interface ImrfmDetails {
|
|
241
|
+
softwareVersions: SoftwareVersion[];
|
|
242
|
+
imrfmModel?: string;
|
|
243
|
+
supportVendorContactInf?: SupportVendorContactInformation;
|
|
244
|
+
supportURL?: string;
|
|
245
|
+
imrfmDocumentation?: string;
|
|
246
|
+
}
|
|
247
|
+
/** Wire shape of the retained identity message an entity publishes on connect. */
|
|
248
|
+
interface EntityIdentity {
|
|
249
|
+
id: Uuid;
|
|
250
|
+
timestamp: IsoTimestamp;
|
|
251
|
+
entityType: EntityType;
|
|
252
|
+
manufacturerName: string;
|
|
253
|
+
iso21423Version?: string;
|
|
254
|
+
capabilities: Capabilities;
|
|
255
|
+
details: ImrDetails | ImrfmDetails | Record<string, unknown>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export { type AdditionalProperty as A, BATTERY_HEALTH as B, CHARGING_STATES as C, type DetailState as D, ENTITY_TYPES as E, type RequestStatus as F, type GlobalPath as G, type SupportVendorContactInformation as H, type ImrDetails as I, KNOWN_OPERATING_STATES as K, LOST_CONNECTION_STATE as L, type NurbsControlPoint as N, OPERATING_MODES as O, PROTOCOL_VERSION as P, type RequestState as R, type SoftwareVersion as S, type BatteryHealth as a, type BatteryStatus as b, type Capabilities as c, type ChargingState as d, DETAIL_STATES as e, DOCK_ACTIONS as f, type DetailStatusBody as g, type DockAction as h, type EntityIdentity as i, type EntityType as j, type GlobalPlan as k, type ImrfmDetails as l, KNOWN_REASON_CODES as m, type KnownEntityType as n, type KnownOperatingState as o, type LocalTrajectory as p, type LocationPointStamped as q, type NurbsCurve as r, type Odometry as s, type OperatingState as t, REQUEST_STATES as u, ROOT_NAMESPACE as v, type ReasonCode as w, type Request as x, type RequestDetail as y, type RequestDetailStatus as z };
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { U as Uuid, I as IsoTimestamp, L as LocationPoint, O as Orientation, P as Point } from './ccs-CU8XD5sl.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright 2026 InOrbit, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
declare const ROOT_NAMESPACE = "/ISO_21423/v1";
|
|
19
|
+
declare const PROTOCOL_VERSION = "1.0";
|
|
20
|
+
declare const ENTITY_TYPES: readonly ["IMR", "IMRFM"];
|
|
21
|
+
type KnownEntityType = (typeof ENTITY_TYPES)[number];
|
|
22
|
+
/** Widened to allow vendor-defined entity types beyond the two the spec names, while still autocompleting the known ones. */
|
|
23
|
+
type EntityType = KnownEntityType | (string & {});
|
|
24
|
+
/** All operating states the spec defines: stop categories, motion states, and MODE_* (mutually-exclusive mode markers) mixed together. */
|
|
25
|
+
declare const KNOWN_OPERATING_STATES: readonly ["STOP_CATEGORY_0", "STOP_CATEGORY_1", "STOP_CATEGORY_2", "PAUSED", "WAIT_FOR_RESET", "MAPPING", "LOST", "WAIT_FOR_ATTACHMENT", "WAIT_FOR_EVENT", "BLOCKED", "ATTACHMENT_ACTIVE", "STOPPED", "DOCKING", "SLOWING", "ACCELERATING", "LEFT_TURN", "RIGHT_TURN", "REVERSE", "FORWARD", "LINE_FOLLOWING", "CHARGING", "LOW_BATTERY", "IDLE", "PARKED", "OFFLINE", "READY", "NOT_READY", "MODE_AUTO", "MODE_SEMIAUTO", "MODE_TELEOP", "MODE_MANUAL", "MODE_MAINTENANCE"];
|
|
26
|
+
type KnownOperatingState = (typeof KNOWN_OPERATING_STATES)[number];
|
|
27
|
+
type OperatingState = KnownOperatingState | (string & {});
|
|
28
|
+
/** Subset of {@link KNOWN_OPERATING_STATES} that are the mutually-exclusive MODE_* markers. */
|
|
29
|
+
declare const OPERATING_MODES: readonly ["MODE_AUTO", "MODE_SEMIAUTO", "MODE_TELEOP", "MODE_MANUAL", "MODE_MAINTENANCE"];
|
|
30
|
+
/** LWT state published by the broker on ungraceful disconnect (B.4). */
|
|
31
|
+
declare const LOST_CONNECTION_STATE = "LOST_CONNECTION";
|
|
32
|
+
/** Overall lifecycle states for a whole {@link Request} (its `RECOVERY` state has no per-detail equivalent — see {@link DetailState}). */
|
|
33
|
+
declare const REQUEST_STATES: readonly ["RECEIVED", "ACCEPTED", "EXECUTING", "CANCELED", "SUCCEEDED", "ABORTED", "RECOVERY"];
|
|
34
|
+
type RequestState = (typeof REQUEST_STATES)[number];
|
|
35
|
+
/** Lifecycle states for a single detail/action within a request. */
|
|
36
|
+
declare const DETAIL_STATES: readonly ["RECEIVED", "ACCEPTED", "EXECUTING", "CANCELED", "SUCCEEDED", "ABORTED"];
|
|
37
|
+
type DetailState = (typeof DETAIL_STATES)[number];
|
|
38
|
+
declare const KNOWN_REASON_CODES: readonly ["OK", "GENERAL_FAILURE", "TIMEOUT", "VERSION_NOT_SUPPORTED", "FORMAT_NOT_SUPPORTED", "ACTION_NOT_IMPLEMENTED", "REJECTED", "MALFORMED_REQUEST", "INVALID_IMR_STATE_FOR_ACTION"];
|
|
39
|
+
type ReasonCode = (typeof KNOWN_REASON_CODES)[number] | (string & {});
|
|
40
|
+
declare const BATTERY_HEALTH: readonly ["UNKNOWN", "HEALTHY", "OVERHEAT", "DEAD", "OVERVOLTAGE", "FAILURE", "COLD"];
|
|
41
|
+
type BatteryHealth = (typeof BATTERY_HEALTH)[number] | (string & {});
|
|
42
|
+
/** Charging state as distinct from {@link BatteryHealth} — this is about current/direction of charge flow, not battery condition. */
|
|
43
|
+
declare const CHARGING_STATES: readonly ["UNKNOWN", "CHARGING", "DISCHARGING", "NOT_CHARGING", "FULL"];
|
|
44
|
+
type ChargingState = (typeof CHARGING_STATES)[number] | (string & {});
|
|
45
|
+
declare const DOCK_ACTIONS: readonly ["CHARGE", "DUMP", "FILL", "LOAD", "UNLOAD", "PICK", "DROP"];
|
|
46
|
+
type DockAction = (typeof DOCK_ACTIONS)[number] | (string & {});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Copyright 2026 InOrbit, Inc.
|
|
50
|
+
*
|
|
51
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
52
|
+
* you may not use this file except in compliance with the License.
|
|
53
|
+
* You may obtain a copy of the License at
|
|
54
|
+
*
|
|
55
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
56
|
+
*
|
|
57
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
58
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
59
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
60
|
+
* See the License for the specific language governing permissions and
|
|
61
|
+
* limitations under the License.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/** One action within a {@link Request}'s `details` array. */
|
|
65
|
+
interface RequestDetail {
|
|
66
|
+
type: string;
|
|
67
|
+
version: string;
|
|
68
|
+
format?: string;
|
|
69
|
+
blocking?: boolean;
|
|
70
|
+
atomic?: boolean;
|
|
71
|
+
properties?: Record<string, unknown>;
|
|
72
|
+
}
|
|
73
|
+
/** Wire shape of an ISO 21423 request message, one or more {@link RequestDetail} actions bundled together. */
|
|
74
|
+
interface Request {
|
|
75
|
+
destination: Uuid | '';
|
|
76
|
+
source: Uuid;
|
|
77
|
+
sequenceId: number;
|
|
78
|
+
timestamp: IsoTimestamp;
|
|
79
|
+
priority?: number;
|
|
80
|
+
atomic?: boolean;
|
|
81
|
+
details: RequestDetail[];
|
|
82
|
+
recoveries?: RequestDetail[];
|
|
83
|
+
}
|
|
84
|
+
/** Status of a single detail/action. Allows arbitrary vendor extension keys alongside the standard fields. */
|
|
85
|
+
interface DetailStatusBody {
|
|
86
|
+
code: DetailState;
|
|
87
|
+
reason?: ReasonCode;
|
|
88
|
+
message?: string;
|
|
89
|
+
[vendor: string]: unknown;
|
|
90
|
+
}
|
|
91
|
+
/** Status of one {@link RequestDetail}, mirroring its `type`/`version`/`blocking`. */
|
|
92
|
+
interface RequestDetailStatus {
|
|
93
|
+
type: string;
|
|
94
|
+
version: string;
|
|
95
|
+
blocking?: boolean;
|
|
96
|
+
status: DetailStatusBody;
|
|
97
|
+
properties?: Record<string, unknown>;
|
|
98
|
+
}
|
|
99
|
+
/** Wire shape of a status message replying to a {@link Request}. */
|
|
100
|
+
interface RequestStatus {
|
|
101
|
+
source: Uuid;
|
|
102
|
+
destination: Uuid;
|
|
103
|
+
sequenceId: number;
|
|
104
|
+
requestSequenceId: number;
|
|
105
|
+
timestamp: IsoTimestamp;
|
|
106
|
+
status: RequestState;
|
|
107
|
+
detailStatuses: RequestDetailStatus[];
|
|
108
|
+
recoveryStatuses?: RequestDetailStatus[];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Copyright 2026 InOrbit, Inc.
|
|
113
|
+
*
|
|
114
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
115
|
+
* you may not use this file except in compliance with the License.
|
|
116
|
+
* You may obtain a copy of the License at
|
|
117
|
+
*
|
|
118
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
119
|
+
*
|
|
120
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
121
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
122
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
123
|
+
* See the License for the specific language governing permissions and
|
|
124
|
+
* limitations under the License.
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/** Pose + velocity telemetry sample. */
|
|
128
|
+
interface Odometry {
|
|
129
|
+
timestamp: IsoTimestamp;
|
|
130
|
+
pose: {
|
|
131
|
+
locationPoint: LocationPoint;
|
|
132
|
+
orientation: Orientation;
|
|
133
|
+
};
|
|
134
|
+
velocity: {
|
|
135
|
+
linear: number;
|
|
136
|
+
angular: number;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
interface BatteryStatus {
|
|
140
|
+
timestamp: IsoTimestamp;
|
|
141
|
+
batterySoc: number;
|
|
142
|
+
batteryHealth?: BatteryHealth;
|
|
143
|
+
batteryTemperature?: number;
|
|
144
|
+
batteryVoltage?: number;
|
|
145
|
+
batteryCurrent?: number;
|
|
146
|
+
batteryChargingState?: ChargingState;
|
|
147
|
+
}
|
|
148
|
+
interface LocationPointStamped {
|
|
149
|
+
timestamp: IsoTimestamp;
|
|
150
|
+
locationPoint: LocationPoint;
|
|
151
|
+
}
|
|
152
|
+
/** Recent path already traveled, as a time-ordered sequence of points. */
|
|
153
|
+
interface LocalTrajectory {
|
|
154
|
+
timestamp: IsoTimestamp;
|
|
155
|
+
localTrajectory: LocationPointStamped[];
|
|
156
|
+
}
|
|
157
|
+
interface NurbsControlPoint {
|
|
158
|
+
locationPoint: LocationPoint;
|
|
159
|
+
weight?: number;
|
|
160
|
+
}
|
|
161
|
+
/** NURBS curve definition for a planned path. */
|
|
162
|
+
interface NurbsCurve {
|
|
163
|
+
degree: number;
|
|
164
|
+
controlPoints: NurbsControlPoint[];
|
|
165
|
+
knots: number[];
|
|
166
|
+
}
|
|
167
|
+
/** Global path as a single NURBS curve (contrast with {@link GlobalPlan}'s discrete waypoints). */
|
|
168
|
+
interface GlobalPath {
|
|
169
|
+
timestamp: IsoTimestamp;
|
|
170
|
+
globalPath: NurbsCurve;
|
|
171
|
+
}
|
|
172
|
+
/** Global plan as a time-ordered sequence of waypoints (contrast with {@link GlobalPath}'s curve). */
|
|
173
|
+
interface GlobalPlan {
|
|
174
|
+
timestamp: IsoTimestamp;
|
|
175
|
+
globalPlan: LocationPointStamped[];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Copyright 2026 InOrbit, Inc.
|
|
180
|
+
*
|
|
181
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
* you may not use this file except in compliance with the License.
|
|
183
|
+
* You may obtain a copy of the License at
|
|
184
|
+
*
|
|
185
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
*
|
|
187
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
* See the License for the specific language governing permissions and
|
|
191
|
+
* limitations under the License.
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
/** What an entity can do and, for fleet managers, which robots it manages (or, for a managed robot, who manages it). */
|
|
195
|
+
interface Capabilities {
|
|
196
|
+
provides: string[];
|
|
197
|
+
accepts: {
|
|
198
|
+
requests: string[];
|
|
199
|
+
};
|
|
200
|
+
manages?: Uuid[];
|
|
201
|
+
managedBy?: Uuid;
|
|
202
|
+
}
|
|
203
|
+
interface SoftwareVersion {
|
|
204
|
+
moduleName: string;
|
|
205
|
+
moduleVersion: string;
|
|
206
|
+
}
|
|
207
|
+
interface AdditionalProperty {
|
|
208
|
+
key: string;
|
|
209
|
+
value: string;
|
|
210
|
+
}
|
|
211
|
+
interface SupportVendorContactInformation {
|
|
212
|
+
name: string;
|
|
213
|
+
phone?: string;
|
|
214
|
+
address?: string;
|
|
215
|
+
email?: string;
|
|
216
|
+
}
|
|
217
|
+
/** Identity payload for an IMR (the robot itself). */
|
|
218
|
+
interface ImrDetails {
|
|
219
|
+
imrModel: string;
|
|
220
|
+
imrSerialNumber: string;
|
|
221
|
+
imrName?: string;
|
|
222
|
+
imrFootprint: Point[];
|
|
223
|
+
imrWorkingArea: Point[];
|
|
224
|
+
imrHeight: number;
|
|
225
|
+
softwareVersions: SoftwareVersion[];
|
|
226
|
+
priority?: number;
|
|
227
|
+
ratedSpeed?: number;
|
|
228
|
+
supportedChargerTypes?: string[];
|
|
229
|
+
supportVendorName?: string;
|
|
230
|
+
supportVendorContactInformation?: string;
|
|
231
|
+
visualThumbnailImage?: string;
|
|
232
|
+
ratedLoad?: number;
|
|
233
|
+
supportURL?: string;
|
|
234
|
+
imrDocumentation?: string;
|
|
235
|
+
payloadTypes?: string[];
|
|
236
|
+
batteryType?: string;
|
|
237
|
+
additionalProperties?: AdditionalProperty[];
|
|
238
|
+
}
|
|
239
|
+
/** Identity payload for an IMRFM (fleet manager). */
|
|
240
|
+
interface ImrfmDetails {
|
|
241
|
+
softwareVersions: SoftwareVersion[];
|
|
242
|
+
imrfmModel?: string;
|
|
243
|
+
supportVendorContactInf?: SupportVendorContactInformation;
|
|
244
|
+
supportURL?: string;
|
|
245
|
+
imrfmDocumentation?: string;
|
|
246
|
+
}
|
|
247
|
+
/** Wire shape of the retained identity message an entity publishes on connect. */
|
|
248
|
+
interface EntityIdentity {
|
|
249
|
+
id: Uuid;
|
|
250
|
+
timestamp: IsoTimestamp;
|
|
251
|
+
entityType: EntityType;
|
|
252
|
+
manufacturerName: string;
|
|
253
|
+
iso21423Version?: string;
|
|
254
|
+
capabilities: Capabilities;
|
|
255
|
+
details: ImrDetails | ImrfmDetails | Record<string, unknown>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export { type AdditionalProperty as A, BATTERY_HEALTH as B, CHARGING_STATES as C, type DetailState as D, ENTITY_TYPES as E, type RequestStatus as F, type GlobalPath as G, type SupportVendorContactInformation as H, type ImrDetails as I, KNOWN_OPERATING_STATES as K, LOST_CONNECTION_STATE as L, type NurbsControlPoint as N, OPERATING_MODES as O, PROTOCOL_VERSION as P, type RequestState as R, type SoftwareVersion as S, type BatteryHealth as a, type BatteryStatus as b, type Capabilities as c, type ChargingState as d, DETAIL_STATES as e, DOCK_ACTIONS as f, type DetailStatusBody as g, type DockAction as h, type EntityIdentity as i, type EntityType as j, type GlobalPlan as k, type ImrfmDetails as l, KNOWN_REASON_CODES as m, type KnownEntityType as n, type KnownOperatingState as o, type LocalTrajectory as p, type LocationPointStamped as q, type NurbsCurve as r, type Odometry as s, type OperatingState as t, REQUEST_STATES as u, ROOT_NAMESPACE as v, type ReasonCode as w, type Request as x, type RequestDetail as y, type RequestDetailStatus as z };
|