Skip to content

Commit

Permalink
APP-1951 - reformat the structure of the code samples file (#2560)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kschappacher authored Jun 23, 2023
1 parent 6e49e75 commit 6f460c3
Showing 1 changed file with 66 additions and 36 deletions.
102 changes: 66 additions & 36 deletions examples/apis.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,68 @@
{
"functions": {
"base": "IsMoving",
"board": "GPIOPinByName",
"camera": "Properties",
"encoder": "Properties",
"motor": "IsMoving",
"sensor": "Readings",
"servo": "Position",
"arm": "EndPosition",
"audio": "MediaProperties",
"gantry": "Lengths",
"gripper": "IsMoving",
"input_controller": "Controls",
"movement_sensor": "LinearAcceleration",
"pose_tracker": "Poses",
"motion": "GetPose",
"vision": "DetectorNames"
},
"args": {
"base": "context.Background()",
"board": "\"16\"",
"camera": "context.Background()",
"encoder": "context.Background(), map[string]interface{}{}",
"motor": "context.Background()",
"sensor": "context.Background(), map[string]interface{}{}",
"servo": "context.Background(), map[string]interface{}{}",
"arm": "context.Background(), map[string]interface{}{}",
"audio": "MediaProperties",
"gantry": "context.Background(), map[string]interface{}{}",
"gripper": "context.Background()",
"input_controller": "context.Background(), map[string]interface{}{}",
"movement_sensor": "context.Background(), map[string]interface{}{}",
"pose_tracker": "",
"motion": "",
"vision": "context.Background(), map[string]interface{}{}"
}
"base": {
"func": "IsMoving",
"args": ["context.Background()"]
},
"board": {
"func": "GPIOPinByName",
"args": ["\"16\""],
"comment": "Note that the pin supplied is a placeholder. Please change this to a valid pin."
},
"camera": {
"func": "Properties",
"args": ["context.Background()"]
},
"encoder": {
"func": "Properties",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"motor": {
"func": "IsMoving",
"args": ["context.Background()"]
},
"sensor": {
"func": "Readings",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"servo": {
"func": "Position",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"arm": {
"func": "EndPosition",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"audio": {
"func": "MediaProperties",
"args": ["context.Background()"]
},
"gantry": {
"func": "Lengths",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"gripper": {
"func": "IsMoving",
"args": ["context.Background()"]
},
"input_controller": {
"func": "Controls",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"movement_sensor": {
"func": "LinearAcceleration",
"args": ["context.Background()", "map[string]interface{}{}"]
},
"pose_tracker": {
"func": "Poses",
"args": []
},
"motion": {
"func": "GetPose",
"args": []
},
"vision": {
"func": "ClassificationsFromCamera",
"args": ["context.Background()", "YOURCAMERANAME", "1", "map[string]interface{}{}"],
"comment": "Note that the Camera supplied is a placeholder. Please change this to a valid Camera."
}
}

0 comments on commit 6f460c3

Please sign in to comment.