Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 55 additions & 42 deletions codesamples/apis.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,57 @@
{
"base": {
"client": "Base",
"func": "is_moving",
"args": []
},
"camera": {
"client": "Camera",
"func": "get_image",
"args": [ "std::string(\"image/png\")" ],
"comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary."
},
"encoder": {
"client": "Encoder",
"func": "get_properties",
"args": []
},
"motion": {
"client": "Motion",
"func": "get_pose",
"args": ["{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", "<destination-frame>", "{}", "nullptr"],
"comment": "Update with correct component name, destination frame, supplemental transforms, and extra params"
},
"motor": {
"client": "Motor",
"func": "is_moving",
"args": []
},
"movement_sensor": {
"client": "MovementSensor",
"func": "get_linear_velocity",
"args": []
},
"power_sensor": {
"client": "PowerSensor",
"func": "get_voltage",
"args": []
},
"sensor": {
"client": "Sensor",
"func": "get_readings",
"args": []
}
"base": {
"importName": "Base",
"func": "is_moving",
"args": [],
"packagePath": "viam/sdk/components"
},
"camera": {
"importName": "Camera",
"func": "get_image",
"args": ["std::string(\"image/png\")"],
"comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary.",
"packagePath": "viam/sdk/components"
},
"encoder": {
"importName": "Encoder",
"func": "get_properties",
"args": [],
"packagePath": "viam/sdk/components"
},
"motion": {
"importName": "Motion",
"func": "get_pose",
"args": [
"{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}",
"<destination-frame>",
"{}",
"nullptr"
],
"comment": "Update with correct component name, destination frame, supplemental transforms, and extra params",
"packagePath": "viam/sdk/services"
},
"motor": {
"importName": "Motor",
"func": "is_moving",
"args": [],
"packagePath": "viam/sdk/components"
},
"movement_sensor": {
"importName": "MovementSensor",
"func": "get_linear_velocity",
"args": [],
"packagePath": "viam/sdk/components"
},
"power_sensor": {
"importName": "PowerSensor",
"func": "get_voltage",
"args": [],
"packagePath": "viam/sdk/components"
},
"sensor": {
"importName": "Sensor",
"func": "get_readings",
"args": [],
"packagePath": "viam/sdk/components"
}
}