Go to CAV-TEC V2.0 Data Types

Definition
Functional Requirements
Syntax
Semantics
Conformance
Performance

1 Definition

Traffic Rules is a Data Type representing the traffic rules that apply in a U-Environment: the rules of the road of Chapter II of the Convention on Road Traffic (Vienna, 1968), the parameters the Convention leaves to the Contracting Party where the CAV drives, and the road signs and signals (Convention on Road Signs and Signals, Vienna, 1968) with what they require.

2 Functional Requirements

Traffic Rules shall:

  • Identify the instruments the rules and signs are taken from, the text used, and the amendments included or not.
  • Identify the Contracting Party (or a generic party keeping to the right or to the left) whose rules these are, and the profile it completes.
  • Give, by name, the values the rules use: those fixed by the Convention and those left to domestic legislation, with their source and whether they were checked against the text of the law. The traffic side and the priority at intersections without signs are always given.
  • Represent each rule of the road (one per paragraph or group of paragraphs of the Convention) with its status (binding, recommended, domestic option), its modality (must, must not, may), the road users it applies to, where or when it applies, the behaviour it asks, the parameters it uses, who carries it out in a CAV (the driving, the vehicle equipment, the operator) or whether it is an expectation on other road users, and its text.
  • Represent the road signs and signals with their category and what each requires (behaviour, rule applied, value, side, category of road users, zonal validity).

Traffic Rules provides the semantics of the rules and signs, not the visual representation of the signs, which is assumed to be known to the device performing sign recognition.

3 Syntax

https://schemas.mpai.community/CAV2/V2.0/data/TrafficRules.json

4 Semantics

Table 1 specifies the semantics of the Traffic Rules Data Type.

Table 1 – Semantics of the Traffic Rules Data Type

Label Type Req. Description
Header string (CAV-TRR-V2.0) Yes Traffic Rules Header – Standard CAV-TRR-Vx.y.
MInstanceID string Identifier of the M-Instance (Virtual Space) associated with this Traffic Rules instance.
UEnvironmentID string Identifier of the U-Environment (Real Space) whose traffic rules these are.
TrafficRulesID string Yes Identifier of this Traffic Rules instance.
TrafficRulesTime Simple Time Time this Traffic Rules instance was produced.
Sources array of object Yes The instruments the rules and signs are taken from, with the text used and the amendments included or not.
Sources.Instrument string Yes Name of the instrument (e.g. Convention on Road Traffic).
Sources.Done string Place and date the instrument was done (e.g. Vienna, 8 November 1968).
Sources.Chapter string Part of the instrument used (e.g. Chapter II, Rules of the Road).
Sources.Text string Yes Where the text used comes from.
Sources.Categories object Names of the categories the instrument uses (e.g. the sign categories A to H), by letter or code.
Sources.Amendments array of object The amendments of the instrument.
Sources.Amendments.Name string Yes Name of the amendment.
Sources.Amendments.InForce string (date) Date the amendment entered into force.
Sources.Amendments.Text string Where the text of the amendment comes from.
Sources.Amendments.Included boolean Yes True if the amendment is included in the Rules and Signs.
Sources.Amendments.Note string Remark on the amendment.
Jurisdiction object Yes The Contracting Party (or the generic party of one traffic side) whose rules these are.
Jurisdiction.Code string Yes ISO 3166-1 alpha-2 code, or RHT / LHT for a generic party keeping to the right / left.
Jurisdiction.Name string Yes Name of the Contracting Party or of the generic party.
Jurisdiction.ConventionParty boolean True if the Contracting Party is a party to the Convention.
Jurisdiction.BasedOn string The Code of the profile this one completes.
Jurisdiction.DomesticLaw string The domestic law that completes the Convention (e.g. the national highway code).
Parameters object Yes The values the rules use, by name: those the Convention fixes and those it leaves to domestic legislation. Each Parameter is an object with the fields below; TrafficSide and UnsignedIntersectionPriority are required.
Parameters.TrafficSide.Value string (Right | Left) Yes The side of the road traffic keeps to.
Parameters.UnsignedIntersectionPriority.Value string (FromRight | FromLeft | NoGeneralRule) Yes Who has priority at an intersection without signs.
Parameters.<Name>.Value number | string | boolean | object | null Yes A number, a word, a boolean, an object of values by class (e.g. speed limits by road class), or null when not set.
Parameters.<Name>.Unit string Unit of the Value (e.g. km/h, m, s).
Parameters.<Name>.Source string (Convention | Domestic | Unset) Yes Convention: the value is fixed by the Convention; Domestic: by domestic legislation; Unset: not set.
Parameters.<Name>.Reference string Article or paragraph of the instrument or of the domestic law that gives the value.
Parameters.<Name>.Verified boolean False: the value was not checked against the text of the law.
Rules array of object Yes The rules of the road, one per paragraph (or group of paragraphs) of the Convention.
Rules.RuleID string Yes Identifier of the rule: VC68-<Article>[-<Paragraph>] (e.g. VC68-18-4).
Rules.Article integer | string Yes Article of the Convention (5 to 34, or e.g. 34bis).
Rules.Paragraph string Paragraph(s) of the Article.
Rules.Title string Yes Title of the Article or short title of the rule.
Rules.Status string (Binding | Recommended | DomesticOption) Yes Binding: ‘shall’; Recommended: ‘it is recommended that domestic legislation’; DomesticOption: Contracting Parties may.
Rules.Modality string (Must | MustNot | May) Yes Must: the behaviour is required; MustNot: it is forbidden; May: it is allowed.
Rules.AppliesTo array of string (AllRoadUsers | Driver | Vehicle | HeavyVehicle | Pedestrian | Cyclist | MotorCyclist | AnimalDriver | Passenger | Jurisdiction) Yes The road users, vehicles or the Jurisdiction the rule applies to.
Rules.Context array of string Where or when the rule applies (Intersection, PedestrianCrossing, Overtaking, Motorway…).
Rules.Behaviour string Yes What the rule asks, as a name the driving software acts on or checks.
Rules.Parameters array of string Names of the Parameters the rule uses.
Rules.Automation string (Driving | Vehicle | Operator | Expectation) Yes Driving: done by the dynamic control of the vehicle; Vehicle: by its equipment (indicators, lights, doors); Operator: by whoever operates the vehicle; Expectation: a rule of other road users that the CAV may expect them to follow.
Rules.Text string Yes The text of the Convention (or its gist).
Rules.SatisfiedBy string The RuleID of a rule under which this one is deemed satisfied.
Rules.Amendment string Name of the amendment that introduced or changed the rule.
Signs array of object The road signs and signals, and what each requires.
Signs.SignID string Yes Identifier of the sign (e.g. A-Left-Bend).
Signs.Name string Yes Name of the sign.
Signs.Category string (A | B | C | D | E | F | G | H | Lights | Markings | Works | LevelCrossing) Yes Category of the sign in the Convention on Road Signs and Signals (A Danger warning, B Priority, C Prohibitory or restrictive, D Mandatory, E Special regulation, F Information, facilities or service, G Direction, position or indication, H Additional panels), or Lights, Markings, Works, LevelCrossing.
Signs.Group string Group of signs within the Category.
Signs.Effect object What the sign requires.
Signs.Effect.Behaviour string Yes What the sign requires, as a name the driving software acts on or checks.
Signs.Effect.Rule string The RuleID the sign applies.
Signs.Effect.Value number | string Value the sign gives (e.g. a speed, a mass, a length).
Signs.Effect.Unit string Unit of the Value.
Signs.Effect.Side string (Left | Right) Side the sign refers to.
Signs.Effect.AppliesToCategory string Category of vehicles or road users the sign applies to.
Signs.Effect.Zonal boolean True if the sign applies to a zone rather than to a point or a road section.
DataXMData Data Exchange Metadata MPAI-PTF Data Exchange Metadata providing provenance, authorisation, legal, security, and confidence information associated with this Traffic Rules instance in a trusted data exchange context.
DescrMetadata string Human-readable descriptive metadata of the Traffic Rules instance (plain text, max 2048 characters).

5 Conformance Testing

Data conform to the Traffic Rules Data Type when they validate against its schema. If the schema references other schemas, data referencing a secondary schema shall also validate against that schema, if present, and conform with the Qualifier, if present.

6 Performance Assessment