BotRobotProfile bot.robot-profile@1
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
- Version
- 1.1.0
- Owner
- bot
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Decision
- ADR-043
- Schema
https://openvibe.network/contracts/bot/robot-profile.v1.json
bot.robot-profile@1 (ADR-043 decision 7): a robot profile as OpenVibe.Bot ships it (server/profiles/*.json) and serves it (GET /api/v1/profiles, /profiles/:id; validateProfile in server/profiles/index.js). The panel is a function of the profile. Capability and widget names are open strings that Bot checks against registries in code, so a new one never needs a schema change. As served, vendor, kind, description, variants and camera are null when the file leaves them out, limits carry their defaults (max_speed 1, max_turn 1, max_command_ms 300, heartbeat_ms 1000) and commands always include halt. mapping is the driver's own hardware map, open beyond driver. commands.button (an owner's buttons: names, each a label with an optional key, cooldown_ms and hold) and commands.point (a video-click layer, with its own cooldown_ms), rendered by the widget types buttons and video_click, were added in 0.109.0 (plan T15 R9).
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes |
| |
version | integer | yes |
| |
name | string | yes |
| |
vendor | string | null | |||
kind | enum |
| ||
description | string | null | |||
capabilities | array of string | yes |
| |
variants | object | null | |||
mapping | object | yes | ||
mapping.driver | enum | yes |
| |
mapping.plugin | string | |||
commands | object |
| ||
commands.drive | object |
| ||
commands.drive.axes | object | yes |
| |
commands.drive.axes.throttle | array of number |
| ||
commands.drive.axes.steer | array of number |
| ||
commands.drive.axes.x | array of number |
| ||
commands.drive.axes.y | array of number |
| ||
commands.drive.axes.rotation | array of number |
| ||
commands.ptz | object |
| ||
commands.ptz.axes | object | yes |
| |
commands.ptz.axes.pan | array of number |
| ||
commands.ptz.axes.tilt | array of number |
| ||
commands.ptz.axes.zoom | array of number |
| ||
commands.actuator | object |
| ||
commands.actuator.names | object | yes | ||
commands.say | object |
| ||
commands.say.max_chars | integer |
| ||
commands.display | object |
| ||
commands.display.modes | array of enum | yes |
| |
commands.display.faces | array of string |
| ||
commands.display.max_chars | integer |
| ||
commands.button | object |
| ||
commands.button.names | object | yes | ||
commands.point | object |
| ||
commands.point.cooldown_ms | integer |
| ||
commands.halt | object |
| ||
widgets | array of object | yes |
| |
widgets[].type | string | yes |
| |
widgets[].capability | string | |||
widgets[].label | string |
| ||
widgets[].order | integer | |||
widgets[].command | object |
| ||
widgets[].command.kind | enum | yes |
| |
widgets[].command.names | array of string |
| ||
camera | object | null | |||
limits | object |
| ||
limits.max_speed | number | |||
limits.max_turn | number | |||
limits.max_command_ms | integer |
| ||
limits.heartbeat_ms | integer |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: adeept-file
{
"id": "adeept.adr036",
"version": 1,
"name": "Adeept ADR036 4WD Smart Car",
"vendor": "Adeept",
"kind": "onboard",
"capabilities": [
"drive.differential",
"servo.pan_tilt",
"lights.rgb",
"speaker.horn",
"sensor.ultrasonic",
"battery"
],
"mapping": {
"driver": "pca9685",
"plugin": "adeept_adr036",
"wheels": "ordinary",
"i2c_bus": 1,
"address": "0x5f",
"motor_channels": [
8,
9,
10,
11,
12,
13,
14,
15
],
"servo_channels": {
"pan": 0,
"tilt": 1
},
"battery": {
"driver": "ads7830",
"address": "0x48"
},
"lights": "ws2812",
"horn": "buzzer"
},
"commands": {
"drive": {
"axes": {
"throttle": [
-1,
1
],
"steer": [
-1,
1
]
}
},
"actuator": {
"names": {
"pan": {
"type": "number",
"range": [
-1,
1
]
},
"tilt": {
"type": "number",
"range": [
-1,
1
]
},
"buzzer": {
"type": "tone",
"hz": [
220,
880
]
},
"lights": {
"type": "rgb",
"count": 8
}
}
}
},
"widgets": [
{
"type": "drive",
"capability": "drive.differential",
"label": "Drive",
"order": 1,
"command": {
"kind": "drive"
}
},
{
"type": "pan-tilt",
"capability": "servo.pan_tilt",
"label": "Pan / tilt",
"order": 2,
"command": {
"kind": "actuator",
"names": [
"pan",
"tilt"
]
}
},
{
"type": "battery",
"capability": "battery",
"label": "Battery",
"order": 3
},
{
"type": "latency",
"label": "Latency",
"order": 4
}
],
"camera": {
"transport": "whip",
"resolution": "640x480"
},
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Valid: buttons
{
"id": "live.controls",
"version": 1,
"name": "Live camp controls",
"vendor": null,
"kind": "server",
"description": null,
"capabilities": [
"lights.rgb",
"camera"
],
"variants": null,
"mapping": {
"driver": "sim"
},
"commands": {
"button": {
"names": {
"lights_on": {
"label": "Lights on",
"key": "1",
"cooldown_ms": 2000
},
"horn": {
"label": "Horn",
"key": "h",
"cooldown_ms": 0,
"hold": true
}
}
},
"point": {
"cooldown_ms": 1000
}
},
"widgets": [
{
"type": "buttons",
"capability": "lights.rgb",
"label": "Buttons",
"order": 1,
"command": {
"kind": "button"
}
},
{
"type": "video_click",
"capability": "camera",
"label": "Click to look",
"order": 2,
"command": {
"kind": "point"
}
}
],
"camera": null,
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Valid: community-plugin
{
"id": "community.ballbot",
"version": 1,
"name": "Ballbot",
"vendor": "A community member",
"kind": "onboard",
"description": "A self-balancing ball robot on an ESP32, driven by a community Link plugin its owner installs.",
"capabilities": [
"drive.differential",
"battery"
],
"mapping": {
"driver": "plugin",
"plugin": "ballbot"
},
"commands": {
"drive": {
"axes": {
"throttle": [
-1,
1
],
"steer": [
-1,
1
]
}
}
},
"widgets": [
{
"type": "drive",
"capability": "drive.differential",
"label": "Drive",
"order": 1,
"command": {
"kind": "drive"
}
},
{
"type": "battery",
"capability": "battery",
"label": "Battery",
"order": 2
}
],
"limits": {
"max_speed": 0.5,
"max_turn": 0.6,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Valid: looi
{
"id": "looi",
"version": 1,
"name": "LOOI desktop robot",
"vendor": "LOOI",
"kind": "bridge",
"description": "LOOI, the tracked desk robot that uses a phone as its face: differential drive and head tilt over Bluetooth from a bridge computer (Windows, macOS or Linux) running the OpenVibe Link with the Generic LOOI driver. The phone streams its own video, for example from its browser to the owner's OpenVibe.Live channel, where the robot's panel shows under the stream.",
"capabilities": [
"drive.differential",
"head",
"battery"
],
"mapping": {
"driver": "looi",
"plugin": "looi"
},
"commands": {
"drive": {
"axes": {
"throttle": [
-1,
1
],
"steer": [
-1,
1
]
}
},
"actuator": {
"names": {
"head": {
"type": "number",
"range": [
-1,
1
]
}
}
}
},
"widgets": [
{
"type": "drive",
"capability": "drive.differential",
"label": "Drive",
"order": 1,
"command": {
"kind": "drive"
}
},
{
"type": "head",
"capability": "head",
"label": "Head tilt",
"order": 2,
"command": {
"kind": "actuator",
"names": [
"head"
]
}
},
{
"type": "battery",
"capability": "battery",
"label": "Battery",
"order": 3
},
{
"type": "latency",
"label": "Latency",
"order": 4
}
],
"limits": {
"max_speed": 0.5,
"max_turn": 0.6,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Valid: phone-camera
{
"id": "phone.camera",
"version": 1,
"name": "A phone",
"vendor": "Any",
"kind": "onboard",
"description": "Any phone as a robot's eyes, voice and face, from its browser with nothing to install: its camera streams to the panel, it says what you type, shows a face or text full-screen, turns its torch on, chimes, and reports its battery and how it is tilted.",
"capabilities": [
"camera",
"speaker.say",
"speaker.horn",
"display.text",
"lights.torch",
"battery",
"sensor.tilt"
],
"mapping": {
"driver": "phone"
},
"commands": {
"say": {
"max_chars": 200
},
"display": {
"modes": [
"face",
"text"
],
"faces": [
"happy",
"neutral",
"sad",
"surprised",
"sleepy",
"wink",
"love",
"angry"
],
"max_chars": 80
},
"actuator": {
"names": {
"torch": {
"type": "bool"
},
"chime": {
"type": "tone",
"hz": [
220,
1760
]
}
}
}
},
"widgets": [
{
"type": "camera",
"capability": "camera",
"label": "Camera",
"order": 1
},
{
"type": "speaker",
"capability": "speaker.say",
"label": "Say",
"order": 2,
"command": {
"kind": "say"
}
},
{
"type": "display",
"capability": "display.text",
"label": "Face",
"order": 3,
"command": {
"kind": "display"
}
},
{
"type": "lights",
"capability": "lights.torch",
"label": "Torch",
"order": 4,
"command": {
"kind": "actuator",
"names": [
"torch"
]
}
},
{
"type": "horn",
"capability": "speaker.horn",
"label": "Chime",
"order": 5,
"command": {
"kind": "actuator",
"names": [
"chime"
]
}
},
{
"type": "telemetry",
"capability": "sensor.tilt",
"label": "Tilt",
"order": 6
},
{
"type": "battery",
"capability": "battery",
"label": "Battery",
"order": 7
},
{
"type": "latency",
"label": "Latency",
"order": 8
}
],
"camera": {
"transport": "whip",
"resolution": "1280x720"
},
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Valid: relay-generic
{
"id": "relay.generic",
"version": 1,
"name": "Generic relay",
"vendor": "OpenVibe",
"kind": "bridge",
"description": "A robot with no hardware of its own: the owner's Link runs the relay plugin and forwards the panel's button and video-click commands to a local script. The shape OpenVibe.Live's camp controls convert to (plan T15 R9 step 5); the buttons live in the robot's local profile.",
"capabilities": [
"relay"
],
"mapping": {
"driver": "relay",
"plugin": "relay"
},
"commands": {
"button": {
"names": {
"relay": {
"label": "Relay"
}
}
}
},
"widgets": [
{
"type": "buttons",
"label": "Buttons",
"order": 1,
"command": {
"kind": "button"
}
},
{
"type": "latency",
"label": "Latency",
"order": 2
}
],
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Valid: sim-served
{
"id": "sim.rover",
"version": 1,
"name": "Simulated rover",
"vendor": null,
"kind": "server",
"description": null,
"capabilities": [
"drive.differential",
"camera"
],
"variants": null,
"mapping": {
"driver": "sim"
},
"commands": {
"drive": {
"axes": {
"throttle": [
-1,
1
],
"steer": [
-1,
1
]
}
},
"say": {
"max_chars": 200
},
"halt": {}
},
"widgets": [
{
"type": "drive",
"capability": "drive.differential",
"label": "Drive",
"order": 1,
"command": {
"kind": "drive"
}
},
{
"type": "camera",
"capability": "camera",
"order": 2
}
],
"camera": null,
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Rejected: unknown-command-kind
{
"id": "adeept.adr036",
"version": 1,
"name": "Adeept ADR036 4WD Smart Car",
"vendor": "Adeept",
"kind": "onboard",
"capabilities": [
"drive.differential",
"servo.pan_tilt",
"lights.rgb",
"speaker.horn",
"sensor.ultrasonic",
"battery"
],
"mapping": {
"driver": "pca9685",
"plugin": "adeept_adr036",
"wheels": "ordinary",
"i2c_bus": 1,
"address": "0x5f",
"motor_channels": [
8,
9,
10,
11,
12,
13,
14,
15
],
"servo_channels": {
"pan": 0,
"tilt": 1
},
"battery": {
"driver": "ads7830",
"address": "0x48"
},
"lights": "ws2812",
"horn": "buzzer"
},
"commands": {
"fly": {}
},
"widgets": [
{
"type": "drive",
"capability": "drive.differential",
"label": "Drive",
"order": 1,
"command": {
"kind": "drive"
}
},
{
"type": "pan-tilt",
"capability": "servo.pan_tilt",
"label": "Pan / tilt",
"order": 2,
"command": {
"kind": "actuator",
"names": [
"pan",
"tilt"
]
}
},
{
"type": "battery",
"capability": "battery",
"label": "Battery",
"order": 3
},
{
"type": "latency",
"label": "Latency",
"order": 4
}
],
"camera": {
"transport": "whip",
"resolution": "640x480"
},
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Rejected: unknown-driver
{
"id": "adeept.adr036",
"version": 1,
"name": "Adeept ADR036 4WD Smart Car",
"vendor": "Adeept",
"kind": "onboard",
"capabilities": [
"drive.differential",
"servo.pan_tilt",
"lights.rgb",
"speaker.horn",
"sensor.ultrasonic",
"battery"
],
"mapping": {
"driver": "arduino"
},
"commands": {
"drive": {
"axes": {
"throttle": [
-1,
1
],
"steer": [
-1,
1
]
}
},
"actuator": {
"names": {
"pan": {
"type": "number",
"range": [
-1,
1
]
},
"tilt": {
"type": "number",
"range": [
-1,
1
]
},
"buzzer": {
"type": "tone",
"hz": [
220,
880
]
},
"lights": {
"type": "rgb",
"count": 8
}
}
}
},
"widgets": [
{
"type": "drive",
"capability": "drive.differential",
"label": "Drive",
"order": 1,
"command": {
"kind": "drive"
}
},
{
"type": "pan-tilt",
"capability": "servo.pan_tilt",
"label": "Pan / tilt",
"order": 2,
"command": {
"kind": "actuator",
"names": [
"pan",
"tilt"
]
}
},
{
"type": "battery",
"capability": "battery",
"label": "Battery",
"order": 3
},
{
"type": "latency",
"label": "Latency",
"order": 4
}
],
"camera": {
"transport": "whip",
"resolution": "640x480"
},
"limits": {
"max_speed": 1,
"max_turn": 1,
"max_command_ms": 300,
"heartbeat_ms": 1000
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('bot.robot-profile@1', value); // { valid, errors: [{ path, message }] }