Skip to content

Commit da6d8c0

Browse files
committed
Clarify OSC <-> OSI mapping for vehicle types
Specifically removing renaming of heavy-truck -> truck and defining the mapping instead. Signed-off-by: Caspar de Haes <caspar.dehaes@five.ai>
1 parent 7dbbda8 commit da6d8c0

File tree

1 file changed

+66
-14
lines changed

1 file changed

+66
-14
lines changed

osi_object.proto

Lines changed: 66 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -745,80 +745,132 @@ message MovingObject
745745
//
746746
// Definition: Hatchback car with maximum length 4 m.
747747
//
748+
// This is one of the OSI types which map from "car" in both OpenScenario 1.x and 2.x.
749+
//
748750
TYPE_SMALL_CAR = 2;
749751

750752
// Vehicle is a compact car.
751753
//
752754
// Definition: Hatchback car with length between 4 and 4.5 m.
753755
//
756+
// This is one of the OSI types which map from "car" in both OpenScenario 1.x and 2.x.
757+
//
754758
TYPE_COMPACT_CAR = 3;
755759

756760
// Vehicle is a medium car.
757761
//
758762
// Definition: Hatchback or sedan with lenght between 4.5 and 5 m.
759763
//
764+
// This is one of the OSI types which map from "car" in both OpenScenario 1.x and 2.x.
765+
//
760766
TYPE_MEDIUM_CAR = 4;
761767

762768
// Vehicle is a luxury car.
763769
//
764770
// Definition: Sedan or coupe that is longer then 5 m.
765771
//
772+
// This is one of the OSI types which map from "car" in both OpenScenario 1.x and 2.x.
773+
//
766774
TYPE_LUXURY_CAR = 5;
767775

768776
// Vehicle is a delivery van.
769777
//
770778
// Definition: A delivery van.
771779
//
780+
// This corresponds to "van" in OpenScenario 1.x.
781+
//
782+
// This is one of the OSI types which map from "truck" in OpenScenario 2.x.
783+
//
772784
TYPE_DELIVERY_VAN = 6;
773785

774-
// This vehicle type is deprecated. See TYPE_TRUCK for more
775-
// details.
786+
// Vehicle is a (heavy) truck.
787+
//
788+
// Definition: A rigid-body truck that cannot pull a semi-trailer.
789+
//
790+
// This corresponds to "truck" in OpenScenario 1.x.
791+
//
792+
// This is one of the OSI types which map from "truck" in OpenScenario 2.x.
776793
//
777794
TYPE_HEAVY_TRUCK = 7;
778795

779-
// This vehicle type is deprecated. See TYPE_TRUCK for more
780-
// details.
796+
// Vehicle is a tractor unit capable of pulling a semi-trailer.
797+
//
798+
// Definition: The cab for an articulated vehicle.
799+
//
800+
// This has no equivalent in OpenScenario 1.x.
801+
//
802+
// This is one of the OSI types which map from "truck" in OpenScenario 2.x.
803+
//
804+
TYPE_SEMITRACTOR = 16;
805+
806+
// This vehicle is a trailer unit for an articulated vehicle.
807+
//
808+
// Definition: A trailer that can be pulled by a semi-tractor.
809+
// There is no precise definition of this vs a typical trailer, although
810+
// typically it is used for trailers with a non-trivial bounding box
811+
// overlap with the tractor unit.
812+
//
813+
// This corresponds to "semitrailer" in OpenScenario 1.x.
814+
//
815+
// This is one of the OSI types which map from "trailer" in OpenScenario 2.x.
781816
//
782817
TYPE_SEMITRAILER = 8;
783818

784819
// Vehicle is a trailer (possibly attached to another vehicle).
785820
//
821+
// Definition: A trailer that isn't pulled by a semi-tractor.
822+
//
823+
// This corresponds to "trailer" in OpenScenario 1.x.
824+
//
825+
// This is one of the OSI types which map from "trailer" in OpenScenario 2.x.
826+
//
786827
TYPE_TRAILER = 9;
787828

788829
// Vehicle is a motorbike or moped.
789830
//
831+
// This corresponds to "motorbike" in OpenScenario 1.x.
832+
//
833+
// This is one of the OSI types which map from "VRU_vehicle" in OpenScenario 2.x.
834+
//
790835
TYPE_MOTORBIKE = 10;
791836

792837
// Vehicle is a bicycle (without motor and specific lights).
793838
//
839+
// This corresponds to "bicycle" in OpenScenario 1.x.
840+
//
841+
// This is one of the OSI types which map from "VRU_vehicle" in OpenScenario 2.x.
842+
//
794843
TYPE_BICYCLE = 11;
795844

796845
// Vehicle is a bus.
797846
//
847+
// This corresponds to "bus" in both OpenScenario 1.x and 2.x.
848+
//
798849
TYPE_BUS = 12;
799850

800851
// Vehicle is a tram.
801852
//
853+
// This corresponds to "tram" in OpenScenario 1.x.
854+
//
855+
// This has no equivalent in OpenScenario 2.x.
856+
//
802857
TYPE_TRAM = 13;
803858

804859
// Vehicle is a train.
805860
//
861+
// This corresponds to "train" in OpenScenario 1.x.
862+
//
863+
// This has no equivalent in OpenScenario 2.x.
864+
//
806865
TYPE_TRAIN = 14;
807866

808867
// Vehicle is a wheelchair.
809868
//
810-
TYPE_WHEELCHAIR = 15;
811-
812-
// Vehicle is a truck.
869+
// This has no equivalent in OpenScenario 1.x.
813870
//
814-
// Definition: any large vehicle used for transport of goods
815-
// or materials. Covers all rigid body vehicles, irrespective
816-
// of the number of axles. For articulated vehicles, the tractor
817-
// and trailer(s) should be reported as separate moving objects
818-
// with TYPE_TRUCK used for the tractor, and TYPE_TRAILER used
819-
// for all trailers.
871+
// This is one of the OSI types which map from "VRU_vehicle" in OpenScenario 2.x.
820872
//
821-
TYPE_TRUCK = 16;
873+
TYPE_WHEELCHAIR = 15;
822874
}
823875

824876
//

0 commit comments

Comments
 (0)