Commit e8b48ea2 authored by urhahne's avatar urhahne
Browse files

refined changes from drafting sessions #8 and #9

parent e11c82a9
Loading
Loading
Loading
Loading
+16 −18
Original line number Diff line number Diff line
@@ -35,27 +35,23 @@ CentimetrePerSecond ::= Int16 -- [cm/s] Option: the range and enumerated value
Centimetre ::= Int20            -- [cm]   Option: the range and enumerated values can be fine-tuned
HighResCurvature ::= Int16      -- [1/m]    0.00001 Option: CAM's curvature was not precise enough
Millisecond16 ::= Int16         -- [ms]     1  Option: CPM's relative time might not precise enough
RadPerSecond ::= Int16          -- [rad/s]  0.0001

GearEnum ::= ENUMERATED {
  neutral(0),    -- N: Neutral / Driving direction is unknown
  forwards(1),   -- D: Vehicle is driving forwards
  backwards(2),  -- R: Vehicle is driving backwards
  park(3)        -- P: Vehicle is in secure standstill, e.g. in PARK gear
}

VehicleOperationModeEnum ::= ENUMERATED {
  unknown(0),
  initializing(1),  -- The vehicle is preparing for the mission, but hasn’t entered automted mode yet.
  prepared(2),      -- The vehicle is in automted mode, but currently doesn’t follow one of the control interfaces (waypoints, direct control, ...).
  driving(3),       -- The vehicle is in automted mode and actively follows one of the control interfaces (waypoints, direct control, ...). It hasn’t reached the end of the given path yet. Also applies if the vehicle stopped temporarily.
  terminating(4)    -- The vehicle left automated mode and is terminating related functions.
  park(0),       -- P: Vehicle is in secure standstill, e.g. in PARK gear
  backwards(1),  -- R: Vehicle is driving backwards
  neutral(2),    -- N: Neutral / Driving direction is unknown
  forwards(3),   -- D: Vehicle is driving forwards
  unknown (4)	 -- Do not use as a command: Unknown or faulted gear state from vehicle
}

VidVehicleStateEnum ::= ENUMERATED {
  vehicle-undefined(0),           			-- Default value
  vehicle-ready(1),               			-- Vehicle is ready to get flashing code
  vehicle-flashing-completed(2),  -- Flashing is finished
  vehicle-authorized(3)           -- Vehicle identification was successful and vehicle has switched its state
  vehicle-lightflashing-inprogress (2), 	-- Vehicle flashing in progress
  vehicle-lightflashing-completed(3),  		-- Flashing is finished
  vehicle-lightflashing-failed (4), 		-- indicating vehicle can’t flash because of vehicle error
  vehicle-authorized(5)           			-- Vehicle identification was successful and vehicle has switched its state
}

SafetyViolationsEnum ::= ENUMERATED {
@@ -71,11 +67,13 @@ SafetyViolationsEnum ::= ENUMERATED {
  curvature-max-violation(9),
  clocks-not-synchronized(10),
  expiration-time-too-high(11),
  monitoring(12)
  monitoring(12),
  ...
}

SessionMissionID ::= IA5String (SIZE(17..32)) -- Session ID response, also suitable to carry VIN for special use cases!

Description ::=  IA5String (SIZE(1..200)) -- for detailed  description, eg. of an error 

ParkingControlE2EProtection ::= SEQUENCE { -- AUTOSAR Profile 4 e2e protection
  length UInt16,
  rollingCounter UInt16,  
+51 −20
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- Park Control Infrastucture Message

IMPORTS

RollingCounter, CentimetrePerSecond, HighResCurvature, GearEnum, WaypointIndex, Pose, ParkingControlE2EProtection, OEMSpecificData, SessionMissionID, UInt8, UInt16, UInt32
RollingCounter, CentimetrePerSecond, Centimetre, HighResCurvature, GearEnum, WaypointIndex, Pose, ParkingControlE2EProtection, OEMSpecificData, SessionMissionID, UInt8, UInt16, UInt32
FROM AVP-Commons-PDU-Descriptions {
  itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103882) avpCommons (5) major-version-1 (1) minor-version-1(1)
}
@@ -30,8 +30,10 @@ Pcim ::= SEQUENCE {
}

VehicleContainer ::= SEQUENCE {
  currentSessionID SessionMissionID,					-- up to 32 character ID
  currentMissionID SessionMissionID OPTIONAL,           -- optional missionID 32 character ID
  checksum UInt32 OPTIONAL,
  msgGenerationTime  TimestampIts OPTIONAL,
  sessionID SessionMissionID,							-- up to 32 character ID
  missionID SessionMissionID OPTIONAL,           		-- optional missionID 32 character ID
														-- Option: smaller data size might be sufficient
  rollingCounterFromPcvm RollingCounter,             	-- PCVM Rolling counter signal paired with serverTimeAtPcvm
  vehicleIdentification VidRequest OPTIONAL,         	-- for generating a blinking pattern for the direction indicator lights
@@ -41,10 +43,10 @@ VehicleContainer ::= SEQUENCE {
  detectedVehiclePose DetectedVehiclePose OPTIONAL,  	-- Contains the most recent pose of the vehicle in the fixed infrastructure coordinate system.
  controlInterface ControlInterface,                 	-- Specifies which interface is used to control the vehicle.
  oemSpecific OEMSpecificData OPTIONAL,                	-- OEM specific 16 bit container for special purposes.
  ...
  ...                                                   -- extension marker
}

VidRequest ::= CHOICE {     -- We proposed a change here: now we are flexible with identification technologies
VidRequest ::= CHOICE {     -- We proposed a change here: with extension marker we are flexible with identification technologies
  blinking Blinking,
  ...
}
@@ -80,7 +82,9 @@ DriveCommand ::= SEQUENCE {
  selectGear GearEnum OPTIONAL,                     -- Requested gear (in line with the driving direction request), incl. request for neutral gear.
  directionIndicator VehicleDirIndicatorEnum,  		-- The currently requested direction indicator.
													-- Option: Using CDD's ExteriorLights can be considered as well. It would support multiple light request commands.
  emergencyStopRequest EmergencyStopEnum OPTIONAL	-- Signal for triggering an emergency stop or brake prefill.
  emergencyStopRequest EmergencyStopEnum OPTIONAL,	-- Signal for triggering an emergency stop or brake prefill.
  interlockRequest InterlockEnum OPTIONAL,          -- During interlock Vehicle can still receive/act on status commands (Gear, Park Brake...)
  hornRequest VehicleHornRequestEnum OPTIONAL   	-- The currently requested audible alarms
}

DetectedVehiclePose ::= SEQUENCE {
@@ -94,7 +98,7 @@ ControlInterface ::= CHOICE {
  trajectoryControl TrajectoryControl
}

PathSnippet ::= SEQUENCE (SIZE(0..5)) OF WayPoint
PathSnippet ::= SEQUENCE (SIZE(0..50)) OF WayPoint

WayPoint ::= SEQUENCE {
  index WaypointIndex,              -- Index of 0 means that the WayPoint is not valid/not treated on vehicle side.
@@ -118,8 +122,19 @@ ControlTrajectory ::= SEQUENCE (SIZE(0..50)) OF ControlPoint

ControlPoint ::= SEQUENCE {
  curvature HighResCurvature,                 			-- Signed curvature value.
  acceleration LongitudinalAccelerationValue  -- Signed acceleration value.
                                              -- To be discussed in the members groups
  controlParameter ControlParameter					  
}

ControlParameter ::= CHOICE {
controlAcceleration ControlAcceleration,
controlVelocity ControlVelocity
}

ControlAcceleration ::= LongitudinalAccelerationValue 	    -- Signed acceleration value.

ControlVelocity ::= SEQUENCE {
  velocity CentimetrePerSecond,  				-- Signed velocity value. Positive: drive forwards / Negative: reverse.
  distanceToStop Centimetre  					-- Unsigned distance-to-stop value
}

StateTrajectory ::= SEQUENCE (SIZE(0..50)) OF StatePoint
@@ -134,8 +149,9 @@ StatePoint ::= SEQUENCE {
DriveCommandActionEnum ::= ENUMERATED {
  unknown(0),     -- No command given by the RVO.
  initialize(1),  -- The vehicle shall initialize and prepare for a driving job
  drive(2),       -- The vehicle shall actively drive and follow the path
  terminate(3)    -- The vehicle shall disable all interfaces and shutdown as soon as possible
  wait(2), 		  -- The vehicle shall wait in marshalling capable state
  drive(3),       -- The vehicle shall actively drive and follow the path
  terminate(4)    -- The vehicle shall disable all interfaces and shutdown as soon as possible
}

TerminateReasonEnum ::= ENUMERATED {
@@ -149,7 +165,22 @@ TerminateReasonEnum ::= ENUMERATED {
EmergencyStopEnum ::= ENUMERATED {
  inactive(0),   	-- The vehicle shall not use EmergencyStop at this stage
  precharge(1),  	-- The vehicle shall stay in standby (brake prefill) and wait for an active command
  active(2)      -- The vehicle shall initiate an emergency stop using the maximum possible deceleration
  active(2),      	-- The vehicle shall initiate an emergency stop using the maximum possible deceleration
  temp-error(3),	-- Maturing Failures - Decel and hold, waiting for failure to clear or mature)
  suspend(4)		-- for Critical Failures - Decel and secure - not recoverable
} 

InterlockEnum ::= ENUMERATED {
  none(0),   			-- The vehicle shall not use Interlock at this stage
  zonal-interlock(1),  	-- Zonal Interlock (specific to plant case)
  global-stop(2)      	-- global stop for external operator intervention 
}

VehicleHornRequestEnum ::= ENUMERATED {
  none(0),   			-- no horn
  single-horn(1),		-- for alerting surroundings when marshalling of vehicle is starting
  double-horn(2),		-- For notifying pedestrians who pose obstacles
  hold-horn(3)			-- In event of ground staff intervention needed for vehicle
}

VehicleDirIndicatorEnum ::= ENUMERATED {
+77 −17
Original line number Diff line number Diff line
@@ -6,16 +6,16 @@ DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- Park Control Vehicle Message

IMPORTS

ItsPduHeader, TimestampIts
FROM ETSI-ITS-CDD {
  itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) 102894 cdd (2) major-version-3 (3) minor-version-1 (1)
}

RollingCounter, OEMSpecificData, GearEnum, CentimetrePerSecond, HighResCurvature, WaypointIndex, Pose, SessionMissionID, ParkingControlE2EProtection, VehicleOperationModeEnum, VidVehicleStateEnum , UInt8, UInt16, UInt32, Millisecond16, SafetyViolationsEnum 
RollingCounter, OEMSpecificData, GearEnum, CentimetrePerSecond, Centimetre, RadPerSecond, HighResCurvature, WaypointIndex, Pose, SessionMissionID, Description, ParkingControlE2EProtection, VidVehicleStateEnum , UInt8, UInt16, UInt32, Millisecond16, SafetyViolationsEnum 
FROM AVP-Commons-PDU-Descriptions {
  itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103882) avpCommons (5) major-version-1 (1) minor-version-1(1)
}

ItsPduHeader, TimestampIts, VehicleMass
FROM ETSI-ITS-CDD {
  itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) 102894 cdd (2) major-version-3 (3) minor-version-1 (1)
}

;

PCVM ::= SEQUENCE {
@@ -25,7 +25,9 @@ PCVM ::= SEQUENCE {
}

Pcvm ::= SEQUENCE {
  msgGenerationTime  TimestampIts OPTIONAL,
  sessionID SessionMissionID,										-- 32 character ID   				
  missionID SessionMissionID OPTIONAL,           					-- optional missionID 32 character ID
  rollingCounterFromPcim RollingCounter,     						-- Rolling counter of last received PCIM
  vehicleState VehicleState,                 						-- Relevant vehicle information.
  safetyTimeSyncResponse SafetyTimeSyncResponse OPTIONAL,			-- Functional Safety related container
@@ -33,11 +35,13 @@ Pcvm ::= SEQUENCE {
  vehicleError VehicleError OPTIONAL,        						-- Optional error information. Depending on the given error, the infrastructure either tries to resolve the issue or aborts the mission.
  vehicleDebug VehicleDebug OPTIONAL,        						-- Optional debug information.
  vehicleSafetyFeedback VehicleSafetyFeedback OPTIONAL, 			-- Relevant safety information from vehicle
  vehicleProperties VehicleProperties OPTIONAL,         			-- Addition of vehicle-specific data elements as feedback from vehicle to external system
  oemSpecific OEMSpecificData OPTIONAL, 							-- OEM specific 16 bit container for special purposes.
  ...                                                               -- extension marker
}

VehicleState ::= SEQUENCE {
  vehicleStateGenerationTime  TimestampIts OPTIONAL,  -- checks on the Data Freshness on receive side 
  operationMode VehicleOperationModeEnum,             -- The current operation mode or state of the vehicle.
  vehicleAutorizationState VidVehicleStateEnum,       -- The current authorization/vehicle identification state
  gearSelected GearEnum,                              -- Direction in which the vehicle is currently driving or about to drive.
@@ -51,13 +55,10 @@ VehicleState ::= SEQUENCE {
VehicleError ::= SEQUENCE {
  time TimestampIts,    				-- Timestamp when the error occurred.
  vehCode VehCodeEnum,  				-- Depending on the given error, the infrastructure either tries to resolve the issue or aborts the mission, saves this message for logging and forwards its content to the backend.
  customCode UInt8      -- Customer specific error code. The infrastructure won't further interpret this value.
  customCode UInt8,     				-- Customer specific error code. The infrastructure won't further interpret this value.
  description Description OPTIONAL		-- optional description of the error with further details
}

VehCodeEnum ::= ENUMERATED {
  unspecified(0),        -- Any kind of error that is not specified otherwise. Infrastructure aborts the mission.
  path-not-driveable(1)  -- The vehicle can’t follow the given waypoints, based on the given DetectedVehiclePose. Infrastructure tries to plan a different path or aborts the mission otherwise.
}

VehicleDebug ::= SEQUENCE {               -- Optional information from the vehicle that might help debugging and analysis
  requestedVelocity CentimetrePerSecond,  -- The currently requested velocity sent to the vehicle. Negative when driving backwards.
@@ -85,8 +86,67 @@ SafetyTimeSyncResponse ::= SEQUENCE {
}

SafeVehicleTypeConfirmation ::= SEQUENCE {
  vehicleType IA5String (SIZE(32)), -- vehicle type identifier
  vehicleType IA5String (SIZE(1..32)), 	-- vehicle type identifier
  checksum UInt32                   	-- See safety checksum calculation
}

VehicleProperties ::= SEQUENCE {
  basicVehicleClass BasicVehicleClassEnum,
  vehicleLength  Centimetre,  --  
  vehicleWheelbase  Centimetre,  -- 
  vehicleRearOverhang  Centimetre,  -- 
  vehicleWidth  Centimetre,  -- 
  vehicleTireWidth  Centimetre,  -- 
  vehicleTrackWidth Centimetre,  --
  vehicleMass VehicleMass,
  vehicleSpeedLimit  CentimetrePerSecond,  -- 
  vehicleCuvatureLimit  HighResCurvature,   	-- max. curvature for left and right turning (assumed symmetrical)
  vehicleMaxAngularSteeringRate RadPerSecond,  	-- max steering rate for automated operation (rate of road wheel angle)
  ...
}

-- ******************** PCVM specific ENUMs ***************************

VehicleOperationModeEnum ::= ENUMERATED {
  unknown(0),
  initializing(1),  		-- The vehicle is preparing for the mission, but hasn’t entered automted mode yet.
  prepared(2),      		-- The vehicle is in automted mode, but currently doesn’t follow one of the control interfaces (waypoints, direct control, ...).
  driving(3),       		-- The vehicle is in automted mode and actively follows one of the control interfaces (waypoints, direct control, ...). It hasn’t reached the end of the given path yet. Also applies if the vehicle stopped temporarily.
  terminating(4),   		-- The vehicle left automated mode and is terminating related functions.
  suspend (5), 				-- The vehicle is in a critical error state and requires external operator intervention
  temp-error (6),           -- The vehicle is in a non-critical error state and is initiating a deceleration into stop and hold, prior to suspend
  human-in-control (7), 		-- Manual control of the vehicle has been taken over 
  station-hold (8),		    -- The external mfg./customer environment interlocks have taken over and is holding the vehicle from marshalling 
  ...
}

VehCodeEnum ::= ENUMERATED {
  unspecified(0),        		-- Any kind of error that is not specified otherwise. Infrastructure aborts the mission.
  path-not-driveable(1),  		-- The vehicle can’t follow the given waypoints, based on the given DetectedVehiclePose. Infrastructure tries to plan a different path or aborts the mission otherwise.
  onboard-vehicle-fault (2), 	-- fauld during vehicle onboarding
  communication-fault (3),		-- vehicle internal comms fault
  vehicle-egress-fault (4),		-- Failure during vehicle AVP egress or shutdown process
  ...
}

BasicVehicleClassEnum ::= ENUMERATED {
  none (0), -- Not Equipped, Not known or unavailable
  unknown (1), -- Does not fit any other category
  special (2), -- Special use
  moto (3), -- Motorcycle
  car (4), -- Passenger car
  carOther (5), -- Four tire single units
  bus (6), -- Buses
  axleCnt2 (7), -- Two axle, six tire single units
  axleCnt3 (8), -- Three axle, single units
  axleCnt4 (9), -- Four or more axle, single unit
  axleCnt4Trailer (10), -- Four or less axle, single trailer
  axleCnt5Trailer (11), -- Five or less axle, single trailer
  axleCnt6Trailer (12), -- Six or more axle, single trailer
  axleCnt5MultiTrailer (13), -- Five or less axle, multi-trailer
  axleCnt6MultiTrailer (14), -- Six axle, multi-trailer
  axleCnt7MultiTrailer (15), -- Seven or more axle, multi-trailer
  ...
}

END
+1 −1
Original line number Diff line number Diff line
@@ -48,4 +48,4 @@
      <item instance-name="" message="PCVM"/>
    </capl_message_map>
  </properties>
<protocol name="PCVM"><encoding entry-point="PCVM" method="per"/><lower-layer name="btp" value2="2019"/><source path="ASNV_Module_PCVM.xml"/></protocol><protocol name="PCIM"><encoding entry-point="PCIM" method="per"/><lower-layer name="btp" value2="2018"/><source path="ASNV_Module_PCIM.xml"/></protocol></asnv>
 No newline at end of file
<protocol name="PCIM"><encoding entry-point="PCIM" method="per"/><lower-layer name="btp" value2="2018"/><source path="ASNV_Module_PCIM.xml"/></protocol><protocol name="PCVM"><encoding entry-point="PCVM" method="per"/><lower-layer name="btp" value2="2019"/><source path="ASNV_Module_PCVM.xml"/></protocol></asnv>
 No newline at end of file
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading