Task

Task#

Schema#

$id: http://navground/task
$ref: task_register
$schema: https://json-schema.org/draft/2020-12/schema
properties:
  type:
    type: string
type: object
unevaluatedProperties: false

Register#

$id: http://navground/task_register
$schema: https://json-schema.org/draft/2020-12/schema
anyOf:
- properties:
    direction:
      $ref: vector2
      default:
      - 1
      - 0
      description: direction
    type:
      const: Direction
- properties:
    points:
      default: []
      description: points
      items:
        $ref: vector2
      minItems: 2
      type: array
    tolerance:
      default: 1
      description: tolerance
      minimum: 0
      type: number
    type:
      const: Path
- properties:
    loop:
      default: true
      description: loop
      type: boolean
    random:
      default: false
      description: Whether to pick the next waypoint randomly
      type: boolean
    tolerance:
      default: 1
      description: tolerance
      minimum: 0
      type: number
    type:
      const: Waypoints
    waypoints:
      default: []
      description: waypoints
      items:
        $ref: vector2
      minItems: 1
      type: array

Example#

type: Waypoints
waypoints: [[0.1, 1.2], [3.4, 4.5], [5.6, 7.8]]
tolerance: 0.2