Speedometer Component

Todo

Describe the purpose of the speedometer plugin.

Triggers

As with vehicles, plugin trigger event names are dependent on the given name of a plugin in a simulation. This is by default the name of the plugin itself, which is used in this documentation.

<vehicle>/kmph

Triggers when the specified comparison with the vehicle speed evaluates to true.

Parameter

Required

Type

Description

is

yes

string

Comparison operator and numeric constant,
where operator is one of:
==, !=, <, <=, >, and >=.
Spaces surrounding the operator are ignored.

Inline short-form is supported as the content of is.

Examples:

[
  { "event": { "name": "default/kmph", "is": "==0" },
    "action": { "name": "insert", "triggers": [
      {"event": "next", "action": "log=info:Full-stop achieved."},
      {"event": "next", "action": "basic/hmi=enable"}
    ]}
  },
  { "label": "fail if vehicle speed exceeds 100 km/h",
    "event": "default/kmph=>100.0", "action": "fail" }
]

Defaults

The following help can be viewed with cloe-engine usage speedometer

Name: speedometer
Type: component
Path: ~/.conan/data/cloe-plugin-speedometer/0.25.0/cloe/develop/package/722452d8f3bfc1eef1fc5de534638769b66120b8/lib/cloe/component_speedometer.so
Usage: null
Defaults: {}

JSON Schema

The following schema can be viewed with cloe-engine usage --json speedometer.

{
  "$id": "~/.conan/data/cloe-plugin-speedometer/0.25.0/cloe/develop/package/722452d8f3bfc1eef1fc5de534638769b66120b8/lib/cloe/component_speedometer.so",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "description": "provide an event trigger to evaluate speed in km/h",
  "properties": {},
  "title": "speedometer",
  "type": "object"
}