BotCrowdTick bot.crowd-tick@1

Generated at from openvibe-contracts v0.454.0 and openvibe-sdk v0.193.0.

Version
1.0.0
Owner
bot
Visibility
first-party
Status
active
Compatibility
backward
Decision
ADR-043
Schema
https://openvibe.network/contracts/bot/crowd-tick.v1.json

bot.crowd-tick@1: the crowd_tick frame OpenVibe.Bot sends on the operator and watch WebSockets of a robot whose access_policy is crowd, at most twice a second while anyone steers (server/crowd/). people is how many hold a fresh drive; pull is the crowd's average on each drive axis, before the viewer cap; style is the mixer (tug, last or mixed); override names the role driving over the crowd right now (owner, mod or operator), or null; paused is true while the crowd waits for that driver. No person is named: the Operators card names people from its own roster.

Fields

FieldTypeRequiredDescriptionConstraints
vconstyes
  • = 1
seqintegeryes
  • minimum 0
tsintegeryes
  • minimum 0
typeconstyes
  • = "crowd_tick"
robot_idstringyes
  • pattern ^rob_[0-9A-HJKMNP-TV-Z]{26}$
peopleintegeryes
  • minimum 0
  • maximum 10000
pullobjectyes
styleenumyes
  • one of "tug", "last", "mixed"
overrideone ofyes
pausedbooleanyes

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: owner-driving
{
  "v": 1,
  "seq": 41,
  "ts": 1759600000041,
  "type": "crowd_tick",
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "people": 3,
  "pull": {
    "throttle": 1
  },
  "style": "mixed",
  "override": {
    "role": "owner"
  },
  "paused": true
}
Valid: tug
{
  "v": 1,
  "seq": 40,
  "ts": 1759600000040,
  "type": "crowd_tick",
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "people": 12,
  "pull": {
    "throttle": 0.42,
    "steer": -0.1
  },
  "style": "tug",
  "override": null,
  "paused": false
}
Rejected: names-a-person
{
  "v": 1,
  "seq": 42,
  "ts": 1759600000042,
  "type": "crowd_tick",
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "people": 2,
  "pull": {
    "throttle": 0.2
  },
  "style": "tug",
  "override": {
    "role": "operator",
    "who": "usr_01J8Z4M2Q0R7T9YV3K6N8P1W2X"
  },
  "paused": true
}
Rejected: pull-out-of-range
{
  "v": 1,
  "seq": 43,
  "ts": 1759600000043,
  "type": "crowd_tick",
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "people": 2,
  "pull": {
    "throttle": 3
  },
  "style": "tug",
  "override": null,
  "paused": false
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('bot.crowd-tick@1', value);   // { valid, errors: [{ path, message }] }