Skip to content

Instantly share code, notes, and snippets.

@mestcihazal
Last active February 10, 2023 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mestcihazal/7683fbdd0975579b44295b3208757b5a to your computer and use it in GitHub Desktop.
Save mestcihazal/7683fbdd0975579b44295b3208757b5a to your computer and use it in GitHub Desktop.
Nerf Gun Robot Config for Viam App
{
"components": [
{
"attributes": {},
"depends_on": [],
"name": "board",
"type": "board",
"model": "pi"
},
{
"model": "gpio",
"attributes": {
"board": "board",
"pins": {
"b": "18",
"a": "16"
}
},
"depends_on": [
"board"
],
"name": "right",
"type": "motor"
},
{
"name": "base",
"type": "base",
"model": "wheeled",
"attributes": {
"width_mm": 130,
"wheel_circumference_mm": 200,
"left": [
"left"
],
"right": [
"right"
]
},
"depends_on": [
"left",
"right",
"board"
]
},
{
"attributes": {
"pins": {
"a": "11",
"b": "13"
},
"board": "board"
},
"depends_on": [
"board"
],
"name": "left",
"type": "motor",
"model": "gpio"
},
{
"model": "webcam",
"attributes": {
"height_px": 960,
"stream": "",
"debug": false,
"format": "",
"video_path": "video0",
"video_path_pattern": "",
"width_px": 1280
},
"depends_on": [],
"name": "camera",
"type": "camera"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment