@viamrobotics/sdk 0.0.30 → 0.0.32
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/dist/gen/google/api/client_pb.d.ts +24 -0
- package/dist/gen/service/slam/v1/slam_pb.d.ts +14 -233
- package/dist/gen/service/slam/v1/slam_pb.esm.d.ts +14 -233
- package/dist/gen/service/slam/v1/slam_pb_service.d.ts +4 -80
- package/dist/gen/service/slam/v1/slam_pb_service.esm.d.ts +4 -80
- package/dist/main.es.js +188 -1456
- package/dist/main.umd.js +4 -4
- package/dist/robot/Client.d.ts +100 -0
- package/dist/robot/Robot.d.ts +129 -0
- package/dist/robot/SessionManager.d.ts +19 -0
- package/dist/robot/SessionTransport.d.ts +14 -0
- package/dist/robot/dial.d.ts +27 -0
- package/package.json +2 -1
|
@@ -14,29 +14,11 @@ type SLAMServiceGetPosition = {
|
|
|
14
14
|
readonly responseType: typeof service_slam_v1_slam_pb.GetPositionResponse;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
type SLAMServiceGetMap = {
|
|
18
|
-
readonly methodName: string;
|
|
19
|
-
readonly service: typeof SLAMService;
|
|
20
|
-
readonly requestStream: false;
|
|
21
|
-
readonly responseStream: false;
|
|
22
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetMapRequest;
|
|
23
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetMapResponse;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type SLAMServiceGetPositionNew = {
|
|
27
|
-
readonly methodName: string;
|
|
28
|
-
readonly service: typeof SLAMService;
|
|
29
|
-
readonly requestStream: false;
|
|
30
|
-
readonly responseStream: false;
|
|
31
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetPositionNewRequest;
|
|
32
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetPositionNewResponse;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
17
|
type SLAMServiceGetPointCloudMap = {
|
|
36
18
|
readonly methodName: string;
|
|
37
19
|
readonly service: typeof SLAMService;
|
|
38
20
|
readonly requestStream: false;
|
|
39
|
-
readonly responseStream:
|
|
21
|
+
readonly responseStream: true;
|
|
40
22
|
readonly requestType: typeof service_slam_v1_slam_pb.GetPointCloudMapRequest;
|
|
41
23
|
readonly responseType: typeof service_slam_v1_slam_pb.GetPointCloudMapResponse;
|
|
42
24
|
};
|
|
@@ -45,29 +27,11 @@ type SLAMServiceGetInternalState = {
|
|
|
45
27
|
readonly methodName: string;
|
|
46
28
|
readonly service: typeof SLAMService;
|
|
47
29
|
readonly requestStream: false;
|
|
48
|
-
readonly responseStream:
|
|
30
|
+
readonly responseStream: true;
|
|
49
31
|
readonly requestType: typeof service_slam_v1_slam_pb.GetInternalStateRequest;
|
|
50
32
|
readonly responseType: typeof service_slam_v1_slam_pb.GetInternalStateResponse;
|
|
51
33
|
};
|
|
52
34
|
|
|
53
|
-
type SLAMServiceGetPointCloudMapStream = {
|
|
54
|
-
readonly methodName: string;
|
|
55
|
-
readonly service: typeof SLAMService;
|
|
56
|
-
readonly requestStream: false;
|
|
57
|
-
readonly responseStream: true;
|
|
58
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetPointCloudMapStreamRequest;
|
|
59
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetPointCloudMapStreamResponse;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
type SLAMServiceGetInternalStateStream = {
|
|
63
|
-
readonly methodName: string;
|
|
64
|
-
readonly service: typeof SLAMService;
|
|
65
|
-
readonly requestStream: false;
|
|
66
|
-
readonly responseStream: true;
|
|
67
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetInternalStateStreamRequest;
|
|
68
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetInternalStateStreamResponse;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
35
|
type SLAMServiceDoCommand = {
|
|
72
36
|
readonly methodName: string;
|
|
73
37
|
readonly service: typeof SLAMService;
|
|
@@ -80,12 +44,8 @@ type SLAMServiceDoCommand = {
|
|
|
80
44
|
export class SLAMService {
|
|
81
45
|
static readonly serviceName: string;
|
|
82
46
|
static readonly GetPosition: SLAMServiceGetPosition;
|
|
83
|
-
static readonly GetMap: SLAMServiceGetMap;
|
|
84
|
-
static readonly GetPositionNew: SLAMServiceGetPositionNew;
|
|
85
47
|
static readonly GetPointCloudMap: SLAMServiceGetPointCloudMap;
|
|
86
48
|
static readonly GetInternalState: SLAMServiceGetInternalState;
|
|
87
|
-
static readonly GetPointCloudMapStream: SLAMServiceGetPointCloudMapStream;
|
|
88
|
-
static readonly GetInternalStateStream: SLAMServiceGetInternalStateStream;
|
|
89
49
|
static readonly DoCommand: SLAMServiceDoCommand;
|
|
90
50
|
}
|
|
91
51
|
|
|
@@ -130,44 +90,8 @@ export class SLAMServiceClient {
|
|
|
130
90
|
requestMessage: service_slam_v1_slam_pb.GetPositionRequest,
|
|
131
91
|
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPositionResponse|null) => void
|
|
132
92
|
): UnaryResponse;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
metadata: grpc.Metadata,
|
|
136
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetMapResponse|null) => void
|
|
137
|
-
): UnaryResponse;
|
|
138
|
-
getMap(
|
|
139
|
-
requestMessage: service_slam_v1_slam_pb.GetMapRequest,
|
|
140
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetMapResponse|null) => void
|
|
141
|
-
): UnaryResponse;
|
|
142
|
-
getPositionNew(
|
|
143
|
-
requestMessage: service_slam_v1_slam_pb.GetPositionNewRequest,
|
|
144
|
-
metadata: grpc.Metadata,
|
|
145
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPositionNewResponse|null) => void
|
|
146
|
-
): UnaryResponse;
|
|
147
|
-
getPositionNew(
|
|
148
|
-
requestMessage: service_slam_v1_slam_pb.GetPositionNewRequest,
|
|
149
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPositionNewResponse|null) => void
|
|
150
|
-
): UnaryResponse;
|
|
151
|
-
getPointCloudMap(
|
|
152
|
-
requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest,
|
|
153
|
-
metadata: grpc.Metadata,
|
|
154
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPointCloudMapResponse|null) => void
|
|
155
|
-
): UnaryResponse;
|
|
156
|
-
getPointCloudMap(
|
|
157
|
-
requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest,
|
|
158
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPointCloudMapResponse|null) => void
|
|
159
|
-
): UnaryResponse;
|
|
160
|
-
getInternalState(
|
|
161
|
-
requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest,
|
|
162
|
-
metadata: grpc.Metadata,
|
|
163
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetInternalStateResponse|null) => void
|
|
164
|
-
): UnaryResponse;
|
|
165
|
-
getInternalState(
|
|
166
|
-
requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest,
|
|
167
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetInternalStateResponse|null) => void
|
|
168
|
-
): UnaryResponse;
|
|
169
|
-
getPointCloudMapStream(requestMessage: service_slam_v1_slam_pb.GetPointCloudMapStreamRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetPointCloudMapStreamResponse>;
|
|
170
|
-
getInternalStateStream(requestMessage: service_slam_v1_slam_pb.GetInternalStateStreamRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetInternalStateStreamResponse>;
|
|
93
|
+
getPointCloudMap(requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetPointCloudMapResponse>;
|
|
94
|
+
getInternalState(requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetInternalStateResponse>;
|
|
171
95
|
doCommand(
|
|
172
96
|
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
173
97
|
metadata: grpc.Metadata,
|
|
@@ -14,29 +14,11 @@ type SLAMServiceGetPosition = {
|
|
|
14
14
|
readonly responseType: typeof service_slam_v1_slam_pb.GetPositionResponse;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
type SLAMServiceGetMap = {
|
|
18
|
-
readonly methodName: string;
|
|
19
|
-
readonly service: typeof SLAMService;
|
|
20
|
-
readonly requestStream: false;
|
|
21
|
-
readonly responseStream: false;
|
|
22
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetMapRequest;
|
|
23
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetMapResponse;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type SLAMServiceGetPositionNew = {
|
|
27
|
-
readonly methodName: string;
|
|
28
|
-
readonly service: typeof SLAMService;
|
|
29
|
-
readonly requestStream: false;
|
|
30
|
-
readonly responseStream: false;
|
|
31
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetPositionNewRequest;
|
|
32
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetPositionNewResponse;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
17
|
type SLAMServiceGetPointCloudMap = {
|
|
36
18
|
readonly methodName: string;
|
|
37
19
|
readonly service: typeof SLAMService;
|
|
38
20
|
readonly requestStream: false;
|
|
39
|
-
readonly responseStream:
|
|
21
|
+
readonly responseStream: true;
|
|
40
22
|
readonly requestType: typeof service_slam_v1_slam_pb.GetPointCloudMapRequest;
|
|
41
23
|
readonly responseType: typeof service_slam_v1_slam_pb.GetPointCloudMapResponse;
|
|
42
24
|
};
|
|
@@ -45,29 +27,11 @@ type SLAMServiceGetInternalState = {
|
|
|
45
27
|
readonly methodName: string;
|
|
46
28
|
readonly service: typeof SLAMService;
|
|
47
29
|
readonly requestStream: false;
|
|
48
|
-
readonly responseStream:
|
|
30
|
+
readonly responseStream: true;
|
|
49
31
|
readonly requestType: typeof service_slam_v1_slam_pb.GetInternalStateRequest;
|
|
50
32
|
readonly responseType: typeof service_slam_v1_slam_pb.GetInternalStateResponse;
|
|
51
33
|
};
|
|
52
34
|
|
|
53
|
-
type SLAMServiceGetPointCloudMapStream = {
|
|
54
|
-
readonly methodName: string;
|
|
55
|
-
readonly service: typeof SLAMService;
|
|
56
|
-
readonly requestStream: false;
|
|
57
|
-
readonly responseStream: true;
|
|
58
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetPointCloudMapStreamRequest;
|
|
59
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetPointCloudMapStreamResponse;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
type SLAMServiceGetInternalStateStream = {
|
|
63
|
-
readonly methodName: string;
|
|
64
|
-
readonly service: typeof SLAMService;
|
|
65
|
-
readonly requestStream: false;
|
|
66
|
-
readonly responseStream: true;
|
|
67
|
-
readonly requestType: typeof service_slam_v1_slam_pb.GetInternalStateStreamRequest;
|
|
68
|
-
readonly responseType: typeof service_slam_v1_slam_pb.GetInternalStateStreamResponse;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
35
|
type SLAMServiceDoCommand = {
|
|
72
36
|
readonly methodName: string;
|
|
73
37
|
readonly service: typeof SLAMService;
|
|
@@ -80,12 +44,8 @@ type SLAMServiceDoCommand = {
|
|
|
80
44
|
export class SLAMService {
|
|
81
45
|
static readonly serviceName: string;
|
|
82
46
|
static readonly GetPosition: SLAMServiceGetPosition;
|
|
83
|
-
static readonly GetMap: SLAMServiceGetMap;
|
|
84
|
-
static readonly GetPositionNew: SLAMServiceGetPositionNew;
|
|
85
47
|
static readonly GetPointCloudMap: SLAMServiceGetPointCloudMap;
|
|
86
48
|
static readonly GetInternalState: SLAMServiceGetInternalState;
|
|
87
|
-
static readonly GetPointCloudMapStream: SLAMServiceGetPointCloudMapStream;
|
|
88
|
-
static readonly GetInternalStateStream: SLAMServiceGetInternalStateStream;
|
|
89
49
|
static readonly DoCommand: SLAMServiceDoCommand;
|
|
90
50
|
}
|
|
91
51
|
|
|
@@ -130,44 +90,8 @@ export class SLAMServiceClient {
|
|
|
130
90
|
requestMessage: service_slam_v1_slam_pb.GetPositionRequest,
|
|
131
91
|
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPositionResponse|null) => void
|
|
132
92
|
): UnaryResponse;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
metadata: grpc.Metadata,
|
|
136
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetMapResponse|null) => void
|
|
137
|
-
): UnaryResponse;
|
|
138
|
-
getMap(
|
|
139
|
-
requestMessage: service_slam_v1_slam_pb.GetMapRequest,
|
|
140
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetMapResponse|null) => void
|
|
141
|
-
): UnaryResponse;
|
|
142
|
-
getPositionNew(
|
|
143
|
-
requestMessage: service_slam_v1_slam_pb.GetPositionNewRequest,
|
|
144
|
-
metadata: grpc.Metadata,
|
|
145
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPositionNewResponse|null) => void
|
|
146
|
-
): UnaryResponse;
|
|
147
|
-
getPositionNew(
|
|
148
|
-
requestMessage: service_slam_v1_slam_pb.GetPositionNewRequest,
|
|
149
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPositionNewResponse|null) => void
|
|
150
|
-
): UnaryResponse;
|
|
151
|
-
getPointCloudMap(
|
|
152
|
-
requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest,
|
|
153
|
-
metadata: grpc.Metadata,
|
|
154
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPointCloudMapResponse|null) => void
|
|
155
|
-
): UnaryResponse;
|
|
156
|
-
getPointCloudMap(
|
|
157
|
-
requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest,
|
|
158
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetPointCloudMapResponse|null) => void
|
|
159
|
-
): UnaryResponse;
|
|
160
|
-
getInternalState(
|
|
161
|
-
requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest,
|
|
162
|
-
metadata: grpc.Metadata,
|
|
163
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetInternalStateResponse|null) => void
|
|
164
|
-
): UnaryResponse;
|
|
165
|
-
getInternalState(
|
|
166
|
-
requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest,
|
|
167
|
-
callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetInternalStateResponse|null) => void
|
|
168
|
-
): UnaryResponse;
|
|
169
|
-
getPointCloudMapStream(requestMessage: service_slam_v1_slam_pb.GetPointCloudMapStreamRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetPointCloudMapStreamResponse>;
|
|
170
|
-
getInternalStateStream(requestMessage: service_slam_v1_slam_pb.GetInternalStateStreamRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetInternalStateStreamResponse>;
|
|
93
|
+
getPointCloudMap(requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetPointCloudMapResponse>;
|
|
94
|
+
getInternalState(requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetInternalStateResponse>;
|
|
171
95
|
doCommand(
|
|
172
96
|
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
173
97
|
metadata: grpc.Metadata,
|