@viamrobotics/sdk 0.4.0-rc.0 → 0.4.0
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/component/board/v1/board_pb.d.ts +50 -0
- package/dist/gen/component/board/v1/board_pb_service.d.ts +19 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +1 -0
- package/dist/main.es.js +161 -4
- package/dist/main.umd.js +2 -2
- package/dist/services/navigation/client.d.ts +1 -1
- package/package.json +1 -1
|
@@ -405,6 +405,56 @@ export namespace ReadAnalogReaderResponse {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
+
export class WriteAnalogRequest extends jspb.Message {
|
|
409
|
+
getName(): string;
|
|
410
|
+
setName(value: string): void;
|
|
411
|
+
|
|
412
|
+
getPin(): string;
|
|
413
|
+
setPin(value: string): void;
|
|
414
|
+
|
|
415
|
+
getValue(): number;
|
|
416
|
+
setValue(value: number): void;
|
|
417
|
+
|
|
418
|
+
hasExtra(): boolean;
|
|
419
|
+
clearExtra(): void;
|
|
420
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
421
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
422
|
+
|
|
423
|
+
serializeBinary(): Uint8Array;
|
|
424
|
+
toObject(includeInstance?: boolean): WriteAnalogRequest.AsObject;
|
|
425
|
+
static toObject(includeInstance: boolean, msg: WriteAnalogRequest): WriteAnalogRequest.AsObject;
|
|
426
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
427
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
428
|
+
static serializeBinaryToWriter(message: WriteAnalogRequest, writer: jspb.BinaryWriter): void;
|
|
429
|
+
static deserializeBinary(bytes: Uint8Array): WriteAnalogRequest;
|
|
430
|
+
static deserializeBinaryFromReader(message: WriteAnalogRequest, reader: jspb.BinaryReader): WriteAnalogRequest;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export namespace WriteAnalogRequest {
|
|
434
|
+
export type AsObject = {
|
|
435
|
+
name: string,
|
|
436
|
+
pin: string,
|
|
437
|
+
value: number,
|
|
438
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export class WriteAnalogResponse extends jspb.Message {
|
|
443
|
+
serializeBinary(): Uint8Array;
|
|
444
|
+
toObject(includeInstance?: boolean): WriteAnalogResponse.AsObject;
|
|
445
|
+
static toObject(includeInstance: boolean, msg: WriteAnalogResponse): WriteAnalogResponse.AsObject;
|
|
446
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
447
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
448
|
+
static serializeBinaryToWriter(message: WriteAnalogResponse, writer: jspb.BinaryWriter): void;
|
|
449
|
+
static deserializeBinary(bytes: Uint8Array): WriteAnalogResponse;
|
|
450
|
+
static deserializeBinaryFromReader(message: WriteAnalogResponse, reader: jspb.BinaryReader): WriteAnalogResponse;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export namespace WriteAnalogResponse {
|
|
454
|
+
export type AsObject = {
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
408
458
|
export class GetDigitalInterruptValueRequest extends jspb.Message {
|
|
409
459
|
getBoardName(): string;
|
|
410
460
|
setBoardName(value: string): void;
|
|
@@ -86,6 +86,15 @@ type BoardServiceReadAnalogReader = {
|
|
|
86
86
|
readonly responseType: typeof component_board_v1_board_pb.ReadAnalogReaderResponse;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
+
type BoardServiceWriteAnalog = {
|
|
90
|
+
readonly methodName: string;
|
|
91
|
+
readonly service: typeof BoardService;
|
|
92
|
+
readonly requestStream: false;
|
|
93
|
+
readonly responseStream: false;
|
|
94
|
+
readonly requestType: typeof component_board_v1_board_pb.WriteAnalogRequest;
|
|
95
|
+
readonly responseType: typeof component_board_v1_board_pb.WriteAnalogResponse;
|
|
96
|
+
};
|
|
97
|
+
|
|
89
98
|
type BoardServiceGetDigitalInterruptValue = {
|
|
90
99
|
readonly methodName: string;
|
|
91
100
|
readonly service: typeof BoardService;
|
|
@@ -124,6 +133,7 @@ export class BoardService {
|
|
|
124
133
|
static readonly SetPWMFrequency: BoardServiceSetPWMFrequency;
|
|
125
134
|
static readonly DoCommand: BoardServiceDoCommand;
|
|
126
135
|
static readonly ReadAnalogReader: BoardServiceReadAnalogReader;
|
|
136
|
+
static readonly WriteAnalog: BoardServiceWriteAnalog;
|
|
127
137
|
static readonly GetDigitalInterruptValue: BoardServiceGetDigitalInterruptValue;
|
|
128
138
|
static readonly SetPowerMode: BoardServiceSetPowerMode;
|
|
129
139
|
static readonly GetGeometries: BoardServiceGetGeometries;
|
|
@@ -242,6 +252,15 @@ export class BoardServiceClient {
|
|
|
242
252
|
requestMessage: component_board_v1_board_pb.ReadAnalogReaderRequest,
|
|
243
253
|
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.ReadAnalogReaderResponse|null) => void
|
|
244
254
|
): UnaryResponse;
|
|
255
|
+
writeAnalog(
|
|
256
|
+
requestMessage: component_board_v1_board_pb.WriteAnalogRequest,
|
|
257
|
+
metadata: grpc.Metadata,
|
|
258
|
+
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.WriteAnalogResponse|null) => void
|
|
259
|
+
): UnaryResponse;
|
|
260
|
+
writeAnalog(
|
|
261
|
+
requestMessage: component_board_v1_board_pb.WriteAnalogRequest,
|
|
262
|
+
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.WriteAnalogResponse|null) => void
|
|
263
|
+
): UnaryResponse;
|
|
245
264
|
getDigitalInterruptValue(
|
|
246
265
|
requestMessage: component_board_v1_board_pb.GetDigitalInterruptValueRequest,
|
|
247
266
|
metadata: grpc.Metadata,
|
package/dist/main.es.js
CHANGED
|
@@ -26036,7 +26036,7 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
|
|
|
26036
26036
|
var p = duration_pb;
|
|
26037
26037
|
n.object.extend(proto, p);
|
|
26038
26038
|
var t = struct_pb;
|
|
26039
|
-
n.object.extend(proto, t), n.exportSymbol("proto.viam.component.board.v1.GetDigitalInterruptValueRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.GetDigitalInterruptValueResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.GetGPIORequest", null, s), n.exportSymbol("proto.viam.component.board.v1.GetGPIOResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMFrequencyRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMFrequencyResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.PowerMode", null, s), n.exportSymbol("proto.viam.component.board.v1.ReadAnalogReaderRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.ReadAnalogReaderResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetGPIORequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetGPIOResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMFrequencyRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMFrequencyResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPowerModeRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPowerModeResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.StatusRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.StatusResponse", null, s), proto.viam.component.board.v1.StatusRequest = function(o) {
|
|
26039
|
+
n.object.extend(proto, t), n.exportSymbol("proto.viam.component.board.v1.GetDigitalInterruptValueRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.GetDigitalInterruptValueResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.GetGPIORequest", null, s), n.exportSymbol("proto.viam.component.board.v1.GetGPIOResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMFrequencyRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMFrequencyResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.PWMResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.PowerMode", null, s), n.exportSymbol("proto.viam.component.board.v1.ReadAnalogReaderRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.ReadAnalogReaderResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetGPIORequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetGPIOResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMFrequencyRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMFrequencyResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPWMResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPowerModeRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.SetPowerModeResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.StatusRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.StatusResponse", null, s), n.exportSymbol("proto.viam.component.board.v1.WriteAnalogRequest", null, s), n.exportSymbol("proto.viam.component.board.v1.WriteAnalogResponse", null, s), proto.viam.component.board.v1.StatusRequest = function(o) {
|
|
26040
26040
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26041
26041
|
}, n.inherits(proto.viam.component.board.v1.StatusRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.StatusRequest.displayName = "proto.viam.component.board.v1.StatusRequest"), proto.viam.component.board.v1.StatusResponse = function(o) {
|
|
26042
26042
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
@@ -26068,7 +26068,11 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
|
|
|
26068
26068
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26069
26069
|
}, n.inherits(proto.viam.component.board.v1.ReadAnalogReaderRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.ReadAnalogReaderRequest.displayName = "proto.viam.component.board.v1.ReadAnalogReaderRequest"), proto.viam.component.board.v1.ReadAnalogReaderResponse = function(o) {
|
|
26070
26070
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26071
|
-
}, n.inherits(proto.viam.component.board.v1.ReadAnalogReaderResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.ReadAnalogReaderResponse.displayName = "proto.viam.component.board.v1.ReadAnalogReaderResponse"), proto.viam.component.board.v1.
|
|
26071
|
+
}, n.inherits(proto.viam.component.board.v1.ReadAnalogReaderResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.ReadAnalogReaderResponse.displayName = "proto.viam.component.board.v1.ReadAnalogReaderResponse"), proto.viam.component.board.v1.WriteAnalogRequest = function(o) {
|
|
26072
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26073
|
+
}, n.inherits(proto.viam.component.board.v1.WriteAnalogRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.WriteAnalogRequest.displayName = "proto.viam.component.board.v1.WriteAnalogRequest"), proto.viam.component.board.v1.WriteAnalogResponse = function(o) {
|
|
26074
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26075
|
+
}, n.inherits(proto.viam.component.board.v1.WriteAnalogResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.WriteAnalogResponse.displayName = "proto.viam.component.board.v1.WriteAnalogResponse"), proto.viam.component.board.v1.GetDigitalInterruptValueRequest = function(o) {
|
|
26072
26076
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26073
26077
|
}, n.inherits(proto.viam.component.board.v1.GetDigitalInterruptValueRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.board.v1.GetDigitalInterruptValueRequest.displayName = "proto.viam.component.board.v1.GetDigitalInterruptValueRequest"), proto.viam.component.board.v1.GetDigitalInterruptValueResponse = function(o) {
|
|
26074
26078
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
@@ -27043,6 +27047,127 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
|
|
|
27043
27047
|
);
|
|
27044
27048
|
}, proto.viam.component.board.v1.ReadAnalogReaderResponse.prototype.setValue = function(o) {
|
|
27045
27049
|
return e.Message.setProto3IntField(this, 1, o);
|
|
27050
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.board.v1.WriteAnalogRequest.prototype.toObject = function(o) {
|
|
27051
|
+
return proto.viam.component.board.v1.WriteAnalogRequest.toObject(o, this);
|
|
27052
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.toObject = function(o, r) {
|
|
27053
|
+
var u, c = {
|
|
27054
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
27055
|
+
pin: e.Message.getFieldWithDefault(r, 2, ""),
|
|
27056
|
+
value: e.Message.getFieldWithDefault(r, 3, 0),
|
|
27057
|
+
extra: (u = r.getExtra()) && t.Struct.toObject(o, u)
|
|
27058
|
+
};
|
|
27059
|
+
return o && (c.$jspbMessageInstance = r), c;
|
|
27060
|
+
}), proto.viam.component.board.v1.WriteAnalogRequest.deserializeBinary = function(o) {
|
|
27061
|
+
var r = new e.BinaryReader(o), u = new proto.viam.component.board.v1.WriteAnalogRequest();
|
|
27062
|
+
return proto.viam.component.board.v1.WriteAnalogRequest.deserializeBinaryFromReader(u, r);
|
|
27063
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.deserializeBinaryFromReader = function(o, r) {
|
|
27064
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
27065
|
+
var u = r.getFieldNumber();
|
|
27066
|
+
switch (u) {
|
|
27067
|
+
case 1:
|
|
27068
|
+
var c = (
|
|
27069
|
+
/** @type {string} */
|
|
27070
|
+
r.readString()
|
|
27071
|
+
);
|
|
27072
|
+
o.setName(c);
|
|
27073
|
+
break;
|
|
27074
|
+
case 2:
|
|
27075
|
+
var c = (
|
|
27076
|
+
/** @type {string} */
|
|
27077
|
+
r.readString()
|
|
27078
|
+
);
|
|
27079
|
+
o.setPin(c);
|
|
27080
|
+
break;
|
|
27081
|
+
case 3:
|
|
27082
|
+
var c = (
|
|
27083
|
+
/** @type {number} */
|
|
27084
|
+
r.readInt32()
|
|
27085
|
+
);
|
|
27086
|
+
o.setValue(c);
|
|
27087
|
+
break;
|
|
27088
|
+
case 99:
|
|
27089
|
+
var c = new t.Struct();
|
|
27090
|
+
r.readMessage(c, t.Struct.deserializeBinaryFromReader), o.setExtra(c);
|
|
27091
|
+
break;
|
|
27092
|
+
default:
|
|
27093
|
+
r.skipField();
|
|
27094
|
+
break;
|
|
27095
|
+
}
|
|
27096
|
+
}
|
|
27097
|
+
return o;
|
|
27098
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.serializeBinary = function() {
|
|
27099
|
+
var o = new e.BinaryWriter();
|
|
27100
|
+
return proto.viam.component.board.v1.WriteAnalogRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
27101
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.serializeBinaryToWriter = function(o, r) {
|
|
27102
|
+
var u = void 0;
|
|
27103
|
+
u = o.getName(), u.length > 0 && r.writeString(
|
|
27104
|
+
1,
|
|
27105
|
+
u
|
|
27106
|
+
), u = o.getPin(), u.length > 0 && r.writeString(
|
|
27107
|
+
2,
|
|
27108
|
+
u
|
|
27109
|
+
), u = o.getValue(), u !== 0 && r.writeInt32(
|
|
27110
|
+
3,
|
|
27111
|
+
u
|
|
27112
|
+
), u = o.getExtra(), u != null && r.writeMessage(
|
|
27113
|
+
99,
|
|
27114
|
+
u,
|
|
27115
|
+
t.Struct.serializeBinaryToWriter
|
|
27116
|
+
);
|
|
27117
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.getName = function() {
|
|
27118
|
+
return (
|
|
27119
|
+
/** @type {string} */
|
|
27120
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
27121
|
+
);
|
|
27122
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.setName = function(o) {
|
|
27123
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
27124
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.getPin = function() {
|
|
27125
|
+
return (
|
|
27126
|
+
/** @type {string} */
|
|
27127
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
27128
|
+
);
|
|
27129
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.setPin = function(o) {
|
|
27130
|
+
return e.Message.setProto3StringField(this, 2, o);
|
|
27131
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.getValue = function() {
|
|
27132
|
+
return (
|
|
27133
|
+
/** @type {number} */
|
|
27134
|
+
e.Message.getFieldWithDefault(this, 3, 0)
|
|
27135
|
+
);
|
|
27136
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.setValue = function(o) {
|
|
27137
|
+
return e.Message.setProto3IntField(this, 3, o);
|
|
27138
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.getExtra = function() {
|
|
27139
|
+
return (
|
|
27140
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
27141
|
+
e.Message.getWrapperField(this, t.Struct, 99)
|
|
27142
|
+
);
|
|
27143
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.setExtra = function(o) {
|
|
27144
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
27145
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.clearExtra = function() {
|
|
27146
|
+
return this.setExtra(void 0);
|
|
27147
|
+
}, proto.viam.component.board.v1.WriteAnalogRequest.prototype.hasExtra = function() {
|
|
27148
|
+
return e.Message.getField(this, 99) != null;
|
|
27149
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.board.v1.WriteAnalogResponse.prototype.toObject = function(o) {
|
|
27150
|
+
return proto.viam.component.board.v1.WriteAnalogResponse.toObject(o, this);
|
|
27151
|
+
}, proto.viam.component.board.v1.WriteAnalogResponse.toObject = function(o, r) {
|
|
27152
|
+
var u = {};
|
|
27153
|
+
return o && (u.$jspbMessageInstance = r), u;
|
|
27154
|
+
}), proto.viam.component.board.v1.WriteAnalogResponse.deserializeBinary = function(o) {
|
|
27155
|
+
var r = new e.BinaryReader(o), u = new proto.viam.component.board.v1.WriteAnalogResponse();
|
|
27156
|
+
return proto.viam.component.board.v1.WriteAnalogResponse.deserializeBinaryFromReader(u, r);
|
|
27157
|
+
}, proto.viam.component.board.v1.WriteAnalogResponse.deserializeBinaryFromReader = function(o, r) {
|
|
27158
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
27159
|
+
var u = r.getFieldNumber();
|
|
27160
|
+
switch (u) {
|
|
27161
|
+
default:
|
|
27162
|
+
r.skipField();
|
|
27163
|
+
break;
|
|
27164
|
+
}
|
|
27165
|
+
}
|
|
27166
|
+
return o;
|
|
27167
|
+
}, proto.viam.component.board.v1.WriteAnalogResponse.prototype.serializeBinary = function() {
|
|
27168
|
+
var o = new e.BinaryWriter();
|
|
27169
|
+
return proto.viam.component.board.v1.WriteAnalogResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
27170
|
+
}, proto.viam.component.board.v1.WriteAnalogResponse.serializeBinaryToWriter = function(o, r) {
|
|
27046
27171
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.board.v1.GetDigitalInterruptValueRequest.prototype.toObject = function(o) {
|
|
27047
27172
|
return proto.viam.component.board.v1.GetDigitalInterruptValueRequest.toObject(o, this);
|
|
27048
27173
|
}, proto.viam.component.board.v1.GetDigitalInterruptValueRequest.toObject = function(o, r) {
|
|
@@ -27373,6 +27498,14 @@ BoardService.ReadAnalogReader = {
|
|
|
27373
27498
|
requestType: component_board_v1_board_pb.ReadAnalogReaderRequest,
|
|
27374
27499
|
responseType: component_board_v1_board_pb.ReadAnalogReaderResponse
|
|
27375
27500
|
};
|
|
27501
|
+
BoardService.WriteAnalog = {
|
|
27502
|
+
methodName: "WriteAnalog",
|
|
27503
|
+
service: BoardService,
|
|
27504
|
+
requestStream: !1,
|
|
27505
|
+
responseStream: !1,
|
|
27506
|
+
requestType: component_board_v1_board_pb.WriteAnalogRequest,
|
|
27507
|
+
responseType: component_board_v1_board_pb.WriteAnalogResponse
|
|
27508
|
+
};
|
|
27376
27509
|
BoardService.GetDigitalInterruptValue = {
|
|
27377
27510
|
methodName: "GetDigitalInterruptValue",
|
|
27378
27511
|
service: BoardService,
|
|
@@ -27607,6 +27740,29 @@ BoardServiceClient.prototype.readAnalogReader = function i(e, n, s) {
|
|
|
27607
27740
|
}
|
|
27608
27741
|
};
|
|
27609
27742
|
};
|
|
27743
|
+
BoardServiceClient.prototype.writeAnalog = function i(e, n, s) {
|
|
27744
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
27745
|
+
var l = grpc$n.unary(BoardService.WriteAnalog, {
|
|
27746
|
+
request: e,
|
|
27747
|
+
host: this.serviceHost,
|
|
27748
|
+
metadata: n,
|
|
27749
|
+
transport: this.options.transport,
|
|
27750
|
+
debug: this.options.debug,
|
|
27751
|
+
onEnd: function(g) {
|
|
27752
|
+
if (s)
|
|
27753
|
+
if (g.status !== grpc$n.Code.OK) {
|
|
27754
|
+
var p = new Error(g.statusMessage);
|
|
27755
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
27756
|
+
} else
|
|
27757
|
+
s(null, g.message);
|
|
27758
|
+
}
|
|
27759
|
+
});
|
|
27760
|
+
return {
|
|
27761
|
+
cancel: function() {
|
|
27762
|
+
s = null, l.close();
|
|
27763
|
+
}
|
|
27764
|
+
};
|
|
27765
|
+
};
|
|
27610
27766
|
BoardServiceClient.prototype.getDigitalInterruptValue = function i(e, n, s) {
|
|
27611
27767
|
arguments.length === 2 && (s = arguments[1]);
|
|
27612
27768
|
var l = grpc$n.unary(BoardService.GetDigitalInterruptValue, {
|
|
@@ -37210,7 +37366,8 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
37210
37366
|
}, proto.viam.service.navigation.v1.Mode = {
|
|
37211
37367
|
MODE_UNSPECIFIED: 0,
|
|
37212
37368
|
MODE_MANUAL: 1,
|
|
37213
|
-
MODE_WAYPOINT: 2
|
|
37369
|
+
MODE_WAYPOINT: 2,
|
|
37370
|
+
MODE_EXPLORE: 3
|
|
37214
37371
|
}, n.object.extend(i, proto.viam.service.navigation.v1);
|
|
37215
37372
|
})(navigation_pb);
|
|
37216
37373
|
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$8 = common_pb, grpc$e = grpcWebClient_umdExports$1.grpc, NavigationService = function() {
|
|
@@ -54241,7 +54398,7 @@ const concatArrayU8 = (i) => {
|
|
|
54241
54398
|
for (const l of i)
|
|
54242
54399
|
n.set(l, s), s += l.length;
|
|
54243
54400
|
return n;
|
|
54244
|
-
}, version = "0.4.0
|
|
54401
|
+
}, version = "0.4.0";
|
|
54245
54402
|
export {
|
|
54246
54403
|
ArmClient,
|
|
54247
54404
|
BaseClient,
|