@viamrobotics/sdk 0.77.0 → 0.79.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 +109 -102
- package/dist/app/billing-client.d.ts +4 -4
- package/dist/app/data-client.d.ts +31 -31
- package/dist/app/ml-training-client.d.ts +6 -6
- package/dist/app/viam-client.d.ts +2 -1
- package/dist/app/viam-transport.d.ts +2 -3
- 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 -12
- 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/gen/app/mltraining/v1/ml_training_pb.d.ts +7 -0
- package/dist/gen/app/v1/app_pb.d.ts +14 -0
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/gen/app/v1/robot_pb.d.ts +18 -6
- package/dist/gen/common/v1/common_pb.d.ts +588 -6
- package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
- 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 +66 -2
- package/dist/gen/service/motion/v1/motion_pb.d.ts +8 -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/main.d.ts +5 -5
- package/dist/main.es.js +9579 -7720
- package/dist/main.umd.js +11 -9
- package/dist/robot/client.d.ts +57 -1272
- 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/vision.d.ts +8 -8
- package/package.json +4 -4
|
@@ -55,7 +55,7 @@ export interface Camera extends Resource {
|
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
57
|
* For more information, see [Camera
|
|
58
|
-
* API](https://docs.viam.com/
|
|
58
|
+
* API](https://docs.viam.com/reference/apis/components/camera/#getpointcloud).
|
|
59
59
|
*/
|
|
60
60
|
getPointCloud: (extra?: Struct) => Promise<Uint8Array>;
|
|
61
61
|
/**
|
|
@@ -69,7 +69,7 @@ export interface Camera extends Resource {
|
|
|
69
69
|
* ```
|
|
70
70
|
*
|
|
71
71
|
* For more information, see [Camera
|
|
72
|
-
* API](https://docs.viam.com/
|
|
72
|
+
* API](https://docs.viam.com/reference/apis/components/camera/#getproperties).
|
|
73
73
|
*/
|
|
74
74
|
getProperties: () => Promise<Properties>;
|
|
75
75
|
}
|
|
@@ -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
|
}
|
|
@@ -30,6 +30,13 @@ export declare enum ModelType {
|
|
|
30
30
|
* @generated from enum value: MODEL_TYPE_OBJECT_DETECTION = 3;
|
|
31
31
|
*/
|
|
32
32
|
OBJECT_DETECTION = 3,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A policy that controls a robot.
|
|
36
|
+
*
|
|
37
|
+
* @generated from enum value: MODEL_TYPE_ROBOT_POLICY = 4;
|
|
38
|
+
*/
|
|
39
|
+
ROBOT_POLICY = 4,
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
/**
|
|
@@ -4073,6 +4073,13 @@ export declare class Fragment extends Message<Fragment> {
|
|
|
4073
4073
|
*/
|
|
4074
4074
|
publicNamespace?: string;
|
|
4075
4075
|
|
|
4076
|
+
/**
|
|
4077
|
+
* Fragment config JSON, preserving key order.
|
|
4078
|
+
*
|
|
4079
|
+
* @generated from field: optional string fragment_config_json = 16;
|
|
4080
|
+
*/
|
|
4081
|
+
fragmentConfigJson?: string;
|
|
4082
|
+
|
|
4076
4083
|
constructor(data?: PartialMessage<Fragment>);
|
|
4077
4084
|
|
|
4078
4085
|
static readonly runtime: typeof proto3;
|
|
@@ -4604,6 +4611,13 @@ export declare class UpdateFragmentRequest extends Message<UpdateFragmentRequest
|
|
|
4604
4611
|
*/
|
|
4605
4612
|
lastKnownUpdate?: Timestamp;
|
|
4606
4613
|
|
|
4614
|
+
/**
|
|
4615
|
+
* Fragment config JSON, preserving key order. Takes precedence over config.
|
|
4616
|
+
*
|
|
4617
|
+
* @generated from field: optional string fragment_config_json = 7;
|
|
4618
|
+
*/
|
|
4619
|
+
fragmentConfigJson?: string;
|
|
4620
|
+
|
|
4607
4621
|
constructor(data?: PartialMessage<UpdateFragmentRequest>);
|
|
4608
4622
|
|
|
4609
4623
|
static readonly runtime: typeof proto3;
|
|
@@ -173,6 +173,11 @@ export declare enum UsageCostType {
|
|
|
173
173
|
* @generated from enum value: USAGE_COST_TYPE_PREMIUM_MODULE = 27;
|
|
174
174
|
*/
|
|
175
175
|
PREMIUM_MODULE = 27,
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @generated from enum value: USAGE_COST_TYPE_SIMULATION_COMPUTE = 28;
|
|
179
|
+
*/
|
|
180
|
+
SIMULATION_COMPUTE = 28,
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
/**
|
|
@@ -847,25 +847,37 @@ export declare class AuthConfig extends Message<AuthConfig> {
|
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
|
-
* A UserPermission describes a
|
|
851
|
-
* that user.
|
|
850
|
+
* A UserPermission describes the Users a set of permissions is granted to.
|
|
852
851
|
*
|
|
853
852
|
* @generated from message viam.app.v1.UserPermission
|
|
854
853
|
*/
|
|
855
854
|
export declare class UserPermission extends Message<UserPermission> {
|
|
856
855
|
/**
|
|
857
|
-
*
|
|
858
|
-
*
|
|
856
|
+
* users are the Users these permissions apply to. A User can be listed in
|
|
857
|
+
* only one UserPermission for a set of UserPermissions, counting both users
|
|
858
|
+
* and user.
|
|
859
859
|
*
|
|
860
|
-
* @generated from field: viam.app.v1.User
|
|
860
|
+
* @generated from field: repeated viam.app.v1.User users = 3;
|
|
861
861
|
*/
|
|
862
|
-
|
|
862
|
+
users: User[];
|
|
863
863
|
|
|
864
864
|
/**
|
|
865
|
+
* permissions are the methods these Users may invoke, by resource. A User
|
|
866
|
+
* named here with no permissions may invoke nothing.
|
|
867
|
+
*
|
|
865
868
|
* @generated from field: repeated viam.app.v1.Permission permissions = 2;
|
|
866
869
|
*/
|
|
867
870
|
permissions: Permission[];
|
|
868
871
|
|
|
872
|
+
/**
|
|
873
|
+
* user is a single User these permissions apply to. Superseded by users:
|
|
874
|
+
* prefer users in new writers, and expect readers to ignore user when users
|
|
875
|
+
* is set.
|
|
876
|
+
*
|
|
877
|
+
* @generated from field: viam.app.v1.User user = 1;
|
|
878
|
+
*/
|
|
879
|
+
user?: User;
|
|
880
|
+
|
|
869
881
|
constructor(data?: PartialMessage<UserPermission>);
|
|
870
882
|
|
|
871
883
|
static readonly runtime: typeof proto3;
|