@viamrobotics/sdk 0.0.10 → 0.0.11
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/movementsensor/v1/movementsensor_pb.d.ts +52 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb.esm.d.ts +52 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +19 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.esm.d.ts +19 -0
- package/dist/main.es.js +261 -6
- package/dist/main.umd.js +3 -3
- package/package.json +1 -1
|
@@ -290,6 +290,9 @@ export class GetPropertiesResponse extends jspb.Message {
|
|
|
290
290
|
getCompassHeadingSupported(): boolean;
|
|
291
291
|
setCompassHeadingSupported(value: boolean): void;
|
|
292
292
|
|
|
293
|
+
getLinearAccelerationSupported(): boolean;
|
|
294
|
+
setLinearAccelerationSupported(value: boolean): void;
|
|
295
|
+
|
|
293
296
|
serializeBinary(): Uint8Array;
|
|
294
297
|
toObject(includeInstance?: boolean): GetPropertiesResponse.AsObject;
|
|
295
298
|
static toObject(includeInstance: boolean, msg: GetPropertiesResponse): GetPropertiesResponse.AsObject;
|
|
@@ -307,6 +310,7 @@ export namespace GetPropertiesResponse {
|
|
|
307
310
|
orientationSupported: boolean,
|
|
308
311
|
positionSupported: boolean,
|
|
309
312
|
compassHeadingSupported: boolean,
|
|
313
|
+
linearAccelerationSupported: boolean,
|
|
310
314
|
}
|
|
311
315
|
}
|
|
312
316
|
|
|
@@ -355,3 +359,51 @@ export namespace GetAccuracyResponse {
|
|
|
355
359
|
}
|
|
356
360
|
}
|
|
357
361
|
|
|
362
|
+
export class GetLinearAccelerationRequest extends jspb.Message {
|
|
363
|
+
getName(): string;
|
|
364
|
+
setName(value: string): void;
|
|
365
|
+
|
|
366
|
+
hasExtra(): boolean;
|
|
367
|
+
clearExtra(): void;
|
|
368
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
369
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
370
|
+
|
|
371
|
+
serializeBinary(): Uint8Array;
|
|
372
|
+
toObject(includeInstance?: boolean): GetLinearAccelerationRequest.AsObject;
|
|
373
|
+
static toObject(includeInstance: boolean, msg: GetLinearAccelerationRequest): GetLinearAccelerationRequest.AsObject;
|
|
374
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
375
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
376
|
+
static serializeBinaryToWriter(message: GetLinearAccelerationRequest, writer: jspb.BinaryWriter): void;
|
|
377
|
+
static deserializeBinary(bytes: Uint8Array): GetLinearAccelerationRequest;
|
|
378
|
+
static deserializeBinaryFromReader(message: GetLinearAccelerationRequest, reader: jspb.BinaryReader): GetLinearAccelerationRequest;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export namespace GetLinearAccelerationRequest {
|
|
382
|
+
export type AsObject = {
|
|
383
|
+
name: string,
|
|
384
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export class GetLinearAccelerationResponse extends jspb.Message {
|
|
389
|
+
hasLinearAcceleration(): boolean;
|
|
390
|
+
clearLinearAcceleration(): void;
|
|
391
|
+
getLinearAcceleration(): common_v1_common_pb.Vector3 | undefined;
|
|
392
|
+
setLinearAcceleration(value?: common_v1_common_pb.Vector3): void;
|
|
393
|
+
|
|
394
|
+
serializeBinary(): Uint8Array;
|
|
395
|
+
toObject(includeInstance?: boolean): GetLinearAccelerationResponse.AsObject;
|
|
396
|
+
static toObject(includeInstance: boolean, msg: GetLinearAccelerationResponse): GetLinearAccelerationResponse.AsObject;
|
|
397
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
398
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
399
|
+
static serializeBinaryToWriter(message: GetLinearAccelerationResponse, writer: jspb.BinaryWriter): void;
|
|
400
|
+
static deserializeBinary(bytes: Uint8Array): GetLinearAccelerationResponse;
|
|
401
|
+
static deserializeBinaryFromReader(message: GetLinearAccelerationResponse, reader: jspb.BinaryReader): GetLinearAccelerationResponse;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export namespace GetLinearAccelerationResponse {
|
|
405
|
+
export type AsObject = {
|
|
406
|
+
linearAcceleration?: common_v1_common_pb.Vector3.AsObject,
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
@@ -290,6 +290,9 @@ export class GetPropertiesResponse extends jspb.Message {
|
|
|
290
290
|
getCompassHeadingSupported(): boolean;
|
|
291
291
|
setCompassHeadingSupported(value: boolean): void;
|
|
292
292
|
|
|
293
|
+
getLinearAccelerationSupported(): boolean;
|
|
294
|
+
setLinearAccelerationSupported(value: boolean): void;
|
|
295
|
+
|
|
293
296
|
serializeBinary(): Uint8Array;
|
|
294
297
|
toObject(includeInstance?: boolean): GetPropertiesResponse.AsObject;
|
|
295
298
|
static toObject(includeInstance: boolean, msg: GetPropertiesResponse): GetPropertiesResponse.AsObject;
|
|
@@ -307,6 +310,7 @@ export namespace GetPropertiesResponse {
|
|
|
307
310
|
orientationSupported: boolean,
|
|
308
311
|
positionSupported: boolean,
|
|
309
312
|
compassHeadingSupported: boolean,
|
|
313
|
+
linearAccelerationSupported: boolean,
|
|
310
314
|
}
|
|
311
315
|
}
|
|
312
316
|
|
|
@@ -355,3 +359,51 @@ export namespace GetAccuracyResponse {
|
|
|
355
359
|
}
|
|
356
360
|
}
|
|
357
361
|
|
|
362
|
+
export class GetLinearAccelerationRequest extends jspb.Message {
|
|
363
|
+
getName(): string;
|
|
364
|
+
setName(value: string): void;
|
|
365
|
+
|
|
366
|
+
hasExtra(): boolean;
|
|
367
|
+
clearExtra(): void;
|
|
368
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
369
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
370
|
+
|
|
371
|
+
serializeBinary(): Uint8Array;
|
|
372
|
+
toObject(includeInstance?: boolean): GetLinearAccelerationRequest.AsObject;
|
|
373
|
+
static toObject(includeInstance: boolean, msg: GetLinearAccelerationRequest): GetLinearAccelerationRequest.AsObject;
|
|
374
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
375
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
376
|
+
static serializeBinaryToWriter(message: GetLinearAccelerationRequest, writer: jspb.BinaryWriter): void;
|
|
377
|
+
static deserializeBinary(bytes: Uint8Array): GetLinearAccelerationRequest;
|
|
378
|
+
static deserializeBinaryFromReader(message: GetLinearAccelerationRequest, reader: jspb.BinaryReader): GetLinearAccelerationRequest;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export namespace GetLinearAccelerationRequest {
|
|
382
|
+
export type AsObject = {
|
|
383
|
+
name: string,
|
|
384
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export class GetLinearAccelerationResponse extends jspb.Message {
|
|
389
|
+
hasLinearAcceleration(): boolean;
|
|
390
|
+
clearLinearAcceleration(): void;
|
|
391
|
+
getLinearAcceleration(): common_v1_common_pb.Vector3 | undefined;
|
|
392
|
+
setLinearAcceleration(value?: common_v1_common_pb.Vector3): void;
|
|
393
|
+
|
|
394
|
+
serializeBinary(): Uint8Array;
|
|
395
|
+
toObject(includeInstance?: boolean): GetLinearAccelerationResponse.AsObject;
|
|
396
|
+
static toObject(includeInstance: boolean, msg: GetLinearAccelerationResponse): GetLinearAccelerationResponse.AsObject;
|
|
397
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
398
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
399
|
+
static serializeBinaryToWriter(message: GetLinearAccelerationResponse, writer: jspb.BinaryWriter): void;
|
|
400
|
+
static deserializeBinary(bytes: Uint8Array): GetLinearAccelerationResponse;
|
|
401
|
+
static deserializeBinaryFromReader(message: GetLinearAccelerationResponse, reader: jspb.BinaryReader): GetLinearAccelerationResponse;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export namespace GetLinearAccelerationResponse {
|
|
405
|
+
export type AsObject = {
|
|
406
|
+
linearAcceleration?: common_v1_common_pb.Vector3.AsObject,
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
@@ -67,6 +67,15 @@ type MovementSensorServiceGetAccuracy = {
|
|
|
67
67
|
readonly responseType: typeof component_movementsensor_v1_movementsensor_pb.GetAccuracyResponse;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
type MovementSensorServiceGetLinearAcceleration = {
|
|
71
|
+
readonly methodName: string;
|
|
72
|
+
readonly service: typeof MovementSensorService;
|
|
73
|
+
readonly requestStream: false;
|
|
74
|
+
readonly responseStream: false;
|
|
75
|
+
readonly requestType: typeof component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest;
|
|
76
|
+
readonly responseType: typeof component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse;
|
|
77
|
+
};
|
|
78
|
+
|
|
70
79
|
export class MovementSensorService {
|
|
71
80
|
static readonly serviceName: string;
|
|
72
81
|
static readonly GetLinearVelocity: MovementSensorServiceGetLinearVelocity;
|
|
@@ -76,6 +85,7 @@ export class MovementSensorService {
|
|
|
76
85
|
static readonly GetPosition: MovementSensorServiceGetPosition;
|
|
77
86
|
static readonly GetProperties: MovementSensorServiceGetProperties;
|
|
78
87
|
static readonly GetAccuracy: MovementSensorServiceGetAccuracy;
|
|
88
|
+
static readonly GetLinearAcceleration: MovementSensorServiceGetLinearAcceleration;
|
|
79
89
|
}
|
|
80
90
|
|
|
81
91
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -173,5 +183,14 @@ export class MovementSensorServiceClient {
|
|
|
173
183
|
requestMessage: component_movementsensor_v1_movementsensor_pb.GetAccuracyRequest,
|
|
174
184
|
callback: (error: ServiceError|null, responseMessage: component_movementsensor_v1_movementsensor_pb.GetAccuracyResponse|null) => void
|
|
175
185
|
): UnaryResponse;
|
|
186
|
+
getLinearAcceleration(
|
|
187
|
+
requestMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest,
|
|
188
|
+
metadata: grpc.Metadata,
|
|
189
|
+
callback: (error: ServiceError|null, responseMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse|null) => void
|
|
190
|
+
): UnaryResponse;
|
|
191
|
+
getLinearAcceleration(
|
|
192
|
+
requestMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest,
|
|
193
|
+
callback: (error: ServiceError|null, responseMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse|null) => void
|
|
194
|
+
): UnaryResponse;
|
|
176
195
|
}
|
|
177
196
|
|
|
@@ -67,6 +67,15 @@ type MovementSensorServiceGetAccuracy = {
|
|
|
67
67
|
readonly responseType: typeof component_movementsensor_v1_movementsensor_pb.GetAccuracyResponse;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
type MovementSensorServiceGetLinearAcceleration = {
|
|
71
|
+
readonly methodName: string;
|
|
72
|
+
readonly service: typeof MovementSensorService;
|
|
73
|
+
readonly requestStream: false;
|
|
74
|
+
readonly responseStream: false;
|
|
75
|
+
readonly requestType: typeof component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest;
|
|
76
|
+
readonly responseType: typeof component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse;
|
|
77
|
+
};
|
|
78
|
+
|
|
70
79
|
export class MovementSensorService {
|
|
71
80
|
static readonly serviceName: string;
|
|
72
81
|
static readonly GetLinearVelocity: MovementSensorServiceGetLinearVelocity;
|
|
@@ -76,6 +85,7 @@ export class MovementSensorService {
|
|
|
76
85
|
static readonly GetPosition: MovementSensorServiceGetPosition;
|
|
77
86
|
static readonly GetProperties: MovementSensorServiceGetProperties;
|
|
78
87
|
static readonly GetAccuracy: MovementSensorServiceGetAccuracy;
|
|
88
|
+
static readonly GetLinearAcceleration: MovementSensorServiceGetLinearAcceleration;
|
|
79
89
|
}
|
|
80
90
|
|
|
81
91
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -173,5 +183,14 @@ export class MovementSensorServiceClient {
|
|
|
173
183
|
requestMessage: component_movementsensor_v1_movementsensor_pb.GetAccuracyRequest,
|
|
174
184
|
callback: (error: ServiceError|null, responseMessage: component_movementsensor_v1_movementsensor_pb.GetAccuracyResponse|null) => void
|
|
175
185
|
): UnaryResponse;
|
|
186
|
+
getLinearAcceleration(
|
|
187
|
+
requestMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest,
|
|
188
|
+
metadata: grpc.Metadata,
|
|
189
|
+
callback: (error: ServiceError|null, responseMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse|null) => void
|
|
190
|
+
): UnaryResponse;
|
|
191
|
+
getLinearAcceleration(
|
|
192
|
+
requestMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest,
|
|
193
|
+
callback: (error: ServiceError|null, responseMessage: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse|null) => void
|
|
194
|
+
): UnaryResponse;
|
|
176
195
|
}
|
|
177
196
|
|
package/dist/main.es.js
CHANGED
|
@@ -133059,7 +133059,7 @@ var struct_pb$m = {};
|
|
|
133059
133059
|
var i = annotations_pb$m;
|
|
133060
133060
|
r.object.extend(proto, i);
|
|
133061
133061
|
var n = struct_pb$m;
|
|
133062
|
-
r.object.extend(proto, n), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesResponse", null, s), proto.viam.component.movementsensor.v1.GetLinearVelocityRequest = function(p) {
|
|
133062
|
+
r.object.extend(proto, n), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesResponse", null, s), proto.viam.component.movementsensor.v1.GetLinearVelocityRequest = function(p) {
|
|
133063
133063
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
133064
133064
|
}, r.inherits(proto.viam.component.movementsensor.v1.GetLinearVelocityRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.displayName = "proto.viam.component.movementsensor.v1.GetLinearVelocityRequest"), proto.viam.component.movementsensor.v1.GetLinearVelocityResponse = function(p) {
|
|
133065
133065
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
@@ -133087,7 +133087,11 @@ var struct_pb$m = {};
|
|
|
133087
133087
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
133088
133088
|
}, r.inherits(proto.viam.component.movementsensor.v1.GetAccuracyRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetAccuracyRequest.displayName = "proto.viam.component.movementsensor.v1.GetAccuracyRequest"), proto.viam.component.movementsensor.v1.GetAccuracyResponse = function(p) {
|
|
133089
133089
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
133090
|
-
}, r.inherits(proto.viam.component.movementsensor.v1.GetAccuracyResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetAccuracyResponse.displayName = "proto.viam.component.movementsensor.v1.GetAccuracyResponse"),
|
|
133090
|
+
}, r.inherits(proto.viam.component.movementsensor.v1.GetAccuracyResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetAccuracyResponse.displayName = "proto.viam.component.movementsensor.v1.GetAccuracyResponse"), proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest = function(p) {
|
|
133091
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
133092
|
+
}, r.inherits(proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.displayName = "proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest"), proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse = function(p) {
|
|
133093
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
133094
|
+
}, r.inherits(proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.displayName = "proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.prototype.toObject = function(p) {
|
|
133091
133095
|
return proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.toObject(p, this);
|
|
133092
133096
|
}, proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.toObject = function(p, g) {
|
|
133093
133097
|
var l, u = {
|
|
@@ -133636,7 +133640,8 @@ var struct_pb$m = {};
|
|
|
133636
133640
|
angularVelocitySupported: e.Message.getBooleanFieldWithDefault(g, 2, !1),
|
|
133637
133641
|
orientationSupported: e.Message.getBooleanFieldWithDefault(g, 3, !1),
|
|
133638
133642
|
positionSupported: e.Message.getBooleanFieldWithDefault(g, 4, !1),
|
|
133639
|
-
compassHeadingSupported: e.Message.getBooleanFieldWithDefault(g, 5, !1)
|
|
133643
|
+
compassHeadingSupported: e.Message.getBooleanFieldWithDefault(g, 5, !1),
|
|
133644
|
+
linearAccelerationSupported: e.Message.getBooleanFieldWithDefault(g, 6, !1)
|
|
133640
133645
|
};
|
|
133641
133646
|
return p && (l.$jspbMessageInstance = g), l;
|
|
133642
133647
|
}), proto.viam.component.movementsensor.v1.GetPropertiesResponse.deserializeBinary = function(p) {
|
|
@@ -133666,6 +133671,10 @@ var struct_pb$m = {};
|
|
|
133666
133671
|
var u = g.readBool();
|
|
133667
133672
|
p.setCompassHeadingSupported(u);
|
|
133668
133673
|
break;
|
|
133674
|
+
case 6:
|
|
133675
|
+
var u = g.readBool();
|
|
133676
|
+
p.setLinearAccelerationSupported(u);
|
|
133677
|
+
break;
|
|
133669
133678
|
default:
|
|
133670
133679
|
g.skipField();
|
|
133671
133680
|
break;
|
|
@@ -133692,6 +133701,9 @@ var struct_pb$m = {};
|
|
|
133692
133701
|
), l = p.getCompassHeadingSupported(), l && g.writeBool(
|
|
133693
133702
|
5,
|
|
133694
133703
|
l
|
|
133704
|
+
), l = p.getLinearAccelerationSupported(), l && g.writeBool(
|
|
133705
|
+
6,
|
|
133706
|
+
l
|
|
133695
133707
|
);
|
|
133696
133708
|
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.getLinearVelocitySupported = function() {
|
|
133697
133709
|
return e.Message.getBooleanFieldWithDefault(this, 1, !1);
|
|
@@ -133713,6 +133725,10 @@ var struct_pb$m = {};
|
|
|
133713
133725
|
return e.Message.getBooleanFieldWithDefault(this, 5, !1);
|
|
133714
133726
|
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.setCompassHeadingSupported = function(p) {
|
|
133715
133727
|
return e.Message.setProto3BooleanField(this, 5, p);
|
|
133728
|
+
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.getLinearAccelerationSupported = function() {
|
|
133729
|
+
return e.Message.getBooleanFieldWithDefault(this, 6, !1);
|
|
133730
|
+
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.setLinearAccelerationSupported = function(p) {
|
|
133731
|
+
return e.Message.setProto3BooleanField(this, 6, p);
|
|
133716
133732
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetAccuracyRequest.prototype.toObject = function(p) {
|
|
133717
133733
|
return proto.viam.component.movementsensor.v1.GetAccuracyRequest.toObject(p, this);
|
|
133718
133734
|
}, proto.viam.component.movementsensor.v1.GetAccuracyRequest.toObject = function(p, g) {
|
|
@@ -133808,6 +133824,102 @@ var struct_pb$m = {};
|
|
|
133808
133824
|
);
|
|
133809
133825
|
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMmMap = function() {
|
|
133810
133826
|
return this.getAccuracyMmMap().clear(), this;
|
|
133827
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.toObject = function(p) {
|
|
133828
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject(p, this);
|
|
133829
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject = function(p, g) {
|
|
133830
|
+
var l, u = {
|
|
133831
|
+
name: e.Message.getFieldWithDefault(g, 1, ""),
|
|
133832
|
+
extra: (l = g.getExtra()) && n.Struct.toObject(p, l)
|
|
133833
|
+
};
|
|
133834
|
+
return p && (u.$jspbMessageInstance = g), u;
|
|
133835
|
+
}), proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.deserializeBinary = function(p) {
|
|
133836
|
+
var g = new e.BinaryReader(p), l = new proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest();
|
|
133837
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.deserializeBinaryFromReader(l, g);
|
|
133838
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.deserializeBinaryFromReader = function(p, g) {
|
|
133839
|
+
for (; g.nextField() && !g.isEndGroup(); ) {
|
|
133840
|
+
var l = g.getFieldNumber();
|
|
133841
|
+
switch (l) {
|
|
133842
|
+
case 1:
|
|
133843
|
+
var u = g.readString();
|
|
133844
|
+
p.setName(u);
|
|
133845
|
+
break;
|
|
133846
|
+
case 99:
|
|
133847
|
+
var u = new n.Struct();
|
|
133848
|
+
g.readMessage(u, n.Struct.deserializeBinaryFromReader), p.setExtra(u);
|
|
133849
|
+
break;
|
|
133850
|
+
default:
|
|
133851
|
+
g.skipField();
|
|
133852
|
+
break;
|
|
133853
|
+
}
|
|
133854
|
+
}
|
|
133855
|
+
return p;
|
|
133856
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.serializeBinary = function() {
|
|
133857
|
+
var p = new e.BinaryWriter();
|
|
133858
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
133859
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.serializeBinaryToWriter = function(p, g) {
|
|
133860
|
+
var l = void 0;
|
|
133861
|
+
l = p.getName(), l.length > 0 && g.writeString(
|
|
133862
|
+
1,
|
|
133863
|
+
l
|
|
133864
|
+
), l = p.getExtra(), l != null && g.writeMessage(
|
|
133865
|
+
99,
|
|
133866
|
+
l,
|
|
133867
|
+
n.Struct.serializeBinaryToWriter
|
|
133868
|
+
);
|
|
133869
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.getName = function() {
|
|
133870
|
+
return e.Message.getFieldWithDefault(this, 1, "");
|
|
133871
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.setName = function(p) {
|
|
133872
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
133873
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.getExtra = function() {
|
|
133874
|
+
return e.Message.getWrapperField(this, n.Struct, 99);
|
|
133875
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.setExtra = function(p) {
|
|
133876
|
+
return e.Message.setWrapperField(this, 99, p);
|
|
133877
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.clearExtra = function() {
|
|
133878
|
+
return this.setExtra(void 0);
|
|
133879
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.hasExtra = function() {
|
|
133880
|
+
return e.Message.getField(this, 99) != null;
|
|
133881
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.toObject = function(p) {
|
|
133882
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.toObject(p, this);
|
|
133883
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.toObject = function(p, g) {
|
|
133884
|
+
var l, u = {
|
|
133885
|
+
linearAcceleration: (l = g.getLinearAcceleration()) && t.Vector3.toObject(p, l)
|
|
133886
|
+
};
|
|
133887
|
+
return p && (u.$jspbMessageInstance = g), u;
|
|
133888
|
+
}), proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.deserializeBinary = function(p) {
|
|
133889
|
+
var g = new e.BinaryReader(p), l = new proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse();
|
|
133890
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.deserializeBinaryFromReader(l, g);
|
|
133891
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.deserializeBinaryFromReader = function(p, g) {
|
|
133892
|
+
for (; g.nextField() && !g.isEndGroup(); ) {
|
|
133893
|
+
var l = g.getFieldNumber();
|
|
133894
|
+
switch (l) {
|
|
133895
|
+
case 1:
|
|
133896
|
+
var u = new t.Vector3();
|
|
133897
|
+
g.readMessage(u, t.Vector3.deserializeBinaryFromReader), p.setLinearAcceleration(u);
|
|
133898
|
+
break;
|
|
133899
|
+
default:
|
|
133900
|
+
g.skipField();
|
|
133901
|
+
break;
|
|
133902
|
+
}
|
|
133903
|
+
}
|
|
133904
|
+
return p;
|
|
133905
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.serializeBinary = function() {
|
|
133906
|
+
var p = new e.BinaryWriter();
|
|
133907
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
133908
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.serializeBinaryToWriter = function(p, g) {
|
|
133909
|
+
var l = void 0;
|
|
133910
|
+
l = p.getLinearAcceleration(), l != null && g.writeMessage(
|
|
133911
|
+
1,
|
|
133912
|
+
l,
|
|
133913
|
+
t.Vector3.serializeBinaryToWriter
|
|
133914
|
+
);
|
|
133915
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.getLinearAcceleration = function() {
|
|
133916
|
+
return e.Message.getWrapperField(this, t.Vector3, 1);
|
|
133917
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.setLinearAcceleration = function(p) {
|
|
133918
|
+
return e.Message.setWrapperField(this, 1, p);
|
|
133919
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.clearLinearAcceleration = function() {
|
|
133920
|
+
return this.setLinearAcceleration(void 0);
|
|
133921
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.hasLinearAcceleration = function() {
|
|
133922
|
+
return e.Message.getField(this, 1) != null;
|
|
133811
133923
|
}, r.object.extend(o, proto.viam.component.movementsensor.v1);
|
|
133812
133924
|
})(movementsensor_pb$1);
|
|
133813
133925
|
var grpcWebClient$7 = {};
|
|
@@ -134625,6 +134737,14 @@ MovementSensorService.GetAccuracy = {
|
|
|
134625
134737
|
requestType: component_movementsensor_v1_movementsensor_pb.GetAccuracyRequest,
|
|
134626
134738
|
responseType: component_movementsensor_v1_movementsensor_pb.GetAccuracyResponse
|
|
134627
134739
|
};
|
|
134740
|
+
MovementSensorService.GetLinearAcceleration = {
|
|
134741
|
+
methodName: "GetLinearAcceleration",
|
|
134742
|
+
service: MovementSensorService,
|
|
134743
|
+
requestStream: !1,
|
|
134744
|
+
responseStream: !1,
|
|
134745
|
+
requestType: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationRequest,
|
|
134746
|
+
responseType: component_movementsensor_v1_movementsensor_pb.GetLinearAccelerationResponse
|
|
134747
|
+
};
|
|
134628
134748
|
function MovementSensorServiceClient(o, e) {
|
|
134629
134749
|
this.serviceHost = o, this.options = e || {};
|
|
134630
134750
|
}
|
|
@@ -134789,6 +134909,29 @@ MovementSensorServiceClient.prototype.getAccuracy = function o(e, r, s) {
|
|
|
134789
134909
|
}
|
|
134790
134910
|
};
|
|
134791
134911
|
};
|
|
134912
|
+
MovementSensorServiceClient.prototype.getLinearAcceleration = function o(e, r, s) {
|
|
134913
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
134914
|
+
var t = grpc$7.unary(MovementSensorService.GetLinearAcceleration, {
|
|
134915
|
+
request: e,
|
|
134916
|
+
host: this.serviceHost,
|
|
134917
|
+
metadata: r,
|
|
134918
|
+
transport: this.options.transport,
|
|
134919
|
+
debug: this.options.debug,
|
|
134920
|
+
onEnd: function(i) {
|
|
134921
|
+
if (s)
|
|
134922
|
+
if (i.status !== grpc$7.Code.OK) {
|
|
134923
|
+
var n = new Error(i.statusMessage);
|
|
134924
|
+
n.code = i.status, n.metadata = i.trailers, s(n, null);
|
|
134925
|
+
} else
|
|
134926
|
+
s(null, i.message);
|
|
134927
|
+
}
|
|
134928
|
+
});
|
|
134929
|
+
return {
|
|
134930
|
+
cancel: function() {
|
|
134931
|
+
s = null, t.close();
|
|
134932
|
+
}
|
|
134933
|
+
};
|
|
134934
|
+
};
|
|
134792
134935
|
var MovementSensorServiceClient_1 = MovementSensorServiceClient, commonjsGlobal$o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, navigation_pb$1 = {}, googleProtobuf$o = {};
|
|
134793
134936
|
(function(exports) {
|
|
134794
134937
|
var $jscomp = $jscomp || {};
|
|
@@ -320697,7 +320840,7 @@ var struct_pb$5 = {};
|
|
|
320697
320840
|
var i = annotations_pb$5;
|
|
320698
320841
|
r.object.extend(proto, i);
|
|
320699
320842
|
var n = struct_pb$5;
|
|
320700
|
-
r.object.extend(proto, n), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesResponse", null, s), proto.viam.component.movementsensor.v1.GetLinearVelocityRequest = function(p) {
|
|
320843
|
+
r.object.extend(proto, n), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAccuracyResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetAngularVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetCompassHeadingResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetLinearVelocityResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetOrientationResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPositionResponse", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesRequest", null, s), r.exportSymbol("proto.viam.component.movementsensor.v1.GetPropertiesResponse", null, s), proto.viam.component.movementsensor.v1.GetLinearVelocityRequest = function(p) {
|
|
320701
320844
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
320702
320845
|
}, r.inherits(proto.viam.component.movementsensor.v1.GetLinearVelocityRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.displayName = "proto.viam.component.movementsensor.v1.GetLinearVelocityRequest"), proto.viam.component.movementsensor.v1.GetLinearVelocityResponse = function(p) {
|
|
320703
320846
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
@@ -320725,7 +320868,11 @@ var struct_pb$5 = {};
|
|
|
320725
320868
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
320726
320869
|
}, r.inherits(proto.viam.component.movementsensor.v1.GetAccuracyRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetAccuracyRequest.displayName = "proto.viam.component.movementsensor.v1.GetAccuracyRequest"), proto.viam.component.movementsensor.v1.GetAccuracyResponse = function(p) {
|
|
320727
320870
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
320728
|
-
}, r.inherits(proto.viam.component.movementsensor.v1.GetAccuracyResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetAccuracyResponse.displayName = "proto.viam.component.movementsensor.v1.GetAccuracyResponse"),
|
|
320871
|
+
}, r.inherits(proto.viam.component.movementsensor.v1.GetAccuracyResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetAccuracyResponse.displayName = "proto.viam.component.movementsensor.v1.GetAccuracyResponse"), proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest = function(p) {
|
|
320872
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
320873
|
+
}, r.inherits(proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.displayName = "proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest"), proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse = function(p) {
|
|
320874
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
320875
|
+
}, r.inherits(proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.displayName = "proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.prototype.toObject = function(p) {
|
|
320729
320876
|
return proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.toObject(p, this);
|
|
320730
320877
|
}, proto.viam.component.movementsensor.v1.GetLinearVelocityRequest.toObject = function(p, g) {
|
|
320731
320878
|
var l, u = {
|
|
@@ -321274,7 +321421,8 @@ var struct_pb$5 = {};
|
|
|
321274
321421
|
angularVelocitySupported: e.Message.getBooleanFieldWithDefault(g, 2, !1),
|
|
321275
321422
|
orientationSupported: e.Message.getBooleanFieldWithDefault(g, 3, !1),
|
|
321276
321423
|
positionSupported: e.Message.getBooleanFieldWithDefault(g, 4, !1),
|
|
321277
|
-
compassHeadingSupported: e.Message.getBooleanFieldWithDefault(g, 5, !1)
|
|
321424
|
+
compassHeadingSupported: e.Message.getBooleanFieldWithDefault(g, 5, !1),
|
|
321425
|
+
linearAccelerationSupported: e.Message.getBooleanFieldWithDefault(g, 6, !1)
|
|
321278
321426
|
};
|
|
321279
321427
|
return p && (l.$jspbMessageInstance = g), l;
|
|
321280
321428
|
}), proto.viam.component.movementsensor.v1.GetPropertiesResponse.deserializeBinary = function(p) {
|
|
@@ -321304,6 +321452,10 @@ var struct_pb$5 = {};
|
|
|
321304
321452
|
var u = g.readBool();
|
|
321305
321453
|
p.setCompassHeadingSupported(u);
|
|
321306
321454
|
break;
|
|
321455
|
+
case 6:
|
|
321456
|
+
var u = g.readBool();
|
|
321457
|
+
p.setLinearAccelerationSupported(u);
|
|
321458
|
+
break;
|
|
321307
321459
|
default:
|
|
321308
321460
|
g.skipField();
|
|
321309
321461
|
break;
|
|
@@ -321330,6 +321482,9 @@ var struct_pb$5 = {};
|
|
|
321330
321482
|
), l = p.getCompassHeadingSupported(), l && g.writeBool(
|
|
321331
321483
|
5,
|
|
321332
321484
|
l
|
|
321485
|
+
), l = p.getLinearAccelerationSupported(), l && g.writeBool(
|
|
321486
|
+
6,
|
|
321487
|
+
l
|
|
321333
321488
|
);
|
|
321334
321489
|
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.getLinearVelocitySupported = function() {
|
|
321335
321490
|
return e.Message.getBooleanFieldWithDefault(this, 1, !1);
|
|
@@ -321351,6 +321506,10 @@ var struct_pb$5 = {};
|
|
|
321351
321506
|
return e.Message.getBooleanFieldWithDefault(this, 5, !1);
|
|
321352
321507
|
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.setCompassHeadingSupported = function(p) {
|
|
321353
321508
|
return e.Message.setProto3BooleanField(this, 5, p);
|
|
321509
|
+
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.getLinearAccelerationSupported = function() {
|
|
321510
|
+
return e.Message.getBooleanFieldWithDefault(this, 6, !1);
|
|
321511
|
+
}, proto.viam.component.movementsensor.v1.GetPropertiesResponse.prototype.setLinearAccelerationSupported = function(p) {
|
|
321512
|
+
return e.Message.setProto3BooleanField(this, 6, p);
|
|
321354
321513
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetAccuracyRequest.prototype.toObject = function(p) {
|
|
321355
321514
|
return proto.viam.component.movementsensor.v1.GetAccuracyRequest.toObject(p, this);
|
|
321356
321515
|
}, proto.viam.component.movementsensor.v1.GetAccuracyRequest.toObject = function(p, g) {
|
|
@@ -321446,6 +321605,102 @@ var struct_pb$5 = {};
|
|
|
321446
321605
|
);
|
|
321447
321606
|
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMmMap = function() {
|
|
321448
321607
|
return this.getAccuracyMmMap().clear(), this;
|
|
321608
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.toObject = function(p) {
|
|
321609
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject(p, this);
|
|
321610
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject = function(p, g) {
|
|
321611
|
+
var l, u = {
|
|
321612
|
+
name: e.Message.getFieldWithDefault(g, 1, ""),
|
|
321613
|
+
extra: (l = g.getExtra()) && n.Struct.toObject(p, l)
|
|
321614
|
+
};
|
|
321615
|
+
return p && (u.$jspbMessageInstance = g), u;
|
|
321616
|
+
}), proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.deserializeBinary = function(p) {
|
|
321617
|
+
var g = new e.BinaryReader(p), l = new proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest();
|
|
321618
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.deserializeBinaryFromReader(l, g);
|
|
321619
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.deserializeBinaryFromReader = function(p, g) {
|
|
321620
|
+
for (; g.nextField() && !g.isEndGroup(); ) {
|
|
321621
|
+
var l = g.getFieldNumber();
|
|
321622
|
+
switch (l) {
|
|
321623
|
+
case 1:
|
|
321624
|
+
var u = g.readString();
|
|
321625
|
+
p.setName(u);
|
|
321626
|
+
break;
|
|
321627
|
+
case 99:
|
|
321628
|
+
var u = new n.Struct();
|
|
321629
|
+
g.readMessage(u, n.Struct.deserializeBinaryFromReader), p.setExtra(u);
|
|
321630
|
+
break;
|
|
321631
|
+
default:
|
|
321632
|
+
g.skipField();
|
|
321633
|
+
break;
|
|
321634
|
+
}
|
|
321635
|
+
}
|
|
321636
|
+
return p;
|
|
321637
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.serializeBinary = function() {
|
|
321638
|
+
var p = new e.BinaryWriter();
|
|
321639
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
321640
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.serializeBinaryToWriter = function(p, g) {
|
|
321641
|
+
var l = void 0;
|
|
321642
|
+
l = p.getName(), l.length > 0 && g.writeString(
|
|
321643
|
+
1,
|
|
321644
|
+
l
|
|
321645
|
+
), l = p.getExtra(), l != null && g.writeMessage(
|
|
321646
|
+
99,
|
|
321647
|
+
l,
|
|
321648
|
+
n.Struct.serializeBinaryToWriter
|
|
321649
|
+
);
|
|
321650
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.getName = function() {
|
|
321651
|
+
return e.Message.getFieldWithDefault(this, 1, "");
|
|
321652
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.setName = function(p) {
|
|
321653
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
321654
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.getExtra = function() {
|
|
321655
|
+
return e.Message.getWrapperField(this, n.Struct, 99);
|
|
321656
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.setExtra = function(p) {
|
|
321657
|
+
return e.Message.setWrapperField(this, 99, p);
|
|
321658
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.clearExtra = function() {
|
|
321659
|
+
return this.setExtra(void 0);
|
|
321660
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.hasExtra = function() {
|
|
321661
|
+
return e.Message.getField(this, 99) != null;
|
|
321662
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.toObject = function(p) {
|
|
321663
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.toObject(p, this);
|
|
321664
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.toObject = function(p, g) {
|
|
321665
|
+
var l, u = {
|
|
321666
|
+
linearAcceleration: (l = g.getLinearAcceleration()) && t.Vector3.toObject(p, l)
|
|
321667
|
+
};
|
|
321668
|
+
return p && (u.$jspbMessageInstance = g), u;
|
|
321669
|
+
}), proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.deserializeBinary = function(p) {
|
|
321670
|
+
var g = new e.BinaryReader(p), l = new proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse();
|
|
321671
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.deserializeBinaryFromReader(l, g);
|
|
321672
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.deserializeBinaryFromReader = function(p, g) {
|
|
321673
|
+
for (; g.nextField() && !g.isEndGroup(); ) {
|
|
321674
|
+
var l = g.getFieldNumber();
|
|
321675
|
+
switch (l) {
|
|
321676
|
+
case 1:
|
|
321677
|
+
var u = new t.Vector3();
|
|
321678
|
+
g.readMessage(u, t.Vector3.deserializeBinaryFromReader), p.setLinearAcceleration(u);
|
|
321679
|
+
break;
|
|
321680
|
+
default:
|
|
321681
|
+
g.skipField();
|
|
321682
|
+
break;
|
|
321683
|
+
}
|
|
321684
|
+
}
|
|
321685
|
+
return p;
|
|
321686
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.serializeBinary = function() {
|
|
321687
|
+
var p = new e.BinaryWriter();
|
|
321688
|
+
return proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
321689
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.serializeBinaryToWriter = function(p, g) {
|
|
321690
|
+
var l = void 0;
|
|
321691
|
+
l = p.getLinearAcceleration(), l != null && g.writeMessage(
|
|
321692
|
+
1,
|
|
321693
|
+
l,
|
|
321694
|
+
t.Vector3.serializeBinaryToWriter
|
|
321695
|
+
);
|
|
321696
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.getLinearAcceleration = function() {
|
|
321697
|
+
return e.Message.getWrapperField(this, t.Vector3, 1);
|
|
321698
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.setLinearAcceleration = function(p) {
|
|
321699
|
+
return e.Message.setWrapperField(this, 1, p);
|
|
321700
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.clearLinearAcceleration = function() {
|
|
321701
|
+
return this.setLinearAcceleration(void 0);
|
|
321702
|
+
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationResponse.prototype.hasLinearAcceleration = function() {
|
|
321703
|
+
return e.Message.getField(this, 1) != null;
|
|
321449
321704
|
}, r.object.extend(o, proto.viam.component.movementsensor.v1);
|
|
321450
321705
|
})(movementsensor_pb);
|
|
321451
321706
|
var commonjsGlobal$4 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, navigation_pb = {}, googleProtobuf$4 = {};
|