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.
| 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. |
string | Yes | Name of the instrument (e.g. Convention on Road Traffic). |
| Sources. |
string | Place and date the instrument was done (e.g. Vienna, 8 November 1968). | |
| Sources. |
string | Part of the instrument used (e.g. Chapter II, Rules of the Road). | |
| Sources. |
string | Yes | Where the text used comes from. |
| Sources. |
object | Names of the categories the instrument uses (e.g. the sign categories A to H), by letter or code. | |
| Sources. |
array of object | The amendments of the instrument. | |
| Sources. |
string | Yes | Name of the amendment. |
| Sources. |
string (date) | Date the amendment entered into force. | |
| Sources. |
string | Where the text of the amendment comes from. | |
| Sources. |
boolean | Yes | True if the amendment is included in the Rules and Signs. |
| Sources. |
string | Remark on the amendment. | |
| Jurisdiction | object | Yes | The Contracting Party (or the generic party of one traffic side) whose rules these are. |
| Jurisdiction. |
string | Yes | ISO 3166-1 alpha-2 code, or RHT / LHT for a generic party keeping to the right / left. |
| Jurisdiction. |
string | Yes | Name of the Contracting Party or of the generic party. |
| Jurisdiction. |
boolean | True if the Contracting Party is a party to the Convention. | |
| Jurisdiction. |
string | The Code of the profile this one completes. | |
| Jurisdiction. |
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. |
string (Right | Left) | Yes | The side of the road traffic keeps to. |
| Parameters. |
string (FromRight | FromLeft | NoGeneralRule) | Yes | Who has priority at an intersection without signs. |
| Parameters. |
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. |
string | Unit of the Value (e.g. km/h, m, s). | |
| Parameters. |
string (Convention | Domestic | Unset) | Yes | Convention: the value is fixed by the Convention; Domestic: by domestic legislation; Unset: not set. |
| Parameters. |
string | Article or paragraph of the instrument or of the domestic law that gives the value. | |
| Parameters. |
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. |
string | Yes | Identifier of the rule: VC68-<Article>[-<Paragraph>] (e.g. VC68-18-4). |
| Rules. |
integer | string | Yes | Article of the Convention (5 to 34, or e.g. 34bis). |
| Rules. |
string | Paragraph(s) of the Article. | |
| Rules. |
string | Yes | Title of the Article or short title of the rule. |
| Rules. |
string (Binding | Recommended | DomesticOption) | Yes | Binding: ‘shall’; Recommended: ‘it is recommended that domestic legislation’; DomesticOption: Contracting Parties may. |
| Rules. |
string (Must | MustNot | May) | Yes | Must: the behaviour is required; MustNot: it is forbidden; May: it is allowed. |
| Rules. |
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. |
array of string | Where or when the rule applies (Intersection, PedestrianCrossing, Overtaking, Motorway…). | |
| Rules. |
string | Yes | What the rule asks, as a name the driving software acts on or checks. |
| Rules. |
array of string | Names of the Parameters the rule uses. | |
| Rules. |
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. |
string | Yes | The text of the Convention (or its gist). |
| Rules. |
string | The RuleID of a rule under which this one is deemed satisfied. | |
| Rules. |
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. |
string | Yes | Identifier of the sign (e.g. A-Left-Bend). |
| Signs. |
string | Yes | Name of the sign. |
| Signs. |
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. |
string | Group of signs within the Category. | |
| Signs. |
object | What the sign requires. | |
| Signs. |
string | Yes | What the sign requires, as a name the driving software acts on or checks. |
| Signs. |
string | The RuleID the sign applies. | |
| Signs. |
number | string | Value the sign gives (e.g. a speed, a mass, a length). | |
| Signs. |
string | Unit of the Value. | |
| Signs. |
string (Left | Right) | Side the sign refers to. | |
| Signs. |
string | Category of vehicles or road users the sign applies to. | |
| Signs. |
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.