Skip to content

Commit

Permalink
Modified type and speed limit value as discussed in CCB meeting.
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Lemmer <lemmer@fzi.de>
  • Loading branch information
lemmer-fzi authored and pmai committed Apr 4, 2024
1 parent c3f987f commit 2c7ce0e
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions osi_logicallane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";
import "osi_object.proto";
import "osi_trafficsign.proto";

package osi3;

Expand Down Expand Up @@ -895,51 +896,53 @@ message LogicalLane
optional double end_s = 2;

//
// List of vehicle types for which the speed limit is valid.
// List of traffic participan types for which the speed limit is valid.
// If the traffic rule validity is independent of the vehicle type
// the list should be empty.
//
repeated MovingObject.VehicleClassification.Type valid_for_type = 3;
}

//
// \brief Speed limit on a lane.
//
message SpeedLimit {
repeated TypeValidity valid_for_type = 3;

//
// The speed limit in the unit specified by the respective files
// \brief Type of traffic paricipant for which a rule is valid.
//
optional double speed_limit = 1;
message TypeValidity {

//
// The unit in which the speed limit is specified.
//
optional Unit speed_limit_unit = 2;

// Unit of the specified speed limit.
//
enum Unit
{
// Meters per second.
//
// Unit: m/s
// The type of objects for which the traffic rule applys.
// Must not be UNKNOWN or OTHER
//
UNIT_METER_PER_SECOND = 0;

// Kilometers per hour.
optional MovingObject.Type type = 1;

//
// Unit: km/h
// Vehicle classification type for trafic participants
// May only be set if type is TYPE_VEHICLE. Must not be UNKNOWN or OTHER.
//
UNIT_KILOMETER_PER_HOUR = 1;
optional MovingObject.VehicleClassification.Type vehicle_type = 2;

// Miles per hour.
//
// Unit: mph
// Role of traffic participant.
// May only be set if type is TYPE_VEHICLE. Must not be UNKNOWN or OTHER.
//
UNIT_MILE_PER_HOUR = 2;
optional MovingObject.VehicleClassification.Role vehicle_role = 3;
}
}

//
// \brief Speed limit on a lane.
//
message SpeedLimit {

//
// The value of the speed limit.
// The unit filed in the TrafficSigneValue message may only be set to
// units associated with velocities and must not be UNKNOWN or OTHER.
//
// Note: All speed limits are to be modelled this way, indpendent
// of how they are induced.
//
optional TrafficSignValue speed_limit_value = 1;

}
}

}
Expand Down

0 comments on commit 2c7ce0e

Please sign in to comment.