@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.
- package/README.md +1 -1
- package/dist/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +108 -102
- package/dist/app/billing-client.d.ts +4 -5
- package/dist/app/data-client.d.ts +31 -31
- package/dist/app/ml-training-client.d.ts +6 -6
- package/dist/components/arm/arm.d.ts +8 -9
- package/dist/components/base/base.d.ts +8 -8
- package/dist/components/board/board.d.ts +12 -13
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/camera/camera.d.ts +2 -2
- package/dist/components/encoder/encoder.d.ts +4 -4
- package/dist/components/gantry/gantry.d.ts +8 -8
- package/dist/components/generic/generic.d.ts +1 -1
- package/dist/components/gripper/gripper.d.ts +6 -6
- package/dist/components/input-controller/input-controller.d.ts +3 -3
- package/dist/components/motor/motor.d.ts +11 -11
- package/dist/components/movement-sensor/movement-sensor.d.ts +10 -10
- package/dist/components/pose-tracker/pose-tracker.d.ts +1 -1
- package/dist/components/power-sensor/power-sensor.d.ts +4 -4
- package/dist/components/sensor/sensor.d.ts +1 -1
- package/dist/components/servo/servo.d.ts +5 -5
- package/dist/components/switch/switch.d.ts +3 -3
- package/dist/debug.d.ts +4 -0
- package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +46 -2
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +234 -10
- package/dist/gen/app/v1/app_connect.d.ts +45 -1
- package/dist/gen/app/v1/app_pb.d.ts +340 -1
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/gen/common/v1/common_pb.d.ts +588 -6
- package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
- package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +8 -0
- package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +6 -0
- package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +3 -1
- package/dist/gen/opentelemetry/proto/processcontext/v1development/process_context_pb.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +140 -2
- package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +15 -5
- package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +9 -0
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +25 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +67 -3
- package/dist/gen/service/motion/v1/motion_connect.d.ts +18 -1
- package/dist/gen/service/motion/v1/motion_pb.d.ts +198 -0
- package/dist/gen/service/navigation/v1/navigation_connect.d.ts +324 -43
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +2350 -229
- package/dist/gen/service/vision/v1/vision_connect.d.ts +15 -1
- package/dist/gen/service/vision/v1/vision_pb.d.ts +131 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.es.js +10919 -8671
- package/dist/main.umd.js +9 -9
- package/dist/robot/client.d.ts +168 -30
- package/dist/services/data-manager/client.d.ts +2 -2
- package/dist/services/motion/motion.d.ts +7 -7
- package/dist/services/navigation/client.d.ts +32 -11
- package/dist/services/navigation/navigation.d.ts +162 -110
- package/dist/services/navigation/types.d.ts +36 -5
- package/dist/services/navigation.d.ts +1 -1
- package/dist/services/slam/slam.d.ts +4 -4
- package/dist/services/vision/client.d.ts +4 -1
- package/dist/services/vision/types.d.ts +7 -1
- package/dist/services/vision/vision.d.ts +29 -8
- package/dist/services/vision.d.ts +1 -1
- package/package.json +5 -2
|
@@ -18,7 +18,7 @@ export interface Encoder extends Resource {
|
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
* For more information, see [Encoder
|
|
21
|
-
* API](https://docs.viam.com/
|
|
21
|
+
* API](https://docs.viam.com/reference/apis/components/encoder/#getgeometries).
|
|
22
22
|
*/
|
|
23
23
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ export interface Encoder extends Resource {
|
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* For more information, see [Encoder
|
|
37
|
-
* API](https://docs.viam.com/
|
|
37
|
+
* API](https://docs.viam.com/reference/apis/components/encoder/#resetposition).
|
|
38
38
|
*/
|
|
39
39
|
resetPosition(extra?: Struct): Promise<void>;
|
|
40
40
|
/**
|
|
@@ -50,7 +50,7 @@ export interface Encoder extends Resource {
|
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
52
|
* For more information, see [Encoder
|
|
53
|
-
* API](https://docs.viam.com/
|
|
53
|
+
* API](https://docs.viam.com/reference/apis/components/encoder/#getproperties).
|
|
54
54
|
*/
|
|
55
55
|
getProperties(extra?: Struct): Promise<EncoderProperties>;
|
|
56
56
|
/**
|
|
@@ -70,7 +70,7 @@ export interface Encoder extends Resource {
|
|
|
70
70
|
* ```
|
|
71
71
|
*
|
|
72
72
|
* For more information, see [Encoder
|
|
73
|
-
* API](https://docs.viam.com/
|
|
73
|
+
* API](https://docs.viam.com/reference/apis/components/encoder/#getposition).
|
|
74
74
|
*
|
|
75
75
|
* @param positionType - The type of position the encoder returns (ticks or degrees)
|
|
76
76
|
*/
|
|
@@ -17,7 +17,7 @@ export interface Gantry extends Resource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
19
|
* For more information, see [Gantry
|
|
20
|
-
* API](https://docs.viam.com/
|
|
20
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#getgeometries).
|
|
21
21
|
*/
|
|
22
22
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
23
23
|
/**
|
|
@@ -33,7 +33,7 @@ export interface Gantry extends Resource {
|
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* For more information, see [Gantry
|
|
36
|
-
* API](https://docs.viam.com/
|
|
36
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#getkinematics).
|
|
37
37
|
*
|
|
38
38
|
* @returns The legacy kinematics data shape or the newer object containing kinematics data plus a
|
|
39
39
|
* map of URDF mesh file paths to mesh data.
|
|
@@ -56,7 +56,7 @@ export interface Gantry extends Resource {
|
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
58
|
* For more information, see [Gantry
|
|
59
|
-
* API](https://docs.viam.com/
|
|
59
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#movetoposition).
|
|
60
60
|
*
|
|
61
61
|
* @param positionsMm - The goal positions for each axis of the gantry.
|
|
62
62
|
* @param speedsMmPerSec - The desired speed for each axis to move to the respective position in
|
|
@@ -76,7 +76,7 @@ export interface Gantry extends Resource {
|
|
|
76
76
|
* ```
|
|
77
77
|
*
|
|
78
78
|
* For more information, see [Gantry
|
|
79
|
-
* API](https://docs.viam.com/
|
|
79
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#getposition).
|
|
80
80
|
*
|
|
81
81
|
* @returns A list of the current position of each axis in millimeters.
|
|
82
82
|
*/
|
|
@@ -94,7 +94,7 @@ export interface Gantry extends Resource {
|
|
|
94
94
|
* ```
|
|
95
95
|
*
|
|
96
96
|
* For more information, see [Gantry
|
|
97
|
-
* API](https://docs.viam.com/
|
|
97
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#home).
|
|
98
98
|
*
|
|
99
99
|
* @returns A bool representing whether the gantry has run the homing sequence successfully.
|
|
100
100
|
*/
|
|
@@ -112,7 +112,7 @@ export interface Gantry extends Resource {
|
|
|
112
112
|
* ```
|
|
113
113
|
*
|
|
114
114
|
* For more information, see [Gantry
|
|
115
|
-
* API](https://docs.viam.com/
|
|
115
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#getlengths).
|
|
116
116
|
*
|
|
117
117
|
* @returns A list of the length of each axis in millimeters.
|
|
118
118
|
*/
|
|
@@ -130,7 +130,7 @@ export interface Gantry extends Resource {
|
|
|
130
130
|
* ```
|
|
131
131
|
*
|
|
132
132
|
* For more information, see [Gantry
|
|
133
|
-
* API](https://docs.viam.com/
|
|
133
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#stop).
|
|
134
134
|
*/
|
|
135
135
|
stop: (extra?: Struct) => Promise<void>;
|
|
136
136
|
/**
|
|
@@ -147,7 +147,7 @@ export interface Gantry extends Resource {
|
|
|
147
147
|
* ```
|
|
148
148
|
*
|
|
149
149
|
* For more information, see [Gantry
|
|
150
|
-
* API](https://docs.viam.com/
|
|
150
|
+
* API](https://docs.viam.com/reference/apis/components/gantry/#ismoving).
|
|
151
151
|
*/
|
|
152
152
|
isMoving: () => Promise<boolean>;
|
|
153
153
|
}
|
|
@@ -16,7 +16,7 @@ export interface Generic extends Resource {
|
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
18
|
* For more information, see [Generic
|
|
19
|
-
* API](https://docs.viam.com/
|
|
19
|
+
* API](https://docs.viam.com/reference/apis/components/generic/#getgeometries).
|
|
20
20
|
*/
|
|
21
21
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
22
22
|
}
|
|
@@ -17,7 +17,7 @@ export interface Gripper extends Resource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
19
|
* For more information, see [Gripper
|
|
20
|
-
* API](https://docs.viam.com/
|
|
20
|
+
* API](https://docs.viam.com/reference/apis/components/gripper/#getgeometries).
|
|
21
21
|
*/
|
|
22
22
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
23
23
|
/**
|
|
@@ -33,7 +33,7 @@ export interface Gripper extends Resource {
|
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* For more information, see [Gripper
|
|
36
|
-
* API](https://docs.viam.com/
|
|
36
|
+
* API](https://docs.viam.com/reference/apis/components/gripper/#open).
|
|
37
37
|
*/
|
|
38
38
|
open: (extra?: Struct) => Promise<void>;
|
|
39
39
|
/**
|
|
@@ -49,7 +49,7 @@ export interface Gripper extends Resource {
|
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* For more information, see [Gripper
|
|
52
|
-
* API](https://docs.viam.com/
|
|
52
|
+
* API](https://docs.viam.com/reference/apis/components/gripper/#grab).
|
|
53
53
|
*/
|
|
54
54
|
grab: (extra?: Struct) => Promise<void>;
|
|
55
55
|
/**
|
|
@@ -65,7 +65,7 @@ export interface Gripper extends Resource {
|
|
|
65
65
|
* ```
|
|
66
66
|
*
|
|
67
67
|
* For more information, see [Gripper
|
|
68
|
-
* API](https://docs.viam.com/
|
|
68
|
+
* API](https://docs.viam.com/reference/apis/components/gripper/#stop).
|
|
69
69
|
*/
|
|
70
70
|
stop: (extra?: Struct) => Promise<void>;
|
|
71
71
|
/**
|
|
@@ -82,7 +82,7 @@ export interface Gripper extends Resource {
|
|
|
82
82
|
* ```
|
|
83
83
|
*
|
|
84
84
|
* For more information, see [Gripper
|
|
85
|
-
* API](https://docs.viam.com/
|
|
85
|
+
* API](https://docs.viam.com/reference/apis/components/gripper/#ismoving).
|
|
86
86
|
*/
|
|
87
87
|
isMoving: () => Promise<boolean>;
|
|
88
88
|
/**
|
|
@@ -99,7 +99,7 @@ export interface Gripper extends Resource {
|
|
|
99
99
|
* ```
|
|
100
100
|
*
|
|
101
101
|
* For more information, see [Gripper
|
|
102
|
-
* API](https://docs.viam.com/
|
|
102
|
+
* API](https://docs.viam.com/reference/apis/components/gripper/#isholdingsomething).
|
|
103
103
|
*/
|
|
104
104
|
isHoldingSomething: (extra?: Struct) => Promise<boolean>;
|
|
105
105
|
/**
|
|
@@ -17,7 +17,7 @@ export interface InputController extends Resource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
19
|
* For more information, see [Input Controller
|
|
20
|
-
* API](https://docs.viam.com/
|
|
20
|
+
* API](https://docs.viam.com/reference/apis/components/input-controller/#getgeometries).
|
|
21
21
|
*/
|
|
22
22
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
23
23
|
/**
|
|
@@ -34,7 +34,7 @@ export interface InputController extends Resource {
|
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* For more information, see [Input Controller
|
|
37
|
-
* API](https://docs.viam.com/
|
|
37
|
+
* API](https://docs.viam.com/reference/apis/components/input-controller/#getevents).
|
|
38
38
|
*/
|
|
39
39
|
getEvents(extra?: Struct): Promise<InputControllerEvent[]>;
|
|
40
40
|
/**
|
|
@@ -58,7 +58,7 @@ export interface InputController extends Resource {
|
|
|
58
58
|
* ```
|
|
59
59
|
*
|
|
60
60
|
* For more information, see [Input Controller
|
|
61
|
-
* API](https://docs.viam.com/
|
|
61
|
+
* API](https://docs.viam.com/reference/apis/components/input-controller/#triggerevent).
|
|
62
62
|
*/
|
|
63
63
|
triggerEvent(event: InputControllerEvent, extra?: Struct): Promise<void>;
|
|
64
64
|
}
|
|
@@ -18,7 +18,7 @@ export interface Motor extends Resource {
|
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
* For more information, see [Motor
|
|
21
|
-
* API](https://docs.viam.com/
|
|
21
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#getgeometries).
|
|
22
22
|
*/
|
|
23
23
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ export interface Motor extends Resource {
|
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* For more information, see [Motor
|
|
37
|
-
* API](https://docs.viam.com/
|
|
37
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#setpower).
|
|
38
38
|
*
|
|
39
39
|
* @param power - A value between -1 and 1 where negative values indicate a backwards direction
|
|
40
40
|
* and positive values a forward direction.
|
|
@@ -54,7 +54,7 @@ export interface Motor extends Resource {
|
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
56
|
* For more information, see [Motor
|
|
57
|
-
* API](https://docs.viam.com/
|
|
57
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#gofor).
|
|
58
58
|
*
|
|
59
59
|
* @param rpm - Speed in revolutions per minute.
|
|
60
60
|
* @param revolutions - Number of revolutions relative to the motor's starting position. If this
|
|
@@ -77,7 +77,7 @@ export interface Motor extends Resource {
|
|
|
77
77
|
* ```
|
|
78
78
|
*
|
|
79
79
|
* For more information, see [Motor
|
|
80
|
-
* API](https://docs.viam.com/
|
|
80
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#goto).
|
|
81
81
|
*
|
|
82
82
|
* @param rpm - Speed in revolutions per minute.
|
|
83
83
|
* @param positionRevolutions - Number of revolutions relative to the motor's home position.
|
|
@@ -97,7 +97,7 @@ export interface Motor extends Resource {
|
|
|
97
97
|
* ```
|
|
98
98
|
*
|
|
99
99
|
* For more information, see [Motor
|
|
100
|
-
* API](https://docs.viam.com/
|
|
100
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#setrpm).
|
|
101
101
|
*
|
|
102
102
|
* @param rpm - Speed in revolutions per minute.
|
|
103
103
|
*/
|
|
@@ -116,7 +116,7 @@ export interface Motor extends Resource {
|
|
|
116
116
|
* ```
|
|
117
117
|
*
|
|
118
118
|
* For more information, see [Motor
|
|
119
|
-
* API](https://docs.viam.com/
|
|
119
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#resetzeroposition).
|
|
120
120
|
*
|
|
121
121
|
* @param offset - Position from which to offset the current position.
|
|
122
122
|
*/
|
|
@@ -134,7 +134,7 @@ export interface Motor extends Resource {
|
|
|
134
134
|
* ```
|
|
135
135
|
*
|
|
136
136
|
* For more information, see [Motor
|
|
137
|
-
* API](https://docs.viam.com/
|
|
137
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#stop).
|
|
138
138
|
*/
|
|
139
139
|
stop(extra?: Struct): Promise<void>;
|
|
140
140
|
/**
|
|
@@ -152,7 +152,7 @@ export interface Motor extends Resource {
|
|
|
152
152
|
* ```
|
|
153
153
|
*
|
|
154
154
|
* For more information, see [Motor
|
|
155
|
-
* API](https://docs.viam.com/
|
|
155
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#getproperties).
|
|
156
156
|
*/
|
|
157
157
|
getProperties(extra?: Struct): Promise<Properties>;
|
|
158
158
|
/**
|
|
@@ -170,7 +170,7 @@ export interface Motor extends Resource {
|
|
|
170
170
|
* ```
|
|
171
171
|
*
|
|
172
172
|
* For more information, see [Motor
|
|
173
|
-
* API](https://docs.viam.com/
|
|
173
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#getposition).
|
|
174
174
|
*/
|
|
175
175
|
getPosition(extra?: Struct): Promise<number>;
|
|
176
176
|
/**
|
|
@@ -188,7 +188,7 @@ export interface Motor extends Resource {
|
|
|
188
188
|
* ```
|
|
189
189
|
*
|
|
190
190
|
* For more information, see [Motor
|
|
191
|
-
* API](https://docs.viam.com/
|
|
191
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#ispowered).
|
|
192
192
|
*/
|
|
193
193
|
isPowered(extra?: Struct): Promise<readonly [boolean, number]>;
|
|
194
194
|
/**
|
|
@@ -205,7 +205,7 @@ export interface Motor extends Resource {
|
|
|
205
205
|
* ```
|
|
206
206
|
*
|
|
207
207
|
* For more information, see [Motor
|
|
208
|
-
* API](https://docs.viam.com/
|
|
208
|
+
* API](https://docs.viam.com/reference/apis/components/motor/#ismoving).
|
|
209
209
|
*/
|
|
210
210
|
isMoving(): Promise<boolean>;
|
|
211
211
|
}
|
|
@@ -22,7 +22,7 @@ export interface MovementSensor extends Resource {
|
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* For more information, see [Movement Sensor
|
|
25
|
-
* API](https://docs.viam.com/
|
|
25
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getgeometries).
|
|
26
26
|
*/
|
|
27
27
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
28
28
|
/**
|
|
@@ -36,7 +36,7 @@ export interface MovementSensor extends Resource {
|
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
38
|
* For more information, see [Movement Sensor
|
|
39
|
-
* API](https://docs.viam.com/
|
|
39
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getlinearvelocity).
|
|
40
40
|
*/
|
|
41
41
|
getLinearVelocity(extra?: Struct): Promise<Vector3>;
|
|
42
42
|
/**
|
|
@@ -50,7 +50,7 @@ export interface MovementSensor extends Resource {
|
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
52
|
* For more information, see [Movement Sensor
|
|
53
|
-
* API](https://docs.viam.com/
|
|
53
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getangularvelocity).
|
|
54
54
|
*/
|
|
55
55
|
getAngularVelocity(extra?: Struct): Promise<Vector3>;
|
|
56
56
|
/**
|
|
@@ -65,7 +65,7 @@ export interface MovementSensor extends Resource {
|
|
|
65
65
|
* ```
|
|
66
66
|
*
|
|
67
67
|
* For more information, see [Movement Sensor
|
|
68
|
-
* API](https://docs.viam.com/
|
|
68
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getcompassheading).
|
|
69
69
|
*/
|
|
70
70
|
getCompassHeading(extra?: Struct): Promise<number>;
|
|
71
71
|
/**
|
|
@@ -79,7 +79,7 @@ export interface MovementSensor extends Resource {
|
|
|
79
79
|
* ```
|
|
80
80
|
*
|
|
81
81
|
* For more information, see [Movement Sensor
|
|
82
|
-
* API](https://docs.viam.com/
|
|
82
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getorientation).
|
|
83
83
|
*/
|
|
84
84
|
getOrientation(extra?: Struct): Promise<Orientation>;
|
|
85
85
|
/**
|
|
@@ -93,7 +93,7 @@ export interface MovementSensor extends Resource {
|
|
|
93
93
|
* ```
|
|
94
94
|
*
|
|
95
95
|
* For more information, see [Movement Sensor
|
|
96
|
-
* API](https://docs.viam.com/
|
|
96
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getposition).
|
|
97
97
|
*/
|
|
98
98
|
getPosition(extra?: Struct): Promise<MovementSensorPosition>;
|
|
99
99
|
/**
|
|
@@ -107,7 +107,7 @@ export interface MovementSensor extends Resource {
|
|
|
107
107
|
* ```
|
|
108
108
|
*
|
|
109
109
|
* For more information, see [Movement Sensor
|
|
110
|
-
* API](https://docs.viam.com/
|
|
110
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getproperties).
|
|
111
111
|
*/
|
|
112
112
|
getProperties(extra?: Struct): Promise<MovementSensorProperties>;
|
|
113
113
|
/**
|
|
@@ -121,7 +121,7 @@ export interface MovementSensor extends Resource {
|
|
|
121
121
|
* ```
|
|
122
122
|
*
|
|
123
123
|
* For more information, see [Movement Sensor
|
|
124
|
-
* API](https://docs.viam.com/
|
|
124
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getaccuracy).
|
|
125
125
|
*/
|
|
126
126
|
getAccuracy(extra?: Struct): Promise<MovementSensorAccuracy>;
|
|
127
127
|
/**
|
|
@@ -135,7 +135,7 @@ export interface MovementSensor extends Resource {
|
|
|
135
135
|
* ```
|
|
136
136
|
*
|
|
137
137
|
* For more information, see [Movement Sensor
|
|
138
|
-
* API](https://docs.viam.com/
|
|
138
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getlinearacceleration).
|
|
139
139
|
*/
|
|
140
140
|
getLinearAcceleration(extra?: Struct): Promise<Vector3>;
|
|
141
141
|
/**
|
|
@@ -149,7 +149,7 @@ export interface MovementSensor extends Resource {
|
|
|
149
149
|
* ```
|
|
150
150
|
*
|
|
151
151
|
* For more information, see [Movement Sensor
|
|
152
|
-
* API](https://docs.viam.com/
|
|
152
|
+
* API](https://docs.viam.com/reference/apis/components/movement-sensor/#getreadings).
|
|
153
153
|
*/
|
|
154
154
|
getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
|
|
155
155
|
}
|
|
@@ -16,7 +16,7 @@ export interface PoseTracker extends Resource {
|
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
18
|
* For more information, see [Generic
|
|
19
|
-
* API](https://docs.viam.com/
|
|
19
|
+
* API](https://docs.viam.com/reference/apis/components/generic/#getgeometries).
|
|
20
20
|
*/
|
|
21
21
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
22
22
|
}
|
|
@@ -13,7 +13,7 @@ export interface PowerSensor extends Sensor {
|
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* For more information, see [Power Sensor
|
|
16
|
-
* API](https://docs.viam.com/
|
|
16
|
+
* API](https://docs.viam.com/reference/apis/components/power-sensor/#getvoltage).
|
|
17
17
|
*/
|
|
18
18
|
getVoltage(extra?: Struct): Promise<readonly [number, boolean]>;
|
|
19
19
|
/**
|
|
@@ -27,7 +27,7 @@ export interface PowerSensor extends Sensor {
|
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
29
|
* For more information, see [Power Sensor
|
|
30
|
-
* API](https://docs.viam.com/
|
|
30
|
+
* API](https://docs.viam.com/reference/apis/components/power-sensor/#getcurrent).
|
|
31
31
|
*/
|
|
32
32
|
getCurrent(extra?: Struct): Promise<readonly [number, boolean]>;
|
|
33
33
|
/**
|
|
@@ -41,7 +41,7 @@ export interface PowerSensor extends Sensor {
|
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
43
43
|
* For more information, see [Power Sensor
|
|
44
|
-
* API](https://docs.viam.com/
|
|
44
|
+
* API](https://docs.viam.com/reference/apis/components/power-sensor/#getpower).
|
|
45
45
|
*/
|
|
46
46
|
getPower(extra?: Struct): Promise<number>;
|
|
47
47
|
/**
|
|
@@ -55,7 +55,7 @@ export interface PowerSensor extends Sensor {
|
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
57
|
* For more information, see [Power Sensor
|
|
58
|
-
* API](https://docs.viam.com/
|
|
58
|
+
* API](https://docs.viam.com/reference/apis/components/power-sensor/#getreadings).
|
|
59
59
|
*/
|
|
60
60
|
getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
|
|
61
61
|
}
|
|
@@ -15,7 +15,7 @@ export interface Sensor extends Resource {
|
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
17
|
* For more information, see [Sensor
|
|
18
|
-
* API](https://docs.viam.com/
|
|
18
|
+
* API](https://docs.viam.com/reference/apis/components/sensor/#getreadings).
|
|
19
19
|
*/
|
|
20
20
|
getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
|
|
21
21
|
}
|
|
@@ -14,7 +14,7 @@ export interface Servo extends Resource {
|
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* For more information, see [Servo
|
|
17
|
-
* API](https://docs.viam.com/
|
|
17
|
+
* API](https://docs.viam.com/reference/apis/components/servo/#getgeometries).
|
|
18
18
|
*/
|
|
19
19
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
20
20
|
/**
|
|
@@ -33,7 +33,7 @@ export interface Servo extends Resource {
|
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* For more information, see [Servo
|
|
36
|
-
* API](https://docs.viam.com/
|
|
36
|
+
* API](https://docs.viam.com/reference/apis/components/servo/#move).
|
|
37
37
|
*/
|
|
38
38
|
move(angleDeg: number, extra?: Struct): Promise<void>;
|
|
39
39
|
/**
|
|
@@ -49,7 +49,7 @@ export interface Servo extends Resource {
|
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* For more information, see [Servo
|
|
52
|
-
* API](https://docs.viam.com/
|
|
52
|
+
* API](https://docs.viam.com/reference/apis/components/servo/#getposition).
|
|
53
53
|
*/
|
|
54
54
|
getPosition(extra?: Struct): Promise<number>;
|
|
55
55
|
/**
|
|
@@ -68,7 +68,7 @@ export interface Servo extends Resource {
|
|
|
68
68
|
* ```
|
|
69
69
|
*
|
|
70
70
|
* For more information, see [Servo
|
|
71
|
-
* API](https://docs.viam.com/
|
|
71
|
+
* API](https://docs.viam.com/reference/apis/components/servo/#stop).
|
|
72
72
|
*/
|
|
73
73
|
stop(extra?: Struct): Promise<void>;
|
|
74
74
|
/**
|
|
@@ -84,7 +84,7 @@ export interface Servo extends Resource {
|
|
|
84
84
|
* ```
|
|
85
85
|
*
|
|
86
86
|
* For more information, see [Servo
|
|
87
|
-
* API](https://docs.viam.com/
|
|
87
|
+
* API](https://docs.viam.com/reference/apis/components/servo/#ismoving).
|
|
88
88
|
*/
|
|
89
89
|
isMoving(): Promise<boolean>;
|
|
90
90
|
}
|
|
@@ -18,7 +18,7 @@ export interface Switch extends Resource {
|
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
* For more information, see [Switch
|
|
21
|
-
* API](https://docs.viam.com/
|
|
21
|
+
* API](https://docs.viam.com/reference/apis/components/switch/#setposition).
|
|
22
22
|
*/
|
|
23
23
|
setPosition: (position: number, extra?: Struct) => Promise<void>;
|
|
24
24
|
/**
|
|
@@ -43,7 +43,7 @@ export interface Switch extends Resource {
|
|
|
43
43
|
* ```
|
|
44
44
|
*
|
|
45
45
|
* For more information, see [Switch
|
|
46
|
-
* API](https://docs.viam.com/
|
|
46
|
+
* API](https://docs.viam.com/reference/apis/components/switch/#getposition).
|
|
47
47
|
*/
|
|
48
48
|
getPosition: (extra?: Struct) => Promise<number>;
|
|
49
49
|
/**
|
|
@@ -61,7 +61,7 @@ export interface Switch extends Resource {
|
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
63
|
* For more information, see [Switch
|
|
64
|
-
* API](https://docs.viam.com/
|
|
64
|
+
* API](https://docs.viam.com/reference/apis/components/switch/#getnumberofpositions).
|
|
65
65
|
*/
|
|
66
66
|
getNumberOfPositions: (extra?: Struct) => Promise<[number, string[]]>;
|
|
67
67
|
}
|
package/dist/debug.d.ts
CHANGED
|
@@ -71,4 +71,8 @@ export declare const isDebugLogEnabled: () => boolean;
|
|
|
71
71
|
* @internal
|
|
72
72
|
*/
|
|
73
73
|
export declare const writeDebugLog: (event: string, fields?: Record<string, unknown>) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Returns a {@link DebugLogWriter} that prints each entry to the console as a JSON string, prefixed
|
|
76
|
+
* with `[viam-sdk]`.
|
|
77
|
+
*/
|
|
74
78
|
export declare const createConsoleLogWriter: () => DebugLogWriter;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CancelTrainingJobRequest, CancelTrainingJobResponse, DeleteCompletedTrainingJobRequest, DeleteCompletedTrainingJobResponse, GetTrainingJobLogsRequest, GetTrainingJobLogsResponse, GetTrainingJobRequest, GetTrainingJobResponse, ListSupportedContainersRequest, ListSupportedContainersResponse, ListTrainingJobsRequest, ListTrainingJobsResponse, SubmitCustomTrainingJobRequest, SubmitCustomTrainingJobResponse, SubmitTrainingJobRequest, SubmitTrainingJobResponse } from "./ml_training_pb.js";
|
|
6
|
+
import { CancelTrainingJobRequest, CancelTrainingJobResponse, DeleteCompletedTrainingJobRequest, DeleteCompletedTrainingJobResponse, DeleteCustomTrainingContainerRequest, DeleteCustomTrainingContainerResponse, GetContainerRequest, GetContainerResponse, GetTrainingJobLogsRequest, GetTrainingJobLogsResponse, GetTrainingJobRequest, GetTrainingJobResponse, ListContainersRequest, ListContainersResponse, ListSupportedContainersRequest, ListSupportedContainersResponse, ListTrainingJobsRequest, ListTrainingJobsResponse, RegisterCustomTrainingContainerRequest, RegisterCustomTrainingContainerResponse, SubmitCustomTrainingJobRequest, SubmitCustomTrainingJobResponse, SubmitTrainingJobRequest, SubmitTrainingJobResponse } from "./ml_training_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -90,7 +90,7 @@ export declare const MLTrainingService: {
|
|
|
90
90
|
readonly kind: MethodKind.Unary,
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
93
|
-
* ListSupportedContainers gets all the containers
|
|
93
|
+
* ListSupportedContainers gets all the Viam-supported containers available for a custom training job.
|
|
94
94
|
*
|
|
95
95
|
* @generated from rpc viam.app.mltraining.v1.MLTrainingService.ListSupportedContainers
|
|
96
96
|
*/
|
|
@@ -100,6 +100,50 @@ export declare const MLTrainingService: {
|
|
|
100
100
|
readonly O: typeof ListSupportedContainersResponse,
|
|
101
101
|
readonly kind: MethodKind.Unary,
|
|
102
102
|
},
|
|
103
|
+
/**
|
|
104
|
+
* ListContainers lists the containers available for a custom training job for a given organization.
|
|
105
|
+
*
|
|
106
|
+
* @generated from rpc viam.app.mltraining.v1.MLTrainingService.ListContainers
|
|
107
|
+
*/
|
|
108
|
+
readonly listContainers: {
|
|
109
|
+
readonly name: "ListContainers",
|
|
110
|
+
readonly I: typeof ListContainersRequest,
|
|
111
|
+
readonly O: typeof ListContainersResponse,
|
|
112
|
+
readonly kind: MethodKind.Unary,
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* GetContainer retrieves a container by its ID.
|
|
116
|
+
*
|
|
117
|
+
* @generated from rpc viam.app.mltraining.v1.MLTrainingService.GetContainer
|
|
118
|
+
*/
|
|
119
|
+
readonly getContainer: {
|
|
120
|
+
readonly name: "GetContainer",
|
|
121
|
+
readonly I: typeof GetContainerRequest,
|
|
122
|
+
readonly O: typeof GetContainerResponse,
|
|
123
|
+
readonly kind: MethodKind.Unary,
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* RegisterCustomTrainingContainer registers a custom container in the database for custom training jobs
|
|
127
|
+
*
|
|
128
|
+
* @generated from rpc viam.app.mltraining.v1.MLTrainingService.RegisterCustomTrainingContainer
|
|
129
|
+
*/
|
|
130
|
+
readonly registerCustomTrainingContainer: {
|
|
131
|
+
readonly name: "RegisterCustomTrainingContainer",
|
|
132
|
+
readonly I: typeof RegisterCustomTrainingContainerRequest,
|
|
133
|
+
readonly O: typeof RegisterCustomTrainingContainerResponse,
|
|
134
|
+
readonly kind: MethodKind.Unary,
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* DeleteCustomTrainingContainer deletes a custom container from the database
|
|
138
|
+
*
|
|
139
|
+
* @generated from rpc viam.app.mltraining.v1.MLTrainingService.DeleteCustomTrainingContainer
|
|
140
|
+
*/
|
|
141
|
+
readonly deleteCustomTrainingContainer: {
|
|
142
|
+
readonly name: "DeleteCustomTrainingContainer",
|
|
143
|
+
readonly I: typeof DeleteCustomTrainingContainerRequest,
|
|
144
|
+
readonly O: typeof DeleteCustomTrainingContainerResponse,
|
|
145
|
+
readonly kind: MethodKind.Unary,
|
|
146
|
+
},
|
|
103
147
|
}
|
|
104
148
|
};
|
|
105
149
|
|