@viamrobotics/sdk 0.76.0 → 0.78.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.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/app-client.d.ts +108 -102
  4. package/dist/app/billing-client.d.ts +4 -5
  5. package/dist/app/data-client.d.ts +31 -31
  6. package/dist/app/ml-training-client.d.ts +6 -6
  7. package/dist/components/arm/arm.d.ts +8 -9
  8. package/dist/components/base/base.d.ts +8 -8
  9. package/dist/components/board/board.d.ts +12 -13
  10. package/dist/components/button/button.d.ts +1 -1
  11. package/dist/components/camera/camera.d.ts +2 -2
  12. package/dist/components/encoder/encoder.d.ts +4 -4
  13. package/dist/components/gantry/gantry.d.ts +8 -8
  14. package/dist/components/generic/generic.d.ts +1 -1
  15. package/dist/components/gripper/gripper.d.ts +6 -6
  16. package/dist/components/input-controller/input-controller.d.ts +3 -3
  17. package/dist/components/motor/motor.d.ts +11 -11
  18. package/dist/components/movement-sensor/movement-sensor.d.ts +10 -10
  19. package/dist/components/pose-tracker/pose-tracker.d.ts +1 -1
  20. package/dist/components/power-sensor/power-sensor.d.ts +4 -4
  21. package/dist/components/sensor/sensor.d.ts +1 -1
  22. package/dist/components/servo/servo.d.ts +5 -5
  23. package/dist/components/switch/switch.d.ts +3 -3
  24. package/dist/debug.d.ts +4 -0
  25. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +46 -2
  26. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +234 -10
  27. package/dist/gen/app/v1/app_connect.d.ts +45 -1
  28. package/dist/gen/app/v1/app_pb.d.ts +340 -1
  29. package/dist/gen/app/v1/billing_pb.d.ts +5 -0
  30. package/dist/gen/common/v1/common_pb.d.ts +588 -6
  31. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  32. package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
  33. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +2 -0
  34. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +8 -0
  35. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +6 -0
  36. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +2 -0
  37. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +3 -1
  38. package/dist/gen/opentelemetry/proto/processcontext/v1development/process_context_pb.d.ts +2 -0
  39. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +140 -2
  40. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +2 -0
  41. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +15 -5
  42. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +9 -0
  43. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +25 -0
  44. package/dist/gen/robot/v1/robot_pb.d.ts +67 -3
  45. package/dist/gen/service/motion/v1/motion_connect.d.ts +18 -1
  46. package/dist/gen/service/motion/v1/motion_pb.d.ts +198 -0
  47. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +324 -43
  48. package/dist/gen/service/navigation/v1/navigation_pb.d.ts +2350 -229
  49. package/dist/gen/service/vision/v1/vision_connect.d.ts +15 -1
  50. package/dist/gen/service/vision/v1/vision_pb.d.ts +131 -1
  51. package/dist/main.d.ts +2 -2
  52. package/dist/main.es.js +10919 -8671
  53. package/dist/main.umd.js +9 -9
  54. package/dist/robot/client.d.ts +168 -30
  55. package/dist/services/data-manager/client.d.ts +2 -2
  56. package/dist/services/motion/motion.d.ts +7 -7
  57. package/dist/services/navigation/client.d.ts +32 -11
  58. package/dist/services/navigation/navigation.d.ts +162 -110
  59. package/dist/services/navigation/types.d.ts +36 -5
  60. package/dist/services/navigation.d.ts +1 -1
  61. package/dist/services/slam/slam.d.ts +4 -4
  62. package/dist/services/vision/client.d.ts +4 -1
  63. package/dist/services/vision/types.d.ts +7 -1
  64. package/dist/services/vision/vision.d.ts +29 -8
  65. package/dist/services/vision.d.ts +1 -1
  66. package/package.json +5 -2
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { CaptureAllFromCameraRequest, CaptureAllFromCameraResponse, GetClassificationsFromCameraRequest, GetClassificationsFromCameraResponse, GetClassificationsRequest, GetClassificationsResponse, GetDetectionsFromCameraRequest, GetDetectionsFromCameraResponse, GetDetectionsRequest, GetDetectionsResponse, GetObjectPointCloudsRequest, GetObjectPointCloudsResponse, GetPropertiesRequest, GetPropertiesResponse } from "./vision_pb.js";
6
+ import { CaptureAllFromCameraRequest, CaptureAllFromCameraResponse, GetClassificationsFromCameraRequest, GetClassificationsFromCameraResponse, GetClassificationsRequest, GetClassificationsResponse, GetDetections3DRequest, GetDetections3DResponse, GetDetectionsFromCameraRequest, GetDetectionsFromCameraResponse, GetDetectionsRequest, GetDetectionsResponse, GetObjectPointCloudsRequest, GetObjectPointCloudsResponse, GetPropertiesRequest, GetPropertiesResponse } from "./vision_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
  import { DoCommandRequest, DoCommandResponse, GetStatusRequest, GetStatusResponse } from "../../../common/v1/common_pb.js";
9
9
 
@@ -63,6 +63,20 @@ export declare const VisionService: {
63
63
  readonly O: typeof GetClassificationsResponse,
64
64
  readonly kind: MethodKind.Unary,
65
65
  },
66
+ /**
67
+ * GetDetections3D returns the objects the service perceives through a camera.
68
+ * Each detection is a tree of named transforms carrying the object's shapes,
69
+ * plus class hypotheses. The transforms can be passed unchanged into a frame
70
+ * system or a motion WorldState.
71
+ *
72
+ * @generated from rpc viam.service.vision.v1.VisionService.GetDetections3D
73
+ */
74
+ readonly getDetections3D: {
75
+ readonly name: "GetDetections3D",
76
+ readonly I: typeof GetDetections3DRequest,
77
+ readonly O: typeof GetDetections3DResponse,
78
+ readonly kind: MethodKind.Unary,
79
+ },
66
80
  /**
67
81
  * GetObjectPointClouds returns all the found objects in a pointcloud from a
68
82
  * camera of the underlying robot, as well as the 3-vector center of each of
@@ -5,7 +5,7 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
- import type { PointCloudObject } from "../../../common/v1/common_pb.js";
8
+ import type { PointCloudObject, Transform } from "../../../common/v1/common_pb.js";
9
9
  import type { Image } from "../../../component/camera/v1/camera_pb.js";
10
10
 
11
11
  /**
@@ -435,6 +435,117 @@ export declare class Classification extends Message<Classification> {
435
435
  static equals(a: Classification | PlainMessage<Classification> | undefined, b: Classification | PlainMessage<Classification> | undefined): boolean;
436
436
  }
437
437
 
438
+ /**
439
+ * @generated from message viam.service.vision.v1.GetDetections3DRequest
440
+ */
441
+ export declare class GetDetections3DRequest extends Message<GetDetections3DRequest> {
442
+ /**
443
+ * name of the vision service
444
+ *
445
+ * @generated from field: string name = 1;
446
+ */
447
+ name: string;
448
+
449
+ /**
450
+ * name of the camera to observe
451
+ *
452
+ * @generated from field: string camera_name = 2;
453
+ */
454
+ cameraName: string;
455
+
456
+ /**
457
+ * Additional arguments to the method
458
+ *
459
+ * @generated from field: google.protobuf.Struct extra = 99;
460
+ */
461
+ extra?: Struct;
462
+
463
+ constructor(data?: PartialMessage<GetDetections3DRequest>);
464
+
465
+ static readonly runtime: typeof proto3;
466
+ static readonly typeName = "viam.service.vision.v1.GetDetections3DRequest";
467
+ static readonly fields: FieldList;
468
+
469
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDetections3DRequest;
470
+
471
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDetections3DRequest;
472
+
473
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDetections3DRequest;
474
+
475
+ static equals(a: GetDetections3DRequest | PlainMessage<GetDetections3DRequest> | undefined, b: GetDetections3DRequest | PlainMessage<GetDetections3DRequest> | undefined): boolean;
476
+ }
477
+
478
+ /**
479
+ * @generated from message viam.service.vision.v1.GetDetections3DResponse
480
+ */
481
+ export declare class GetDetections3DResponse extends Message<GetDetections3DResponse> {
482
+ /**
483
+ * one entry per perceived object
484
+ *
485
+ * @generated from field: repeated viam.service.vision.v1.Detection3D detections_3d = 1;
486
+ */
487
+ detections3d: Detection3D[];
488
+
489
+ constructor(data?: PartialMessage<GetDetections3DResponse>);
490
+
491
+ static readonly runtime: typeof proto3;
492
+ static readonly typeName = "viam.service.vision.v1.GetDetections3DResponse";
493
+ static readonly fields: FieldList;
494
+
495
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDetections3DResponse;
496
+
497
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDetections3DResponse;
498
+
499
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDetections3DResponse;
500
+
501
+ static equals(a: GetDetections3DResponse | PlainMessage<GetDetections3DResponse> | undefined, b: GetDetections3DResponse | PlainMessage<GetDetections3DResponse> | undefined): boolean;
502
+ }
503
+
504
+ /**
505
+ * Detection3D is one perceived object, described as a tree of transforms.
506
+ * transforms[0] is the root, parented to a frame the robot already knows (e.g.
507
+ * the camera). Each later transform's parent is the root or an earlier entry.
508
+ * Each physical_object is expressed relative to its own transform's origin.
509
+ *
510
+ * @generated from message viam.service.vision.v1.Detection3D
511
+ */
512
+ export declare class Detection3D extends Message<Detection3D> {
513
+ /**
514
+ * frame tree of this object, root first
515
+ *
516
+ * @generated from field: repeated viam.common.v1.Transform transforms = 1;
517
+ */
518
+ transforms: Transform[];
519
+
520
+ /**
521
+ * class hypotheses for the object
522
+ *
523
+ * @generated from field: repeated viam.service.vision.v1.Classification classifications = 2;
524
+ */
525
+ classifications: Classification[];
526
+
527
+ /**
528
+ * implementation-specific data, e.g. source camera or model name
529
+ *
530
+ * @generated from field: google.protobuf.Struct metadata = 99;
531
+ */
532
+ metadata?: Struct;
533
+
534
+ constructor(data?: PartialMessage<Detection3D>);
535
+
536
+ static readonly runtime: typeof proto3;
537
+ static readonly typeName = "viam.service.vision.v1.Detection3D";
538
+ static readonly fields: FieldList;
539
+
540
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Detection3D;
541
+
542
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Detection3D;
543
+
544
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Detection3D;
545
+
546
+ static equals(a: Detection3D | PlainMessage<Detection3D> | undefined, b: Detection3D | PlainMessage<Detection3D> | undefined): boolean;
547
+ }
548
+
438
549
  /**
439
550
  * @generated from message viam.service.vision.v1.GetObjectPointCloudsRequest
440
551
  */
@@ -592,6 +703,13 @@ export declare class CaptureAllFromCameraRequest extends Message<CaptureAllFromC
592
703
  */
593
704
  returnObjectPointClouds: boolean;
594
705
 
706
+ /**
707
+ * whether or not including 3D detections in the response
708
+ *
709
+ * @generated from field: bool return_detections_3d = 7;
710
+ */
711
+ returnDetections3d: boolean;
712
+
595
713
  /**
596
714
  * @generated from field: google.protobuf.Struct extra = 99;
597
715
  */
@@ -636,6 +754,11 @@ export declare class CaptureAllFromCameraResponse extends Message<CaptureAllFrom
636
754
  */
637
755
  objects: PointCloudObject[];
638
756
 
757
+ /**
758
+ * @generated from field: repeated viam.service.vision.v1.Detection3D detections_3d = 5;
759
+ */
760
+ detections3d: Detection3D[];
761
+
639
762
  /**
640
763
  * @generated from field: google.protobuf.Struct extra = 99;
641
764
  */
@@ -688,6 +811,13 @@ export declare class GetPropertiesResponse extends Message<GetPropertiesResponse
688
811
  */
689
812
  defaultCamera?: string;
690
813
 
814
+ /**
815
+ * whether or not GetDetections3D is supported by the vision service
816
+ *
817
+ * @generated from field: bool detections_3d_supported = 5;
818
+ */
819
+ detections3dSupported: boolean;
820
+
691
821
  constructor(data?: PartialMessage<GetPropertiesResponse>);
692
822
 
693
823
  static readonly runtime: typeof proto3;
package/dist/main.d.ts CHANGED
@@ -256,7 +256,7 @@ export { DataManagerClient, type DataManager } from './services/data-manager';
256
256
  * @group Raw Protobufs
257
257
  */
258
258
  export * as dataManagerApi from './gen/service/datamanager/v1/data_manager_pb';
259
- export { NavigationClient, NavigationPosition, NavigationProperties, Path, Waypoint, type Mode, } from './services/navigation';
259
+ export { NavigationClient, type Costmap, GoalState, type GoalStatus, type Location, MapType, type NavError, NavErrorCode, NavMode, type NavigateRouteOptions, type Plan, type Position, type Progress, type Properties, type Route, type RouteProgress, type Status, type Velocity, type Waypoint, type Zone, } from './services/navigation';
260
260
  /**
261
261
  * Raw Protobuf interfaces for a Navigation service.
262
262
  *
@@ -286,7 +286,7 @@ export { SlamClient, SlamPosition, SlamProperties } from './services/slam';
286
286
  * @group Raw Protobufs
287
287
  */
288
288
  export * as slamApi from './gen/service/slam/v1/slam_pb';
289
- export { Classification, Detection, PointCloudObject, VisionClient } from './services/vision';
289
+ export { Classification, Detection, Detection3D, PointCloudObject, VisionClient, } from './services/vision';
290
290
  /**
291
291
  * Raw Protobuf interfaces for a Vision service.
292
292
  *