Branch data Line data Source code
1 : : /* 2 : : * ----------------- BEGIN LICENSE BLOCK --------------------------------- 3 : : * 4 : : * Copyright (C) 2018-2021 Intel Corporation 5 : : * 6 : : * SPDX-License-Identifier: LGPL-2.1-only 7 : : * 8 : : * ----------------- END LICENSE BLOCK ----------------------------------- 9 : : */ 10 : : 11 : : /* 12 : : * Generated file 13 : : */ 14 : : 15 : : #include <gtest/gtest.h> 16 : : 17 : : #include <limits> 18 : : 19 : : #include "ad/rss/situation/SituationValidInputRange.hpp" 20 : : 21 : 2 : TEST(SituationValidInputRangeTests, testValidInputRange) 22 : : { 23 : 1 : ::ad::rss::situation::Situation value; 24 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 25 : 1 : value.situationId = valueSituationId; 26 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 27 : 1 : value.objectId = valueObjectId; 28 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 29 : 1 : value.situationType = valueSituationType; 30 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 31 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 32 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 33 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 34 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 35 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 36 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 37 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 38 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 39 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 40 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 41 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 42 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 43 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 44 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 45 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 46 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 47 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 48 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 49 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 50 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 51 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 52 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 53 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 54 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 55 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 56 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 57 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 58 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 59 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 60 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 61 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 62 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 63 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 64 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 65 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 66 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 67 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 68 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 69 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 70 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 71 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 72 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 73 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 74 : : // struct 75 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 76 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 77 : : valueEgoVehicleStateDynamicsResponseTime 78 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 79 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 80 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 81 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 82 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 83 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 84 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 85 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 86 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 87 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 88 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 89 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 90 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 91 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 92 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 93 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 94 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 95 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 96 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 97 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 98 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 99 : : std::numeric_limits<uint32_t>::min()}; 100 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 101 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 102 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 103 : : std::numeric_limits<uint32_t>::min()}; 104 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 105 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 106 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 107 : : std::numeric_limits<uint32_t>::min()}; 108 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 109 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 110 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 111 : : std::numeric_limits<uint32_t>::min()}; 112 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 113 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 114 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 115 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 116 : 1 : bool valueEgoVehicleStateHasPriority{true}; 117 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 118 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 119 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 120 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 121 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 122 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 123 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 124 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 125 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 126 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 127 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 128 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 129 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 130 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 131 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 132 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 133 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 134 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 135 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 136 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 137 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 138 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 139 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 140 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 141 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 142 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 143 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 144 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 145 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 146 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 147 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 148 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 149 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 150 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 151 : 1 : value.egoVehicleState = valueEgoVehicleState; 152 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 153 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 154 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 155 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 156 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 157 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 158 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 159 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 160 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 161 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 162 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 163 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 164 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 165 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 166 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 167 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 168 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 169 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 170 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 171 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 172 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 173 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 174 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 175 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 176 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 177 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 178 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 179 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 180 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 181 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 182 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 183 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 184 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 185 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 186 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 187 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 188 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 189 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 190 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 191 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 192 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 193 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 194 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 195 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 196 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 197 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 198 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 199 : : valueOtherVehicleStateDynamicsResponseTime 200 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 201 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 202 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 203 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 204 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 205 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 206 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 207 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 208 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 209 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 210 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 211 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 212 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 213 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 214 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 215 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 216 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 217 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 218 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 219 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 220 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 221 : : std::numeric_limits<uint32_t>::min()}; 222 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 223 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 224 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 225 : : std::numeric_limits<uint32_t>::min()}; 226 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 227 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 228 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 229 : : std::numeric_limits<uint32_t>::min()}; 230 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 231 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 232 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 233 : : std::numeric_limits<uint32_t>::min()}; 234 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 235 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 236 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 237 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 238 : 1 : bool valueOtherVehicleStateHasPriority{true}; 239 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 240 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 241 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 242 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 243 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 244 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 245 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 246 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 247 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 248 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 249 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 250 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 251 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 252 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 253 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 254 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 255 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 256 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 257 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 258 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 259 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 260 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 261 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 262 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 263 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 264 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 265 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 266 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 267 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 268 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 269 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 270 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 271 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 272 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 273 : 1 : value.otherVehicleState = valueOtherVehicleState; 274 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 275 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 276 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 277 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 278 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 279 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 280 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 281 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 282 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 283 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 284 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 285 : 1 : value.relativePosition = valueRelativePosition; 286 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 287 : : } 288 : : 289 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeSituationTypeTooSmall) 290 : : { 291 : 1 : ::ad::rss::situation::Situation value; 292 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 293 : 1 : value.situationId = valueSituationId; 294 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 295 : 1 : value.objectId = valueObjectId; 296 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 297 : 1 : value.situationType = valueSituationType; 298 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 299 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 300 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 301 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 302 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 303 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 304 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 305 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 306 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 307 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 308 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 309 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 310 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 311 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 312 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 313 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 314 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 315 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 316 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 317 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 318 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 319 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 320 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 321 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 322 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 323 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 324 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 325 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 326 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 327 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 328 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 329 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 330 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 331 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 332 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 333 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 334 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 335 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 336 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 337 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 338 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 339 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 340 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 341 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 342 : : // struct 343 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 344 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 345 : : valueEgoVehicleStateDynamicsResponseTime 346 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 347 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 348 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 349 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 350 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 351 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 352 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 353 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 354 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 355 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 356 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 357 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 358 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 359 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 360 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 361 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 362 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 363 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 364 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 365 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 366 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 367 : : std::numeric_limits<uint32_t>::min()}; 368 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 369 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 370 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 371 : : std::numeric_limits<uint32_t>::min()}; 372 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 373 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 374 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 375 : : std::numeric_limits<uint32_t>::min()}; 376 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 377 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 378 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 379 : : std::numeric_limits<uint32_t>::min()}; 380 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 381 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 382 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 383 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 384 : 1 : bool valueEgoVehicleStateHasPriority{true}; 385 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 386 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 387 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 388 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 389 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 390 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 391 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 392 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 393 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 394 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 395 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 396 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 397 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 398 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 399 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 400 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 401 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 402 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 403 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 404 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 405 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 406 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 407 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 408 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 409 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 410 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 411 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 412 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 413 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 414 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 415 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 416 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 417 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 418 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 419 : 1 : value.egoVehicleState = valueEgoVehicleState; 420 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 421 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 422 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 423 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 424 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 425 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 426 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 427 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 428 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 429 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 430 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 431 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 432 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 433 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 434 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 435 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 436 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 437 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 438 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 439 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 440 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 441 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 442 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 443 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 444 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 445 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 446 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 447 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 448 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 449 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 450 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 451 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 452 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 453 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 454 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 455 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 456 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 457 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 458 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 459 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 460 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 461 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 462 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 463 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 464 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 465 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 466 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 467 : : valueOtherVehicleStateDynamicsResponseTime 468 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 469 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 470 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 471 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 472 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 473 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 474 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 475 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 476 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 477 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 478 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 479 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 480 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 481 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 482 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 483 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 484 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 485 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 486 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 487 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 488 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 489 : : std::numeric_limits<uint32_t>::min()}; 490 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 491 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 492 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 493 : : std::numeric_limits<uint32_t>::min()}; 494 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 495 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 496 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 497 : : std::numeric_limits<uint32_t>::min()}; 498 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 499 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 500 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 501 : : std::numeric_limits<uint32_t>::min()}; 502 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 503 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 504 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 505 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 506 : 1 : bool valueOtherVehicleStateHasPriority{true}; 507 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 508 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 509 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 510 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 511 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 512 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 513 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 514 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 515 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 516 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 517 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 518 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 519 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 520 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 521 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 522 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 523 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 524 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 525 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 526 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 527 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 528 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 529 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 530 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 531 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 532 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 533 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 534 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 535 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 536 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 537 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 538 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 539 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 540 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 541 : 1 : value.otherVehicleState = valueOtherVehicleState; 542 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 543 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 544 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 545 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 546 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 547 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 548 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 549 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 550 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 551 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 552 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 553 : 1 : value.relativePosition = valueRelativePosition; 554 : : 555 : : // override member with data type value below input range minimum 556 : 1 : ::ad::rss::situation::SituationType invalidInitializedMember(static_cast<::ad::rss::situation::SituationType>(-1)); 557 : 1 : value.situationType = invalidInitializedMember; 558 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 559 : : } 560 : : 561 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeSituationTypeTooBig) 562 : : { 563 : 1 : ::ad::rss::situation::Situation value; 564 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 565 : 1 : value.situationId = valueSituationId; 566 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 567 : 1 : value.objectId = valueObjectId; 568 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 569 : 1 : value.situationType = valueSituationType; 570 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 571 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 572 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 573 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 574 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 575 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 576 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 577 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 578 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 579 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 580 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 581 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 582 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 583 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 584 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 585 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 586 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 587 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 588 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 589 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 590 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 591 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 592 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 593 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 594 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 595 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 596 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 597 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 598 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 599 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 600 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 601 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 602 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 603 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 604 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 605 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 606 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 607 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 608 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 609 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 610 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 611 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 612 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 613 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 614 : : // struct 615 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 616 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 617 : : valueEgoVehicleStateDynamicsResponseTime 618 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 619 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 620 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 621 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 622 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 623 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 624 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 625 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 626 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 627 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 628 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 629 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 630 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 631 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 632 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 633 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 634 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 635 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 636 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 637 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 638 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 639 : : std::numeric_limits<uint32_t>::min()}; 640 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 641 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 642 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 643 : : std::numeric_limits<uint32_t>::min()}; 644 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 645 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 646 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 647 : : std::numeric_limits<uint32_t>::min()}; 648 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 649 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 650 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 651 : : std::numeric_limits<uint32_t>::min()}; 652 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 653 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 654 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 655 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 656 : 1 : bool valueEgoVehicleStateHasPriority{true}; 657 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 658 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 659 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 660 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 661 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 662 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 663 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 664 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 665 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 666 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 667 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 668 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 669 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 670 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 671 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 672 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 673 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 674 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 675 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 676 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 677 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 678 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 679 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 680 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 681 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 682 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 683 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 684 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 685 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 686 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 687 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 688 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 689 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 690 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 691 : 1 : value.egoVehicleState = valueEgoVehicleState; 692 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 693 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 694 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 695 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 696 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 697 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 698 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 699 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 700 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 701 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 702 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 703 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 704 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 705 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 706 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 707 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 708 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 709 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 710 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 711 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 712 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 713 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 714 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 715 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 716 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 717 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 718 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 719 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 720 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 721 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 722 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 723 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 724 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 725 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 726 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 727 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 728 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 729 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 730 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 731 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 732 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 733 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 734 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 735 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 736 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 737 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 738 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 739 : : valueOtherVehicleStateDynamicsResponseTime 740 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 741 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 742 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 743 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 744 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 745 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 746 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 747 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 748 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 749 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 750 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 751 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 752 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 753 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 754 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 755 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 756 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 757 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 758 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 759 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 760 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 761 : : std::numeric_limits<uint32_t>::min()}; 762 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 763 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 764 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 765 : : std::numeric_limits<uint32_t>::min()}; 766 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 767 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 768 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 769 : : std::numeric_limits<uint32_t>::min()}; 770 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 771 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 772 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 773 : : std::numeric_limits<uint32_t>::min()}; 774 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 775 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 776 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 777 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 778 : 1 : bool valueOtherVehicleStateHasPriority{true}; 779 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 780 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 781 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 782 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 783 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 784 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 785 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 786 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 787 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 788 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 789 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 790 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 791 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 792 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 793 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 794 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 795 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 796 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 797 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 798 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 799 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 800 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 801 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 802 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 803 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 804 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 805 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 806 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 807 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 808 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 809 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 810 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 811 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 812 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 813 : 1 : value.otherVehicleState = valueOtherVehicleState; 814 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 815 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 816 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 817 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 818 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 819 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 820 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 821 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 822 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 823 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 824 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 825 : 1 : value.relativePosition = valueRelativePosition; 826 : : 827 : : // override member with data type value above input range maximum 828 : 1 : ::ad::rss::situation::SituationType invalidInitializedMember(static_cast<::ad::rss::situation::SituationType>(-1)); 829 : 1 : value.situationType = invalidInitializedMember; 830 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 831 : : } 832 : : 833 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeEgoVehicleStateTooSmall) 834 : : { 835 : 1 : ::ad::rss::situation::Situation value; 836 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 837 : 1 : value.situationId = valueSituationId; 838 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 839 : 1 : value.objectId = valueObjectId; 840 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 841 : 1 : value.situationType = valueSituationType; 842 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 843 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 844 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 845 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 846 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 847 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 848 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 849 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 850 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 851 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 852 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 853 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 854 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 855 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 856 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 857 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 858 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 859 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 860 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 861 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 862 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 863 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 864 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 865 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 866 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 867 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 868 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 869 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 870 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 871 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 872 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 873 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 874 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 875 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 876 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 877 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 878 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 879 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 880 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 881 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 882 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 883 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 884 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 885 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 886 : : // struct 887 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 888 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 889 : : valueEgoVehicleStateDynamicsResponseTime 890 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 891 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 892 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 893 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 894 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 895 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 896 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 897 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 898 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 899 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 900 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 901 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 902 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 903 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 904 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 905 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 906 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 907 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 908 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 909 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 910 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 911 : : std::numeric_limits<uint32_t>::min()}; 912 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 913 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 914 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 915 : : std::numeric_limits<uint32_t>::min()}; 916 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 917 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 918 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 919 : : std::numeric_limits<uint32_t>::min()}; 920 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 921 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 922 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 923 : : std::numeric_limits<uint32_t>::min()}; 924 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 925 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 926 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 927 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 928 : 1 : bool valueEgoVehicleStateHasPriority{true}; 929 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 930 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 931 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 932 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 933 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 934 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 935 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 936 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 937 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 938 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 939 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 940 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 941 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 942 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 943 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 944 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 945 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 946 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 947 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 948 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 949 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 950 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 951 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 952 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 953 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 954 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 955 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 956 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 957 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 958 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 959 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 960 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 961 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 962 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 963 : 1 : value.egoVehicleState = valueEgoVehicleState; 964 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 965 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 966 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 967 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 968 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 969 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 970 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 971 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 972 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 973 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 974 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 975 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 976 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 977 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 978 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 979 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 980 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 981 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 982 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 983 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 984 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 985 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 986 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 987 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 988 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 989 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 990 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 991 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 992 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 993 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 994 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 995 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 996 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 997 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 998 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 999 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 1000 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1001 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1002 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 1003 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1004 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 1005 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 1006 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1007 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 1008 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 1009 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 1010 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 1011 : : valueOtherVehicleStateDynamicsResponseTime 1012 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1013 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 1014 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1015 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 1016 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 1017 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1018 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1019 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1020 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1021 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1022 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1023 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1024 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1025 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1026 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1027 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1028 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1029 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1030 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1031 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1032 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1033 : : std::numeric_limits<uint32_t>::min()}; 1034 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1035 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1036 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1037 : : std::numeric_limits<uint32_t>::min()}; 1038 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1039 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1040 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1041 : : std::numeric_limits<uint32_t>::min()}; 1042 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1043 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1044 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1045 : : std::numeric_limits<uint32_t>::min()}; 1046 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1047 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1048 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 1049 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 1050 : 1 : bool valueOtherVehicleStateHasPriority{true}; 1051 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 1052 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 1053 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 1054 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 1055 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1056 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 1057 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 1058 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 1059 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1060 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 1061 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 1062 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 1063 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 1064 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 1065 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 1066 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 1067 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 1068 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 1069 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 1070 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 1071 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 1072 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 1073 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 1074 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 1075 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 1076 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 1077 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 1078 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 1079 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 1080 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 1081 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 1082 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 1083 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 1084 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 1085 : 1 : value.otherVehicleState = valueOtherVehicleState; 1086 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 1087 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 1088 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 1089 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 1090 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 1091 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 1092 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 1093 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 1094 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 1095 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 1096 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 1097 : 1 : value.relativePosition = valueRelativePosition; 1098 : : 1099 : : // override member with data type value below input range minimum 1100 : 1 : ::ad::rss::situation::VehicleState invalidInitializedMember; 1101 : 1 : ::ad::rss::situation::VelocityRange invalidInitializedMemberVelocity; 1102 : 1 : ::ad::physics::SpeedRange invalidInitializedMemberVelocitySpeedLon; 1103 : 1 : ::ad::physics::Speed invalidInitializedMemberVelocitySpeedLonMinimum(-100. * 1.1); 1104 : 1 : invalidInitializedMemberVelocitySpeedLon.minimum = invalidInitializedMemberVelocitySpeedLonMinimum; 1105 : 1 : invalidInitializedMemberVelocity.speedLon = invalidInitializedMemberVelocitySpeedLon; 1106 : 1 : invalidInitializedMember.velocity = invalidInitializedMemberVelocity; 1107 : 1 : value.egoVehicleState = invalidInitializedMember; 1108 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 1109 : : } 1110 : : 1111 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeEgoVehicleStateTooBig) 1112 : : { 1113 : 1 : ::ad::rss::situation::Situation value; 1114 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 1115 : 1 : value.situationId = valueSituationId; 1116 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 1117 : 1 : value.objectId = valueObjectId; 1118 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 1119 : 1 : value.situationType = valueSituationType; 1120 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 1121 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 1122 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 1123 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 1124 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 1125 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 1126 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 1127 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 1128 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 1129 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 1130 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 1131 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 1132 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 1133 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 1134 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 1135 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 1136 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 1137 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 1138 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 1139 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 1140 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 1141 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1142 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1143 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 1144 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1145 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 1146 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1147 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 1148 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1149 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1150 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 1151 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1152 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1153 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1154 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 1155 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 1156 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1157 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1158 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 1159 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1160 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 1161 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 1162 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1163 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 1164 : : // struct 1165 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 1166 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 1167 : : valueEgoVehicleStateDynamicsResponseTime 1168 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1169 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 1170 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1171 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 1172 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 1173 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1174 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1175 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1176 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1177 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1178 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1179 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1180 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1181 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1182 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1183 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1184 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1185 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1186 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1187 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1188 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1189 : : std::numeric_limits<uint32_t>::min()}; 1190 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1191 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1192 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1193 : : std::numeric_limits<uint32_t>::min()}; 1194 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1195 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1196 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1197 : : std::numeric_limits<uint32_t>::min()}; 1198 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1199 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1200 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1201 : : std::numeric_limits<uint32_t>::min()}; 1202 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1203 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1204 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 1205 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 1206 : 1 : bool valueEgoVehicleStateHasPriority{true}; 1207 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 1208 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 1209 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 1210 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 1211 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1212 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 1213 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 1214 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 1215 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1216 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 1217 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 1218 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 1219 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 1220 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 1221 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 1222 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 1223 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 1224 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 1225 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 1226 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 1227 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 1228 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 1229 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 1230 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 1231 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 1232 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 1233 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 1234 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 1235 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 1236 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 1237 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 1238 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 1239 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 1240 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 1241 : 1 : value.egoVehicleState = valueEgoVehicleState; 1242 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 1243 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 1244 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 1245 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 1246 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 1247 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 1248 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 1249 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 1250 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 1251 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 1252 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 1253 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 1254 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 1255 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 1256 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 1257 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 1258 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 1259 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 1260 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 1261 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 1262 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 1263 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1264 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1265 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 1266 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1267 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 1268 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1269 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 1270 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1271 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1272 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 1273 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 1274 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1275 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 1276 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 1277 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 1278 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1279 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1280 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 1281 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1282 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 1283 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 1284 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1285 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 1286 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 1287 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 1288 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 1289 : : valueOtherVehicleStateDynamicsResponseTime 1290 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1291 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 1292 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1293 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 1294 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 1295 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1296 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1297 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1298 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1299 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1300 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1301 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1302 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1303 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1304 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1305 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1306 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1307 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1308 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1309 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1310 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1311 : : std::numeric_limits<uint32_t>::min()}; 1312 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1313 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1314 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1315 : : std::numeric_limits<uint32_t>::min()}; 1316 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1317 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1318 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1319 : : std::numeric_limits<uint32_t>::min()}; 1320 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1321 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1322 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1323 : : std::numeric_limits<uint32_t>::min()}; 1324 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1325 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1326 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 1327 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 1328 : 1 : bool valueOtherVehicleStateHasPriority{true}; 1329 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 1330 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 1331 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 1332 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 1333 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1334 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 1335 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 1336 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 1337 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1338 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 1339 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 1340 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 1341 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 1342 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 1343 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 1344 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 1345 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 1346 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 1347 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 1348 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 1349 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 1350 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 1351 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 1352 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 1353 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 1354 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 1355 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 1356 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 1357 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 1358 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 1359 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 1360 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 1361 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 1362 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 1363 : 1 : value.otherVehicleState = valueOtherVehicleState; 1364 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 1365 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 1366 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 1367 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 1368 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 1369 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 1370 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 1371 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 1372 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 1373 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 1374 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 1375 : 1 : value.relativePosition = valueRelativePosition; 1376 : : 1377 : : // override member with data type value above input range maximum 1378 : 1 : ::ad::rss::situation::VehicleState invalidInitializedMember; 1379 : 1 : ::ad::rss::situation::VelocityRange invalidInitializedMemberVelocity; 1380 : 1 : ::ad::physics::SpeedRange invalidInitializedMemberVelocitySpeedLon; 1381 : 1 : ::ad::physics::Speed invalidInitializedMemberVelocitySpeedLonMinimum(100. * 1.1); 1382 : 1 : invalidInitializedMemberVelocitySpeedLon.minimum = invalidInitializedMemberVelocitySpeedLonMinimum; 1383 : 1 : invalidInitializedMemberVelocity.speedLon = invalidInitializedMemberVelocitySpeedLon; 1384 : 1 : invalidInitializedMember.velocity = invalidInitializedMemberVelocity; 1385 : 1 : value.egoVehicleState = invalidInitializedMember; 1386 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 1387 : : } 1388 : : 1389 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeOtherVehicleStateTooSmall) 1390 : : { 1391 : 1 : ::ad::rss::situation::Situation value; 1392 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 1393 : 1 : value.situationId = valueSituationId; 1394 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 1395 : 1 : value.objectId = valueObjectId; 1396 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 1397 : 1 : value.situationType = valueSituationType; 1398 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 1399 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 1400 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 1401 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 1402 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 1403 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 1404 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 1405 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 1406 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 1407 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 1408 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 1409 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 1410 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 1411 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 1412 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 1413 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 1414 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 1415 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 1416 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 1417 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 1418 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 1419 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1420 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1421 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 1422 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1423 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 1424 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1425 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 1426 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1427 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1428 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 1429 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1430 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1431 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1432 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 1433 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 1434 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1435 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1436 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 1437 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1438 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 1439 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 1440 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1441 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 1442 : : // struct 1443 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 1444 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 1445 : : valueEgoVehicleStateDynamicsResponseTime 1446 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1447 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 1448 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1449 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 1450 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 1451 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1452 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1453 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1454 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1455 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1456 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1457 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1458 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1459 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1460 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1461 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1462 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1463 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1464 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1465 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1466 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1467 : : std::numeric_limits<uint32_t>::min()}; 1468 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1469 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1470 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1471 : : std::numeric_limits<uint32_t>::min()}; 1472 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1473 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1474 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1475 : : std::numeric_limits<uint32_t>::min()}; 1476 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1477 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1478 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1479 : : std::numeric_limits<uint32_t>::min()}; 1480 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1481 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1482 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 1483 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 1484 : 1 : bool valueEgoVehicleStateHasPriority{true}; 1485 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 1486 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 1487 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 1488 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 1489 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1490 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 1491 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 1492 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 1493 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1494 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 1495 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 1496 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 1497 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 1498 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 1499 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 1500 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 1501 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 1502 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 1503 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 1504 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 1505 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 1506 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 1507 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 1508 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 1509 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 1510 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 1511 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 1512 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 1513 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 1514 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 1515 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 1516 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 1517 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 1518 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 1519 : 1 : value.egoVehicleState = valueEgoVehicleState; 1520 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 1521 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 1522 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 1523 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 1524 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 1525 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 1526 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 1527 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 1528 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 1529 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 1530 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 1531 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 1532 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 1533 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 1534 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 1535 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 1536 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 1537 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 1538 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 1539 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 1540 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 1541 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1542 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1543 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 1544 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1545 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 1546 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1547 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 1548 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1549 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1550 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 1551 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 1552 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1553 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 1554 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 1555 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 1556 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1557 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1558 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 1559 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1560 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 1561 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 1562 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1563 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 1564 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 1565 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 1566 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 1567 : : valueOtherVehicleStateDynamicsResponseTime 1568 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1569 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 1570 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1571 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 1572 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 1573 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1574 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1575 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1576 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1577 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1578 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1579 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1580 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1581 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1582 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1583 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1584 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1585 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1586 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1587 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1588 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1589 : : std::numeric_limits<uint32_t>::min()}; 1590 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1591 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1592 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1593 : : std::numeric_limits<uint32_t>::min()}; 1594 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1595 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1596 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1597 : : std::numeric_limits<uint32_t>::min()}; 1598 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1599 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1600 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1601 : : std::numeric_limits<uint32_t>::min()}; 1602 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1603 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1604 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 1605 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 1606 : 1 : bool valueOtherVehicleStateHasPriority{true}; 1607 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 1608 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 1609 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 1610 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 1611 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1612 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 1613 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 1614 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 1615 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1616 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 1617 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 1618 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 1619 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 1620 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 1621 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 1622 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 1623 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 1624 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 1625 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 1626 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 1627 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 1628 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 1629 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 1630 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 1631 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 1632 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 1633 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 1634 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 1635 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 1636 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 1637 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 1638 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 1639 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 1640 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 1641 : 1 : value.otherVehicleState = valueOtherVehicleState; 1642 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 1643 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 1644 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 1645 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 1646 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 1647 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 1648 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 1649 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 1650 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 1651 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 1652 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 1653 : 1 : value.relativePosition = valueRelativePosition; 1654 : : 1655 : : // override member with data type value below input range minimum 1656 : 1 : ::ad::rss::situation::VehicleState invalidInitializedMember; 1657 : 1 : ::ad::rss::situation::VelocityRange invalidInitializedMemberVelocity; 1658 : 1 : ::ad::physics::SpeedRange invalidInitializedMemberVelocitySpeedLon; 1659 : 1 : ::ad::physics::Speed invalidInitializedMemberVelocitySpeedLonMinimum(-100. * 1.1); 1660 : 1 : invalidInitializedMemberVelocitySpeedLon.minimum = invalidInitializedMemberVelocitySpeedLonMinimum; 1661 : 1 : invalidInitializedMemberVelocity.speedLon = invalidInitializedMemberVelocitySpeedLon; 1662 : 1 : invalidInitializedMember.velocity = invalidInitializedMemberVelocity; 1663 : 1 : value.otherVehicleState = invalidInitializedMember; 1664 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 1665 : : } 1666 : : 1667 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeOtherVehicleStateTooBig) 1668 : : { 1669 : 1 : ::ad::rss::situation::Situation value; 1670 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 1671 : 1 : value.situationId = valueSituationId; 1672 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 1673 : 1 : value.objectId = valueObjectId; 1674 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 1675 : 1 : value.situationType = valueSituationType; 1676 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 1677 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 1678 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 1679 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 1680 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 1681 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 1682 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 1683 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 1684 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 1685 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 1686 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 1687 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 1688 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 1689 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 1690 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 1691 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 1692 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 1693 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 1694 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 1695 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 1696 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 1697 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1698 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1699 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 1700 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1701 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 1702 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1703 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 1704 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1705 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1706 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 1707 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1708 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1709 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1710 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 1711 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 1712 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1713 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1714 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 1715 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1716 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 1717 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 1718 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1719 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 1720 : : // struct 1721 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 1722 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 1723 : : valueEgoVehicleStateDynamicsResponseTime 1724 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1725 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 1726 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1727 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 1728 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 1729 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1730 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1731 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1732 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1733 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1734 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1735 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1736 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1737 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1738 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1739 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1740 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1741 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1742 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1743 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1744 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1745 : : std::numeric_limits<uint32_t>::min()}; 1746 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1747 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1748 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1749 : : std::numeric_limits<uint32_t>::min()}; 1750 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1751 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1752 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1753 : : std::numeric_limits<uint32_t>::min()}; 1754 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1755 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1756 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1757 : : std::numeric_limits<uint32_t>::min()}; 1758 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1759 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1760 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 1761 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 1762 : 1 : bool valueEgoVehicleStateHasPriority{true}; 1763 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 1764 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 1765 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 1766 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 1767 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1768 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 1769 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 1770 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 1771 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1772 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 1773 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 1774 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 1775 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 1776 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 1777 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 1778 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 1779 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 1780 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 1781 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 1782 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 1783 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 1784 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 1785 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 1786 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 1787 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 1788 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 1789 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 1790 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 1791 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 1792 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 1793 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 1794 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 1795 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 1796 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 1797 : 1 : value.egoVehicleState = valueEgoVehicleState; 1798 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 1799 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 1800 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 1801 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 1802 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 1803 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 1804 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 1805 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 1806 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 1807 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 1808 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 1809 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 1810 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 1811 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 1812 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 1813 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 1814 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 1815 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 1816 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 1817 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 1818 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 1819 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1820 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1821 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 1822 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1823 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 1824 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1825 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 1826 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1827 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1828 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 1829 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 1830 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1831 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 1832 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 1833 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 1834 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1835 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1836 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 1837 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1838 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 1839 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 1840 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1841 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 1842 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 1843 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 1844 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 1845 : : valueOtherVehicleStateDynamicsResponseTime 1846 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1847 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 1848 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 1849 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 1850 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 1851 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1852 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 1853 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 1854 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1855 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 1856 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1857 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1858 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 1859 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 1860 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1861 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 1862 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 1863 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1864 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1865 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1866 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1867 : : std::numeric_limits<uint32_t>::min()}; 1868 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1869 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1870 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1871 : : std::numeric_limits<uint32_t>::min()}; 1872 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1873 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1874 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1875 : : std::numeric_limits<uint32_t>::min()}; 1876 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1877 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1878 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1879 : : std::numeric_limits<uint32_t>::min()}; 1880 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1881 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1882 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 1883 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 1884 : 1 : bool valueOtherVehicleStateHasPriority{true}; 1885 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 1886 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 1887 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 1888 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 1889 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 1890 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 1891 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 1892 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 1893 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 1894 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 1895 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 1896 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 1897 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 1898 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 1899 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 1900 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 1901 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 1902 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 1903 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 1904 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 1905 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 1906 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 1907 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 1908 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 1909 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 1910 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 1911 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 1912 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 1913 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 1914 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 1915 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 1916 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 1917 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 1918 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 1919 : 1 : value.otherVehicleState = valueOtherVehicleState; 1920 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 1921 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 1922 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 1923 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 1924 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 1925 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 1926 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 1927 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 1928 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 1929 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 1930 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 1931 : 1 : value.relativePosition = valueRelativePosition; 1932 : : 1933 : : // override member with data type value above input range maximum 1934 : 1 : ::ad::rss::situation::VehicleState invalidInitializedMember; 1935 : 1 : ::ad::rss::situation::VelocityRange invalidInitializedMemberVelocity; 1936 : 1 : ::ad::physics::SpeedRange invalidInitializedMemberVelocitySpeedLon; 1937 : 1 : ::ad::physics::Speed invalidInitializedMemberVelocitySpeedLonMinimum(100. * 1.1); 1938 : 1 : invalidInitializedMemberVelocitySpeedLon.minimum = invalidInitializedMemberVelocitySpeedLonMinimum; 1939 : 1 : invalidInitializedMemberVelocity.speedLon = invalidInitializedMemberVelocitySpeedLon; 1940 : 1 : invalidInitializedMember.velocity = invalidInitializedMemberVelocity; 1941 : 1 : value.otherVehicleState = invalidInitializedMember; 1942 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 1943 : : } 1944 : : 1945 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeRelativePositionTooSmall) 1946 : : { 1947 : 1 : ::ad::rss::situation::Situation value; 1948 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 1949 : 1 : value.situationId = valueSituationId; 1950 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 1951 : 1 : value.objectId = valueObjectId; 1952 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 1953 : 1 : value.situationType = valueSituationType; 1954 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 1955 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 1956 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 1957 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 1958 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 1959 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 1960 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 1961 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 1962 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 1963 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 1964 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 1965 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 1966 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 1967 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 1968 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 1969 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 1970 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 1971 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 1972 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 1973 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 1974 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 1975 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 1976 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1977 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 1978 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 1979 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 1980 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 1981 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 1982 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 1983 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 1984 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 1985 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1986 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 1987 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 1988 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 1989 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 1990 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 1991 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1992 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 1993 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 1994 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 1995 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 1996 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 1997 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 1998 : : // struct 1999 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 2000 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 2001 : : valueEgoVehicleStateDynamicsResponseTime 2002 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 2003 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 2004 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 2005 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 2006 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 2007 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 2008 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 2009 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 2010 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 2011 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 2012 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 2013 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 2014 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 2015 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 2016 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 2017 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 2018 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 2019 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 2020 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 2021 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 2022 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 2023 : : std::numeric_limits<uint32_t>::min()}; 2024 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 2025 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 2026 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 2027 : : std::numeric_limits<uint32_t>::min()}; 2028 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 2029 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 2030 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 2031 : : std::numeric_limits<uint32_t>::min()}; 2032 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 2033 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 2034 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 2035 : : std::numeric_limits<uint32_t>::min()}; 2036 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 2037 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 2038 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 2039 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 2040 : 1 : bool valueEgoVehicleStateHasPriority{true}; 2041 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 2042 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 2043 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 2044 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 2045 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 2046 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 2047 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 2048 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 2049 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 2050 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 2051 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 2052 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 2053 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 2054 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 2055 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 2056 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 2057 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 2058 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 2059 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 2060 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 2061 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 2062 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 2063 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 2064 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 2065 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 2066 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 2067 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 2068 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 2069 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 2070 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 2071 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 2072 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 2073 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 2074 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 2075 : 1 : value.egoVehicleState = valueEgoVehicleState; 2076 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 2077 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 2078 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 2079 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 2080 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 2081 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 2082 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 2083 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 2084 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 2085 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 2086 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 2087 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 2088 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 2089 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 2090 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 2091 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 2092 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 2093 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 2094 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 2095 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 2096 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 2097 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 2098 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 2099 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 2100 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 2101 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 2102 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 2103 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 2104 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 2105 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 2106 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 2107 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 2108 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 2109 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 2110 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 2111 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 2112 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 2113 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 2114 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 2115 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 2116 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 2117 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 2118 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 2119 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 2120 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 2121 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 2122 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 2123 : : valueOtherVehicleStateDynamicsResponseTime 2124 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 2125 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 2126 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 2127 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 2128 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 2129 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 2130 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 2131 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 2132 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 2133 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 2134 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 2135 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 2136 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 2137 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 2138 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 2139 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 2140 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 2141 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 2142 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 2143 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 2144 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 2145 : : std::numeric_limits<uint32_t>::min()}; 2146 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 2147 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 2148 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 2149 : : std::numeric_limits<uint32_t>::min()}; 2150 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 2151 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 2152 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 2153 : : std::numeric_limits<uint32_t>::min()}; 2154 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 2155 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 2156 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 2157 : : std::numeric_limits<uint32_t>::min()}; 2158 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 2159 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 2160 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 2161 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 2162 : 1 : bool valueOtherVehicleStateHasPriority{true}; 2163 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 2164 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 2165 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 2166 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 2167 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 2168 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 2169 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 2170 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 2171 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 2172 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 2173 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 2174 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 2175 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 2176 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 2177 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 2178 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 2179 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 2180 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 2181 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 2182 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 2183 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 2184 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 2185 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 2186 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 2187 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 2188 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 2189 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 2190 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 2191 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 2192 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 2193 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 2194 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 2195 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 2196 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 2197 : 1 : value.otherVehicleState = valueOtherVehicleState; 2198 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 2199 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 2200 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 2201 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 2202 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 2203 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 2204 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 2205 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 2206 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 2207 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 2208 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 2209 : 1 : value.relativePosition = valueRelativePosition; 2210 : : 2211 : : // override member with data type value below input range minimum 2212 : 1 : ::ad::rss::situation::RelativePosition invalidInitializedMember; 2213 : 1 : ::ad::rss::situation::LongitudinalRelativePosition invalidInitializedMemberLongitudinalPosition( 2214 : : static_cast<::ad::rss::situation::LongitudinalRelativePosition>(-1)); 2215 : 1 : invalidInitializedMember.longitudinalPosition = invalidInitializedMemberLongitudinalPosition; 2216 : 1 : value.relativePosition = invalidInitializedMember; 2217 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 2218 : : } 2219 : : 2220 : 2 : TEST(SituationValidInputRangeTests, testValidInputRangeRelativePositionTooBig) 2221 : : { 2222 : 1 : ::ad::rss::situation::Situation value; 2223 : 1 : ::ad::rss::situation::SituationId valueSituationId(std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 2224 : 1 : value.situationId = valueSituationId; 2225 : 1 : ::ad::rss::world::ObjectId valueObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 2226 : 1 : value.objectId = valueObjectId; 2227 : 1 : ::ad::rss::situation::SituationType valueSituationType(::ad::rss::situation::SituationType::NotRelevant); 2228 : 1 : value.situationType = valueSituationType; 2229 : 1 : ::ad::rss::situation::VehicleState valueEgoVehicleState; 2230 : 1 : ::ad::rss::situation::VelocityRange valueEgoVehicleStateVelocity; 2231 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLon; 2232 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMinimum(-100.); 2233 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLonMinimum; 2234 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLonMaximum(-100.); 2235 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLonMaximum; 2236 : 1 : valueEgoVehicleStateVelocitySpeedLon.maximum = valueEgoVehicleStateVelocitySpeedLon.minimum; 2237 : 1 : valueEgoVehicleStateVelocitySpeedLon.minimum = valueEgoVehicleStateVelocitySpeedLon.maximum; 2238 : 1 : valueEgoVehicleStateVelocity.speedLon = valueEgoVehicleStateVelocitySpeedLon; 2239 : 1 : ::ad::physics::SpeedRange valueEgoVehicleStateVelocitySpeedLat; 2240 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMinimum(-100.); 2241 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLatMinimum; 2242 : 1 : ::ad::physics::Speed valueEgoVehicleStateVelocitySpeedLatMaximum(-100.); 2243 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLatMaximum; 2244 : 1 : valueEgoVehicleStateVelocitySpeedLat.maximum = valueEgoVehicleStateVelocitySpeedLat.minimum; 2245 : 1 : valueEgoVehicleStateVelocitySpeedLat.minimum = valueEgoVehicleStateVelocitySpeedLat.maximum; 2246 : 1 : valueEgoVehicleStateVelocity.speedLat = valueEgoVehicleStateVelocitySpeedLat; 2247 : 1 : valueEgoVehicleState.velocity = valueEgoVehicleStateVelocity; 2248 : 1 : ::ad::rss::world::RssDynamics valueEgoVehicleStateDynamics; 2249 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLon; 2250 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 2251 : 1 : valueEgoVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 2252 : 1 : valueEgoVehicleStateDynamicsAlphaLon.accelMax = valueEgoVehicleStateDynamicsAlphaLonAccelMax; 2253 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 2254 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLonBrakeMax; 2255 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 2256 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLonBrakeMin; 2257 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 2258 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 2259 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMax; 2260 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 2261 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMin = valueEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 2262 : 1 : valueEgoVehicleStateDynamicsAlphaLon.brakeMax = valueEgoVehicleStateDynamicsAlphaLon.brakeMin; 2263 : 1 : valueEgoVehicleStateDynamics.alphaLon = valueEgoVehicleStateDynamicsAlphaLon; 2264 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueEgoVehicleStateDynamicsAlphaLat; 2265 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 2266 : 1 : valueEgoVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 2267 : 1 : valueEgoVehicleStateDynamicsAlphaLat.accelMax = valueEgoVehicleStateDynamicsAlphaLatAccelMax; 2268 : 1 : ::ad::physics::Acceleration valueEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 2269 : 1 : valueEgoVehicleStateDynamicsAlphaLat.brakeMin = valueEgoVehicleStateDynamicsAlphaLatBrakeMin; 2270 : 1 : valueEgoVehicleStateDynamics.alphaLat = valueEgoVehicleStateDynamicsAlphaLat; 2271 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 2272 : 1 : valueEgoVehicleStateDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 2273 : : // struct 2274 : 1 : valueEgoVehicleStateDynamics.lateralFluctuationMargin = valueEgoVehicleStateDynamicsLateralFluctuationMargin; 2275 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsResponseTime(0.); 2276 : : valueEgoVehicleStateDynamicsResponseTime 2277 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 2278 : 1 : valueEgoVehicleStateDynamics.responseTime = valueEgoVehicleStateDynamicsResponseTime; 2279 : 1 : ::ad::physics::Speed valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 2280 : 1 : valueEgoVehicleStateDynamics.maxSpeedOnAcceleration = valueEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 2281 : 1 : ::ad::rss::world::UnstructuredSettings valueEgoVehicleStateDynamicsUnstructuredSettings; 2282 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 2283 : : valueEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 2284 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 2285 : 1 : ::ad::physics::Angle valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 2286 : : valueEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 2287 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 2288 : 1 : ::ad::physics::AngularAcceleration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 2289 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 2290 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 2291 : 1 : ::ad::physics::Distance valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 2292 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 2293 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 2294 : 1 : ::ad::physics::Duration valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 2295 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 2296 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 2297 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 2298 : : std::numeric_limits<uint32_t>::min()}; 2299 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 2300 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 2301 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 2302 : : std::numeric_limits<uint32_t>::min()}; 2303 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 2304 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 2305 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 2306 : : std::numeric_limits<uint32_t>::min()}; 2307 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 2308 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 2309 : 1 : uint32_t valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 2310 : : std::numeric_limits<uint32_t>::min()}; 2311 : : valueEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 2312 : 1 : = valueEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 2313 : 1 : valueEgoVehicleStateDynamics.unstructuredSettings = valueEgoVehicleStateDynamicsUnstructuredSettings; 2314 : 1 : valueEgoVehicleState.dynamics = valueEgoVehicleStateDynamics; 2315 : 1 : bool valueEgoVehicleStateHasPriority{true}; 2316 : 1 : valueEgoVehicleState.hasPriority = valueEgoVehicleStateHasPriority; 2317 : 1 : bool valueEgoVehicleStateIsInCorrectLane{true}; 2318 : 1 : valueEgoVehicleState.isInCorrectLane = valueEgoVehicleStateIsInCorrectLane; 2319 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToEnterIntersection(-1e9); 2320 : 1 : valueEgoVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 2321 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleStateDistanceToEnterIntersection; 2322 : 1 : ::ad::physics::Distance valueEgoVehicleStateDistanceToLeaveIntersection(-1e9); 2323 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleStateDistanceToLeaveIntersection; 2324 : 1 : ::ad::rss::world::ObjectType valueEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 2325 : 1 : valueEgoVehicleState.objectType = valueEgoVehicleStateObjectType; 2326 : 1 : ::ad::rss::world::ObjectState valueEgoVehicleStateObjectState; 2327 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateYaw(-6.283185308); 2328 : 1 : valueEgoVehicleStateObjectState.yaw = valueEgoVehicleStateObjectStateYaw; 2329 : 1 : ::ad::physics::Dimension2D valueEgoVehicleStateObjectStateDimension; 2330 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionLength(-1e9); 2331 : 1 : valueEgoVehicleStateObjectStateDimension.length = valueEgoVehicleStateObjectStateDimensionLength; 2332 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateDimensionWidth(-1e9); 2333 : 1 : valueEgoVehicleStateObjectStateDimension.width = valueEgoVehicleStateObjectStateDimensionWidth; 2334 : 1 : valueEgoVehicleStateObjectState.dimension = valueEgoVehicleStateObjectStateDimension; 2335 : 1 : ::ad::physics::AngularVelocity valueEgoVehicleStateObjectStateYawRate(-100.); 2336 : 1 : valueEgoVehicleStateObjectState.yawRate = valueEgoVehicleStateObjectStateYawRate; 2337 : 1 : ::ad::physics::Distance2D valueEgoVehicleStateObjectStateCenterPoint; 2338 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointX(-1e9); 2339 : 1 : valueEgoVehicleStateObjectStateCenterPoint.x = valueEgoVehicleStateObjectStateCenterPointX; 2340 : 1 : ::ad::physics::Distance valueEgoVehicleStateObjectStateCenterPointY(-1e9); 2341 : 1 : valueEgoVehicleStateObjectStateCenterPoint.y = valueEgoVehicleStateObjectStateCenterPointY; 2342 : 1 : valueEgoVehicleStateObjectState.centerPoint = valueEgoVehicleStateObjectStateCenterPoint; 2343 : 1 : ::ad::physics::Speed valueEgoVehicleStateObjectStateSpeed(-100.); 2344 : 1 : valueEgoVehicleStateObjectState.speed = valueEgoVehicleStateObjectStateSpeed; 2345 : 1 : ::ad::physics::Angle valueEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 2346 : 1 : valueEgoVehicleStateObjectState.steeringAngle = valueEgoVehicleStateObjectStateSteeringAngle; 2347 : 1 : valueEgoVehicleState.objectState = valueEgoVehicleStateObjectState; 2348 : 1 : valueEgoVehicleState.distanceToLeaveIntersection = valueEgoVehicleState.distanceToEnterIntersection; 2349 : 1 : valueEgoVehicleState.distanceToEnterIntersection = valueEgoVehicleState.distanceToLeaveIntersection; 2350 : 1 : value.egoVehicleState = valueEgoVehicleState; 2351 : 1 : ::ad::rss::situation::VehicleState valueOtherVehicleState; 2352 : 1 : ::ad::rss::situation::VelocityRange valueOtherVehicleStateVelocity; 2353 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLon; 2354 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMinimum(-100.); 2355 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLonMinimum; 2356 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLonMaximum(-100.); 2357 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLonMaximum; 2358 : 1 : valueOtherVehicleStateVelocitySpeedLon.maximum = valueOtherVehicleStateVelocitySpeedLon.minimum; 2359 : 1 : valueOtherVehicleStateVelocitySpeedLon.minimum = valueOtherVehicleStateVelocitySpeedLon.maximum; 2360 : 1 : valueOtherVehicleStateVelocity.speedLon = valueOtherVehicleStateVelocitySpeedLon; 2361 : 1 : ::ad::physics::SpeedRange valueOtherVehicleStateVelocitySpeedLat; 2362 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMinimum(-100.); 2363 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLatMinimum; 2364 : 1 : ::ad::physics::Speed valueOtherVehicleStateVelocitySpeedLatMaximum(-100.); 2365 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLatMaximum; 2366 : 1 : valueOtherVehicleStateVelocitySpeedLat.maximum = valueOtherVehicleStateVelocitySpeedLat.minimum; 2367 : 1 : valueOtherVehicleStateVelocitySpeedLat.minimum = valueOtherVehicleStateVelocitySpeedLat.maximum; 2368 : 1 : valueOtherVehicleStateVelocity.speedLat = valueOtherVehicleStateVelocitySpeedLat; 2369 : 1 : valueOtherVehicleState.velocity = valueOtherVehicleStateVelocity; 2370 : 1 : ::ad::rss::world::RssDynamics valueOtherVehicleStateDynamics; 2371 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLon; 2372 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 2373 : 1 : valueOtherVehicleStateDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 2374 : 1 : valueOtherVehicleStateDynamicsAlphaLon.accelMax = valueOtherVehicleStateDynamicsAlphaLonAccelMax; 2375 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 2376 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLonBrakeMax; 2377 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 2378 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLonBrakeMin; 2379 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 2380 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 2381 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMax; 2382 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 2383 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMin = valueOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 2384 : 1 : valueOtherVehicleStateDynamicsAlphaLon.brakeMax = valueOtherVehicleStateDynamicsAlphaLon.brakeMin; 2385 : 1 : valueOtherVehicleStateDynamics.alphaLon = valueOtherVehicleStateDynamicsAlphaLon; 2386 : 1 : ::ad::rss::world::LateralRssAccelerationValues valueOtherVehicleStateDynamicsAlphaLat; 2387 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 2388 : 1 : valueOtherVehicleStateDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 2389 : 1 : valueOtherVehicleStateDynamicsAlphaLat.accelMax = valueOtherVehicleStateDynamicsAlphaLatAccelMax; 2390 : 1 : ::ad::physics::Acceleration valueOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 2391 : 1 : valueOtherVehicleStateDynamicsAlphaLat.brakeMin = valueOtherVehicleStateDynamicsAlphaLatBrakeMin; 2392 : 1 : valueOtherVehicleStateDynamics.alphaLat = valueOtherVehicleStateDynamicsAlphaLat; 2393 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 2394 : : valueOtherVehicleStateDynamicsLateralFluctuationMargin 2395 : 1 : = ::ad::physics::Distance(0.); // set to valid value within struct 2396 : 1 : valueOtherVehicleStateDynamics.lateralFluctuationMargin = valueOtherVehicleStateDynamicsLateralFluctuationMargin; 2397 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsResponseTime(0.); 2398 : : valueOtherVehicleStateDynamicsResponseTime 2399 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 2400 : 1 : valueOtherVehicleStateDynamics.responseTime = valueOtherVehicleStateDynamicsResponseTime; 2401 : 1 : ::ad::physics::Speed valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 2402 : 1 : valueOtherVehicleStateDynamics.maxSpeedOnAcceleration = valueOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 2403 : 1 : ::ad::rss::world::UnstructuredSettings valueOtherVehicleStateDynamicsUnstructuredSettings; 2404 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 2405 : : valueOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 2406 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 2407 : 1 : ::ad::physics::Angle valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 2408 : : valueOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 2409 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 2410 : 1 : ::ad::physics::AngularAcceleration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 2411 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 2412 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 2413 : 1 : ::ad::physics::Distance valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 2414 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 2415 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 2416 : 1 : ::ad::physics::Duration valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 2417 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 2418 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 2419 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 2420 : : std::numeric_limits<uint32_t>::min()}; 2421 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 2422 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 2423 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 2424 : : std::numeric_limits<uint32_t>::min()}; 2425 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 2426 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 2427 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 2428 : : std::numeric_limits<uint32_t>::min()}; 2429 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 2430 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 2431 : 1 : uint32_t valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 2432 : : std::numeric_limits<uint32_t>::min()}; 2433 : : valueOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 2434 : 1 : = valueOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 2435 : 1 : valueOtherVehicleStateDynamics.unstructuredSettings = valueOtherVehicleStateDynamicsUnstructuredSettings; 2436 : 1 : valueOtherVehicleState.dynamics = valueOtherVehicleStateDynamics; 2437 : 1 : bool valueOtherVehicleStateHasPriority{true}; 2438 : 1 : valueOtherVehicleState.hasPriority = valueOtherVehicleStateHasPriority; 2439 : 1 : bool valueOtherVehicleStateIsInCorrectLane{true}; 2440 : 1 : valueOtherVehicleState.isInCorrectLane = valueOtherVehicleStateIsInCorrectLane; 2441 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToEnterIntersection(-1e9); 2442 : 1 : valueOtherVehicleStateDistanceToEnterIntersection = ::ad::physics::Distance(0.); // set to valid value within struct 2443 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleStateDistanceToEnterIntersection; 2444 : 1 : ::ad::physics::Distance valueOtherVehicleStateDistanceToLeaveIntersection(-1e9); 2445 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleStateDistanceToLeaveIntersection; 2446 : 1 : ::ad::rss::world::ObjectType valueOtherVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 2447 : 1 : valueOtherVehicleState.objectType = valueOtherVehicleStateObjectType; 2448 : 1 : ::ad::rss::world::ObjectState valueOtherVehicleStateObjectState; 2449 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateYaw(-6.283185308); 2450 : 1 : valueOtherVehicleStateObjectState.yaw = valueOtherVehicleStateObjectStateYaw; 2451 : 1 : ::ad::physics::Dimension2D valueOtherVehicleStateObjectStateDimension; 2452 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionLength(-1e9); 2453 : 1 : valueOtherVehicleStateObjectStateDimension.length = valueOtherVehicleStateObjectStateDimensionLength; 2454 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateDimensionWidth(-1e9); 2455 : 1 : valueOtherVehicleStateObjectStateDimension.width = valueOtherVehicleStateObjectStateDimensionWidth; 2456 : 1 : valueOtherVehicleStateObjectState.dimension = valueOtherVehicleStateObjectStateDimension; 2457 : 1 : ::ad::physics::AngularVelocity valueOtherVehicleStateObjectStateYawRate(-100.); 2458 : 1 : valueOtherVehicleStateObjectState.yawRate = valueOtherVehicleStateObjectStateYawRate; 2459 : 1 : ::ad::physics::Distance2D valueOtherVehicleStateObjectStateCenterPoint; 2460 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointX(-1e9); 2461 : 1 : valueOtherVehicleStateObjectStateCenterPoint.x = valueOtherVehicleStateObjectStateCenterPointX; 2462 : 1 : ::ad::physics::Distance valueOtherVehicleStateObjectStateCenterPointY(-1e9); 2463 : 1 : valueOtherVehicleStateObjectStateCenterPoint.y = valueOtherVehicleStateObjectStateCenterPointY; 2464 : 1 : valueOtherVehicleStateObjectState.centerPoint = valueOtherVehicleStateObjectStateCenterPoint; 2465 : 1 : ::ad::physics::Speed valueOtherVehicleStateObjectStateSpeed(-100.); 2466 : 1 : valueOtherVehicleStateObjectState.speed = valueOtherVehicleStateObjectStateSpeed; 2467 : 1 : ::ad::physics::Angle valueOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 2468 : 1 : valueOtherVehicleStateObjectState.steeringAngle = valueOtherVehicleStateObjectStateSteeringAngle; 2469 : 1 : valueOtherVehicleState.objectState = valueOtherVehicleStateObjectState; 2470 : 1 : valueOtherVehicleState.distanceToLeaveIntersection = valueOtherVehicleState.distanceToEnterIntersection; 2471 : 1 : valueOtherVehicleState.distanceToEnterIntersection = valueOtherVehicleState.distanceToLeaveIntersection; 2472 : 1 : value.otherVehicleState = valueOtherVehicleState; 2473 : 1 : ::ad::rss::situation::RelativePosition valueRelativePosition; 2474 : 1 : ::ad::rss::situation::LongitudinalRelativePosition valueRelativePositionLongitudinalPosition( 2475 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 2476 : 1 : valueRelativePosition.longitudinalPosition = valueRelativePositionLongitudinalPosition; 2477 : 1 : ::ad::physics::Distance valueRelativePositionLongitudinalDistance(-1e9); 2478 : 1 : valueRelativePosition.longitudinalDistance = valueRelativePositionLongitudinalDistance; 2479 : 1 : ::ad::rss::situation::LateralRelativePosition valueRelativePositionLateralPosition( 2480 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 2481 : 1 : valueRelativePosition.lateralPosition = valueRelativePositionLateralPosition; 2482 : 1 : ::ad::physics::Distance valueRelativePositionLateralDistance(-1e9); 2483 : 1 : valueRelativePosition.lateralDistance = valueRelativePositionLateralDistance; 2484 : 1 : value.relativePosition = valueRelativePosition; 2485 : : 2486 : : // override member with data type value above input range maximum 2487 : 1 : ::ad::rss::situation::RelativePosition invalidInitializedMember; 2488 : 1 : ::ad::rss::situation::LongitudinalRelativePosition invalidInitializedMemberLongitudinalPosition( 2489 : : static_cast<::ad::rss::situation::LongitudinalRelativePosition>(-1)); 2490 : 1 : invalidInitializedMember.longitudinalPosition = invalidInitializedMemberLongitudinalPosition; 2491 : 1 : value.relativePosition = invalidInitializedMember; 2492 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 2493 : : }