Skip to content

Commit ff7234b

Browse files
committed
Update apis.json to use new fields
1 parent 92e0fb4 commit ff7234b

File tree

1 file changed

+55
-42
lines changed

1 file changed

+55
-42
lines changed

codesamples/apis.json

Lines changed: 55 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,57 @@
11
{
2-
"base": {
3-
"client": "Base",
4-
"func": "is_moving",
5-
"args": []
6-
},
7-
"camera": {
8-
"client": "Camera",
9-
"func": "get_image",
10-
"args": [ "std::string(\"image/png\")" ],
11-
"comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary."
12-
},
13-
"encoder": {
14-
"client": "Encoder",
15-
"func": "get_properties",
16-
"args": []
17-
},
18-
"motion": {
19-
"client": "Motion",
20-
"func": "get_pose",
21-
"args": ["{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", "<destination-frame>", "{}", "nullptr"],
22-
"comment": "Update with correct component name, destination frame, supplemental transforms, and extra params"
23-
},
24-
"motor": {
25-
"client": "Motor",
26-
"func": "is_moving",
27-
"args": []
28-
},
29-
"movement_sensor": {
30-
"client": "MovementSensor",
31-
"func": "get_linear_velocity",
32-
"args": []
33-
},
34-
"power_sensor": {
35-
"client": "PowerSensor",
36-
"func": "get_voltage",
37-
"args": []
38-
},
39-
"sensor": {
40-
"client": "Sensor",
41-
"func": "get_readings",
42-
"args": []
43-
}
2+
"base": {
3+
"importName": "Base",
4+
"func": "is_moving",
5+
"args": [],
6+
"packagePath": "viam/sdk/components"
7+
},
8+
"camera": {
9+
"importName": "Camera",
10+
"func": "get_image",
11+
"args": ["std::string(\"image/png\")"],
12+
"comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary.",
13+
"packagePath": "viam/sdk/components"
14+
},
15+
"encoder": {
16+
"importName": "Encoder",
17+
"func": "get_properties",
18+
"args": [],
19+
"packagePath": "viam/sdk/components"
20+
},
21+
"motion": {
22+
"importName": "Motion",
23+
"func": "get_pose",
24+
"args": [
25+
"{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}",
26+
"<destination-frame>",
27+
"{}",
28+
"nullptr"
29+
],
30+
"comment": "Update with correct component name, destination frame, supplemental transforms, and extra params",
31+
"packagePath": "viam/sdk/services"
32+
},
33+
"motor": {
34+
"importName": "Motor",
35+
"func": "is_moving",
36+
"args": [],
37+
"packagePath": "viam/sdk/components"
38+
},
39+
"movement_sensor": {
40+
"importName": "MovementSensor",
41+
"func": "get_linear_velocity",
42+
"args": [],
43+
"packagePath": "viam/sdk/components"
44+
},
45+
"power_sensor": {
46+
"importName": "PowerSensor",
47+
"func": "get_voltage",
48+
"args": [],
49+
"packagePath": "viam/sdk/components"
50+
},
51+
"sensor": {
52+
"importName": "Sensor",
53+
"func": "get_readings",
54+
"args": [],
55+
"packagePath": "viam/sdk/components"
56+
}
4457
}

0 commit comments

Comments
 (0)