Skip to content

Commit

Permalink
Add rules according to notes in the documentation
Browse files Browse the repository at this point in the history
Signed-off-by: ClemensLinnhoff <clemens.linnhoff@partner.bmw.de>
  • Loading branch information
ClemensLinnhoff committed May 3, 2024
1 parent 560d23a commit acf1ff1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osi_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ message ExternalReference

// The type of the external references.
//
// Mandatory value describing the type of the original source.
// Value describing the type of the original source.
//
// For OpenX/ASAM standards it is specified as follows:
// - net.asam.opendrive
Expand All @@ -245,6 +245,10 @@ message ExternalReference
// reverse domain name notation with lower-case type field
// is recommended to guarantee unique and interoperable identification.
//
// \rules
// is_set
// \endrules
//
optional string type = 2;

// The external identifier reference value.
Expand Down
12 changes: 12 additions & 0 deletions osi_detectedobject.proto
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ message DetectedMovingObject
// \note This field is mandatory if the \c CandidateMovingObject::type
// is \c MovingObject::TYPE_VEHICLE .
//
// \rules
// check_if this.type is_equal_to 2 else do_check is_set
// \endrules
//
optional MovingObject.VehicleClassification vehicle_classification = 3;

// Pedestrian head pose for behavior prediction. Describes the head
Expand All @@ -339,6 +343,10 @@ message DetectedMovingObject
// \note This field is mandatory if the \c CandidateMovingObject.type is
// \c MovingObject::TYPE_PEDESTRIAN
//
// \rules
// check_if this.type is_equal_to 3 else do_check is_set
// \endrules
//
// \par Reference:
//
// [1] Patton, K. T. & Thibodeau, G. A. (2015). <em>Anatomy & Physiology</em>. 9th Edition. Elsevier. Missouri, U.S.A. ISBN 978-0-323-34139-4. p. 1229.
Expand All @@ -358,6 +366,10 @@ message DetectedMovingObject
// \note This field is mandatory if the \c CandidateMovingObject::type
// is \c MovingObject::TYPE_PEDESTRIAN
//
// \rules
// check_if this.type is_equal_to 3 else do_check is_set
// \endrules
//
// \par Reference:
// [1] Patton, K. T. & Thibodeau, G. A. (2015). <em>Anatomy & Physiology</em>. 9th Edition. Elsevier. Missouri, U.S.A. ISBN 978-0-323-34139-4. p. 1229.
//
Expand Down
1 change: 1 addition & 0 deletions osi_route.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ message Route
//
// \rules
// is_set
// is_globally_unique
// \endrules
//
optional Identifier route_id = 1;
Expand Down
5 changes: 5 additions & 0 deletions osi_trafficcommand.proto
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ message TrafficAction
// \note This id must be unique within all traffic command
// messages exchanged with one traffic participant.
//
// \rules
// is_set
// is_globally_unique
// \endrules
//
optional Identifier action_id = 1;
}

Expand Down

0 comments on commit acf1ff1

Please sign in to comment.