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/world/SceneVectorValidInputRange.hpp" 20 : : 21 : 2 : TEST(SceneVectorValidInputRangeTests, testValidInputRangeValidInputRangeMin) 22 : : { 23 : 1 : ::ad::rss::world::SceneVector value; 24 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 25 : : } 26 : : 27 : 2 : TEST(SceneVectorValidInputRangeTests, testValidInputRangeValidInputRangeMax) 28 : : { 29 : 1 : ::ad::rss::world::SceneVector value; 30 : 1 : ::ad::rss::world::Scene element; 31 : 1 : ::ad::rss::situation::SituationType elementSituationType(::ad::rss::situation::SituationType::NotRelevant); 32 : 1 : element.situationType = elementSituationType; 33 : 1 : ::ad::rss::world::Object elementEgoVehicle; 34 : 1 : ::ad::rss::world::ObjectId elementEgoVehicleObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 35 : 1 : elementEgoVehicle.objectId = elementEgoVehicleObjectId; 36 : 1 : ::ad::rss::world::ObjectType elementEgoVehicleObjectType(::ad::rss::world::ObjectType::Invalid); 37 : 1 : elementEgoVehicle.objectType = elementEgoVehicleObjectType; 38 : 1 : ::ad::rss::world::OccupiedRegionVector elementEgoVehicleOccupiedRegions; 39 : 1 : ::ad::rss::world::OccupiedRegion elementEgoVehicleOccupiedRegionsElement; 40 : 1 : ::ad::rss::world::LaneSegmentId elementEgoVehicleOccupiedRegionsElementSegmentId( 41 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 42 : 1 : elementEgoVehicleOccupiedRegionsElement.segmentId = elementEgoVehicleOccupiedRegionsElementSegmentId; 43 : 1 : ::ad::physics::ParametricRange elementEgoVehicleOccupiedRegionsElementLonRange; 44 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLonRangeMinimum(0.); 45 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.minimum = elementEgoVehicleOccupiedRegionsElementLonRangeMinimum; 46 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLonRangeMaximum(0.); 47 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.maximum = elementEgoVehicleOccupiedRegionsElementLonRangeMaximum; 48 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.maximum = elementEgoVehicleOccupiedRegionsElementLonRange.minimum; 49 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.minimum = elementEgoVehicleOccupiedRegionsElementLonRange.maximum; 50 : 1 : elementEgoVehicleOccupiedRegionsElement.lonRange = elementEgoVehicleOccupiedRegionsElementLonRange; 51 : 1 : ::ad::physics::ParametricRange elementEgoVehicleOccupiedRegionsElementLatRange; 52 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLatRangeMinimum(0.); 53 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.minimum = elementEgoVehicleOccupiedRegionsElementLatRangeMinimum; 54 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLatRangeMaximum(0.); 55 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.maximum = elementEgoVehicleOccupiedRegionsElementLatRangeMaximum; 56 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.maximum = elementEgoVehicleOccupiedRegionsElementLatRange.minimum; 57 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.minimum = elementEgoVehicleOccupiedRegionsElementLatRange.maximum; 58 : 1 : elementEgoVehicleOccupiedRegionsElement.latRange = elementEgoVehicleOccupiedRegionsElementLatRange; 59 [ + - ]: 1 : elementEgoVehicleOccupiedRegions.resize(1, elementEgoVehicleOccupiedRegionsElement); 60 [ + - ]: 1 : elementEgoVehicle.occupiedRegions = elementEgoVehicleOccupiedRegions; 61 : 1 : ::ad::rss::world::Velocity elementEgoVehicleVelocity; 62 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLonMin(-100.); 63 : 1 : elementEgoVehicleVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 64 : 1 : elementEgoVehicleVelocity.speedLonMin = elementEgoVehicleVelocitySpeedLonMin; 65 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLonMax(-100.); 66 : 1 : elementEgoVehicleVelocity.speedLonMax = elementEgoVehicleVelocitySpeedLonMax; 67 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLatMin(-100.); 68 : 1 : elementEgoVehicleVelocity.speedLatMin = elementEgoVehicleVelocitySpeedLatMin; 69 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLatMax(-100.); 70 : 1 : elementEgoVehicleVelocity.speedLatMax = elementEgoVehicleVelocitySpeedLatMax; 71 : 1 : elementEgoVehicleVelocity.speedLonMax = elementEgoVehicleVelocity.speedLonMin; 72 : 1 : elementEgoVehicleVelocity.speedLatMax = elementEgoVehicleVelocity.speedLatMin; 73 : 1 : elementEgoVehicleVelocity.speedLonMin = elementEgoVehicleVelocity.speedLonMax; 74 : 1 : elementEgoVehicleVelocity.speedLatMin = elementEgoVehicleVelocity.speedLatMax; 75 : 1 : elementEgoVehicle.velocity = elementEgoVehicleVelocity; 76 : 1 : ::ad::rss::world::ObjectState elementEgoVehicleState; 77 : 1 : ::ad::physics::Angle elementEgoVehicleStateYaw(-6.283185308); 78 : 1 : elementEgoVehicleState.yaw = elementEgoVehicleStateYaw; 79 : 1 : ::ad::physics::Dimension2D elementEgoVehicleStateDimension; 80 : 1 : ::ad::physics::Distance elementEgoVehicleStateDimensionLength(-1e9); 81 : 1 : elementEgoVehicleStateDimension.length = elementEgoVehicleStateDimensionLength; 82 : 1 : ::ad::physics::Distance elementEgoVehicleStateDimensionWidth(-1e9); 83 : 1 : elementEgoVehicleStateDimension.width = elementEgoVehicleStateDimensionWidth; 84 : 1 : elementEgoVehicleState.dimension = elementEgoVehicleStateDimension; 85 : 1 : ::ad::physics::AngularVelocity elementEgoVehicleStateYawRate(-100.); 86 : 1 : elementEgoVehicleState.yawRate = elementEgoVehicleStateYawRate; 87 : 1 : ::ad::physics::Distance2D elementEgoVehicleStateCenterPoint; 88 : 1 : ::ad::physics::Distance elementEgoVehicleStateCenterPointX(-1e9); 89 : 1 : elementEgoVehicleStateCenterPoint.x = elementEgoVehicleStateCenterPointX; 90 : 1 : ::ad::physics::Distance elementEgoVehicleStateCenterPointY(-1e9); 91 : 1 : elementEgoVehicleStateCenterPoint.y = elementEgoVehicleStateCenterPointY; 92 : 1 : elementEgoVehicleState.centerPoint = elementEgoVehicleStateCenterPoint; 93 : 1 : ::ad::physics::Speed elementEgoVehicleStateSpeed(-100.); 94 : 1 : elementEgoVehicleState.speed = elementEgoVehicleStateSpeed; 95 : 1 : ::ad::physics::Angle elementEgoVehicleStateSteeringAngle(-6.283185308); 96 : 1 : elementEgoVehicleState.steeringAngle = elementEgoVehicleStateSteeringAngle; 97 : 1 : elementEgoVehicle.state = elementEgoVehicleState; 98 [ + - ]: 1 : element.egoVehicle = elementEgoVehicle; 99 : 1 : ::ad::rss::world::RssDynamics elementEgoVehicleRssDynamics; 100 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues elementEgoVehicleRssDynamicsAlphaLon; 101 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonAccelMax(-1e2); 102 : 1 : elementEgoVehicleRssDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 103 : 1 : elementEgoVehicleRssDynamicsAlphaLon.accelMax = elementEgoVehicleRssDynamicsAlphaLonAccelMax; 104 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMax(-1e2); 105 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMax = elementEgoVehicleRssDynamicsAlphaLonBrakeMax; 106 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMin(-1e2); 107 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLonBrakeMin; 108 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 109 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = elementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 110 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLon.brakeMax; 111 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = elementEgoVehicleRssDynamicsAlphaLon.brakeMin; 112 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 113 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMax = elementEgoVehicleRssDynamicsAlphaLon.brakeMin; 114 : 1 : elementEgoVehicleRssDynamics.alphaLon = elementEgoVehicleRssDynamicsAlphaLon; 115 : 1 : ::ad::rss::world::LateralRssAccelerationValues elementEgoVehicleRssDynamicsAlphaLat; 116 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLatAccelMax(-1e2); 117 : 1 : elementEgoVehicleRssDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 118 : 1 : elementEgoVehicleRssDynamicsAlphaLat.accelMax = elementEgoVehicleRssDynamicsAlphaLatAccelMax; 119 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLatBrakeMin(-1e2); 120 : 1 : elementEgoVehicleRssDynamicsAlphaLat.brakeMin = elementEgoVehicleRssDynamicsAlphaLatBrakeMin; 121 : 1 : elementEgoVehicleRssDynamics.alphaLat = elementEgoVehicleRssDynamicsAlphaLat; 122 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsLateralFluctuationMargin(-1e9); 123 : 1 : elementEgoVehicleRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 124 : : // struct 125 : 1 : elementEgoVehicleRssDynamics.lateralFluctuationMargin = elementEgoVehicleRssDynamicsLateralFluctuationMargin; 126 : 1 : ::ad::physics::Duration elementEgoVehicleRssDynamicsResponseTime(0.); 127 : : elementEgoVehicleRssDynamicsResponseTime 128 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 129 : 1 : elementEgoVehicleRssDynamics.responseTime = elementEgoVehicleRssDynamicsResponseTime; 130 : 1 : ::ad::physics::Speed elementEgoVehicleRssDynamicsMaxSpeedOnAcceleration(-100.); 131 : 1 : elementEgoVehicleRssDynamics.maxSpeedOnAcceleration = elementEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 132 : 1 : ::ad::rss::world::UnstructuredSettings elementEgoVehicleRssDynamicsUnstructuredSettings; 133 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 134 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 135 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 136 : 1 : ::ad::physics::Angle elementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 137 : : elementEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 138 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 139 : 1 : ::ad::physics::AngularAcceleration elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 140 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 141 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 142 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 143 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 144 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 145 : 1 : ::ad::physics::Duration elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 146 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 147 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 148 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 149 : : std::numeric_limits<uint32_t>::min()}; 150 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 151 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 152 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 153 : : std::numeric_limits<uint32_t>::min()}; 154 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 155 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 156 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 157 : : std::numeric_limits<uint32_t>::min()}; 158 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 159 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 160 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 161 : : std::numeric_limits<uint32_t>::min()}; 162 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 163 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 164 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 165 : : std::numeric_limits<uint32_t>::min()}; 166 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 167 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 168 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 169 : : std::numeric_limits<uint32_t>::min()}; 170 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 171 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 172 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 173 : : std::numeric_limits<uint32_t>::min()}; 174 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 175 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 176 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 177 : : std::numeric_limits<uint32_t>::min()}; 178 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 179 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 180 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 181 : : std::numeric_limits<uint32_t>::min()}; 182 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 183 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 184 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 185 : : std::numeric_limits<uint32_t>::min()}; 186 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 187 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 188 : 1 : elementEgoVehicleRssDynamics.unstructuredSettings = elementEgoVehicleRssDynamicsUnstructuredSettings; 189 : 1 : element.egoVehicleRssDynamics = elementEgoVehicleRssDynamics; 190 : 1 : ::ad::rss::world::Object elementObject; 191 : 1 : ::ad::rss::world::ObjectId elementObjectObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 192 : 1 : elementObject.objectId = elementObjectObjectId; 193 : 1 : ::ad::rss::world::ObjectType elementObjectObjectType(::ad::rss::world::ObjectType::Invalid); 194 : 1 : elementObject.objectType = elementObjectObjectType; 195 : 1 : ::ad::rss::world::OccupiedRegionVector elementObjectOccupiedRegions; 196 : 1 : ::ad::rss::world::OccupiedRegion elementObjectOccupiedRegionsElement; 197 : 1 : ::ad::rss::world::LaneSegmentId elementObjectOccupiedRegionsElementSegmentId( 198 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 199 : 1 : elementObjectOccupiedRegionsElement.segmentId = elementObjectOccupiedRegionsElementSegmentId; 200 : 1 : ::ad::physics::ParametricRange elementObjectOccupiedRegionsElementLonRange; 201 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLonRangeMinimum(0.); 202 : 1 : elementObjectOccupiedRegionsElementLonRange.minimum = elementObjectOccupiedRegionsElementLonRangeMinimum; 203 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLonRangeMaximum(0.); 204 : 1 : elementObjectOccupiedRegionsElementLonRange.maximum = elementObjectOccupiedRegionsElementLonRangeMaximum; 205 : 1 : elementObjectOccupiedRegionsElementLonRange.maximum = elementObjectOccupiedRegionsElementLonRange.minimum; 206 : 1 : elementObjectOccupiedRegionsElementLonRange.minimum = elementObjectOccupiedRegionsElementLonRange.maximum; 207 : 1 : elementObjectOccupiedRegionsElement.lonRange = elementObjectOccupiedRegionsElementLonRange; 208 : 1 : ::ad::physics::ParametricRange elementObjectOccupiedRegionsElementLatRange; 209 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLatRangeMinimum(0.); 210 : 1 : elementObjectOccupiedRegionsElementLatRange.minimum = elementObjectOccupiedRegionsElementLatRangeMinimum; 211 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLatRangeMaximum(0.); 212 : 1 : elementObjectOccupiedRegionsElementLatRange.maximum = elementObjectOccupiedRegionsElementLatRangeMaximum; 213 : 1 : elementObjectOccupiedRegionsElementLatRange.maximum = elementObjectOccupiedRegionsElementLatRange.minimum; 214 : 1 : elementObjectOccupiedRegionsElementLatRange.minimum = elementObjectOccupiedRegionsElementLatRange.maximum; 215 : 1 : elementObjectOccupiedRegionsElement.latRange = elementObjectOccupiedRegionsElementLatRange; 216 [ + - ]: 1 : elementObjectOccupiedRegions.resize(1, elementObjectOccupiedRegionsElement); 217 [ + - ]: 1 : elementObject.occupiedRegions = elementObjectOccupiedRegions; 218 : 1 : ::ad::rss::world::Velocity elementObjectVelocity; 219 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLonMin(-100.); 220 : 1 : elementObjectVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 221 : 1 : elementObjectVelocity.speedLonMin = elementObjectVelocitySpeedLonMin; 222 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLonMax(-100.); 223 : 1 : elementObjectVelocity.speedLonMax = elementObjectVelocitySpeedLonMax; 224 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLatMin(-100.); 225 : 1 : elementObjectVelocity.speedLatMin = elementObjectVelocitySpeedLatMin; 226 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLatMax(-100.); 227 : 1 : elementObjectVelocity.speedLatMax = elementObjectVelocitySpeedLatMax; 228 : 1 : elementObjectVelocity.speedLonMax = elementObjectVelocity.speedLonMin; 229 : 1 : elementObjectVelocity.speedLatMax = elementObjectVelocity.speedLatMin; 230 : 1 : elementObjectVelocity.speedLonMin = elementObjectVelocity.speedLonMax; 231 : 1 : elementObjectVelocity.speedLatMin = elementObjectVelocity.speedLatMax; 232 : 1 : elementObject.velocity = elementObjectVelocity; 233 : 1 : ::ad::rss::world::ObjectState elementObjectState; 234 : 1 : ::ad::physics::Angle elementObjectStateYaw(-6.283185308); 235 : 1 : elementObjectState.yaw = elementObjectStateYaw; 236 : 1 : ::ad::physics::Dimension2D elementObjectStateDimension; 237 : 1 : ::ad::physics::Distance elementObjectStateDimensionLength(-1e9); 238 : 1 : elementObjectStateDimension.length = elementObjectStateDimensionLength; 239 : 1 : ::ad::physics::Distance elementObjectStateDimensionWidth(-1e9); 240 : 1 : elementObjectStateDimension.width = elementObjectStateDimensionWidth; 241 : 1 : elementObjectState.dimension = elementObjectStateDimension; 242 : 1 : ::ad::physics::AngularVelocity elementObjectStateYawRate(-100.); 243 : 1 : elementObjectState.yawRate = elementObjectStateYawRate; 244 : 1 : ::ad::physics::Distance2D elementObjectStateCenterPoint; 245 : 1 : ::ad::physics::Distance elementObjectStateCenterPointX(-1e9); 246 : 1 : elementObjectStateCenterPoint.x = elementObjectStateCenterPointX; 247 : 1 : ::ad::physics::Distance elementObjectStateCenterPointY(-1e9); 248 : 1 : elementObjectStateCenterPoint.y = elementObjectStateCenterPointY; 249 : 1 : elementObjectState.centerPoint = elementObjectStateCenterPoint; 250 : 1 : ::ad::physics::Speed elementObjectStateSpeed(-100.); 251 : 1 : elementObjectState.speed = elementObjectStateSpeed; 252 : 1 : ::ad::physics::Angle elementObjectStateSteeringAngle(-6.283185308); 253 : 1 : elementObjectState.steeringAngle = elementObjectStateSteeringAngle; 254 : 1 : elementObject.state = elementObjectState; 255 [ + - ]: 1 : element.object = elementObject; 256 : 1 : ::ad::rss::world::RssDynamics elementObjectRssDynamics; 257 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues elementObjectRssDynamicsAlphaLon; 258 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonAccelMax(-1e2); 259 : 1 : elementObjectRssDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 260 : 1 : elementObjectRssDynamicsAlphaLon.accelMax = elementObjectRssDynamicsAlphaLonAccelMax; 261 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMax(-1e2); 262 : 1 : elementObjectRssDynamicsAlphaLon.brakeMax = elementObjectRssDynamicsAlphaLonBrakeMax; 263 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMin(-1e2); 264 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLonBrakeMin; 265 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 266 : 1 : elementObjectRssDynamicsAlphaLon.brakeMinCorrect = elementObjectRssDynamicsAlphaLonBrakeMinCorrect; 267 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLon.brakeMax; 268 : 1 : elementObjectRssDynamicsAlphaLon.brakeMinCorrect = elementObjectRssDynamicsAlphaLon.brakeMin; 269 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLon.brakeMinCorrect; 270 : 1 : elementObjectRssDynamicsAlphaLon.brakeMax = elementObjectRssDynamicsAlphaLon.brakeMin; 271 : 1 : elementObjectRssDynamics.alphaLon = elementObjectRssDynamicsAlphaLon; 272 : 1 : ::ad::rss::world::LateralRssAccelerationValues elementObjectRssDynamicsAlphaLat; 273 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLatAccelMax(-1e2); 274 : 1 : elementObjectRssDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 275 : 1 : elementObjectRssDynamicsAlphaLat.accelMax = elementObjectRssDynamicsAlphaLatAccelMax; 276 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLatBrakeMin(-1e2); 277 : 1 : elementObjectRssDynamicsAlphaLat.brakeMin = elementObjectRssDynamicsAlphaLatBrakeMin; 278 : 1 : elementObjectRssDynamics.alphaLat = elementObjectRssDynamicsAlphaLat; 279 : 1 : ::ad::physics::Distance elementObjectRssDynamicsLateralFluctuationMargin(-1e9); 280 : 1 : elementObjectRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within struct 281 : 1 : elementObjectRssDynamics.lateralFluctuationMargin = elementObjectRssDynamicsLateralFluctuationMargin; 282 : 1 : ::ad::physics::Duration elementObjectRssDynamicsResponseTime(0.); 283 : : elementObjectRssDynamicsResponseTime 284 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 285 : 1 : elementObjectRssDynamics.responseTime = elementObjectRssDynamicsResponseTime; 286 : 1 : ::ad::physics::Speed elementObjectRssDynamicsMaxSpeedOnAcceleration(-100.); 287 : 1 : elementObjectRssDynamics.maxSpeedOnAcceleration = elementObjectRssDynamicsMaxSpeedOnAcceleration; 288 : 1 : ::ad::rss::world::UnstructuredSettings elementObjectRssDynamicsUnstructuredSettings; 289 : 1 : ::ad::physics::Distance elementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 290 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianTurningRadius 291 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 292 : 1 : ::ad::physics::Angle elementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 293 : : elementObjectRssDynamicsUnstructuredSettings.driveAwayMaxAngle 294 : 1 : = elementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 295 : 1 : ::ad::physics::AngularAcceleration elementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 296 : : elementObjectRssDynamicsUnstructuredSettings.vehicleYawRateChange 297 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange; 298 : 1 : ::ad::physics::Distance elementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 299 : : elementObjectRssDynamicsUnstructuredSettings.vehicleMinRadius 300 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius; 301 : 1 : ::ad::physics::Duration elementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 302 : : elementObjectRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 303 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 304 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 305 : : std::numeric_limits<uint32_t>::min()}; 306 : : elementObjectRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 307 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 308 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 309 : : std::numeric_limits<uint32_t>::min()}; 310 : : elementObjectRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 311 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 312 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 313 : : std::numeric_limits<uint32_t>::min()}; 314 : : elementObjectRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 315 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 316 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 317 : : std::numeric_limits<uint32_t>::min()}; 318 : : elementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 319 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 320 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 321 : : std::numeric_limits<uint32_t>::min()}; 322 : : elementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 323 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 324 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 325 : : std::numeric_limits<uint32_t>::min()}; 326 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 327 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 328 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 329 : : std::numeric_limits<uint32_t>::min()}; 330 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 331 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 332 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 333 : : std::numeric_limits<uint32_t>::min()}; 334 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 335 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 336 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 337 : : std::numeric_limits<uint32_t>::min()}; 338 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 339 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 340 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 341 : : std::numeric_limits<uint32_t>::min()}; 342 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 343 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 344 : 1 : elementObjectRssDynamics.unstructuredSettings = elementObjectRssDynamicsUnstructuredSettings; 345 : 1 : element.objectRssDynamics = elementObjectRssDynamics; 346 : 1 : ::ad::rss::world::RoadArea elementIntersectingRoad; 347 : 1 : ::ad::rss::world::RoadSegment elementIntersectingRoadElement; 348 : 1 : ::ad::rss::world::LaneSegment elementIntersectingRoadElementElement; 349 : 1 : ::ad::rss::world::LaneSegmentId elementIntersectingRoadElementElementId( 350 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 351 : 1 : elementIntersectingRoadElementElement.id = elementIntersectingRoadElementElementId; 352 : 1 : ::ad::rss::world::LaneSegmentType elementIntersectingRoadElementElementType( 353 : : ::ad::rss::world::LaneSegmentType::Normal); 354 : 1 : elementIntersectingRoadElementElement.type = elementIntersectingRoadElementElementType; 355 : 1 : ::ad::rss::world::LaneDrivingDirection elementIntersectingRoadElementElementDrivingDirection( 356 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 357 : 1 : elementIntersectingRoadElementElement.drivingDirection = elementIntersectingRoadElementElementDrivingDirection; 358 : 1 : ::ad::physics::MetricRange elementIntersectingRoadElementElementLength; 359 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementLengthMinimum(-1e9); 360 : 1 : elementIntersectingRoadElementElementLengthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 361 : 1 : elementIntersectingRoadElementElementLength.minimum = elementIntersectingRoadElementElementLengthMinimum; 362 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementLengthMaximum(-1e9); 363 : 1 : elementIntersectingRoadElementElementLength.maximum = elementIntersectingRoadElementElementLengthMaximum; 364 : 1 : elementIntersectingRoadElementElementLength.maximum = elementIntersectingRoadElementElementLength.minimum; 365 : 1 : elementIntersectingRoadElementElementLength.minimum = elementIntersectingRoadElementElementLength.maximum; 366 : 1 : elementIntersectingRoadElementElement.length = elementIntersectingRoadElementElementLength; 367 : 1 : ::ad::physics::MetricRange elementIntersectingRoadElementElementWidth; 368 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementWidthMinimum(-1e9); 369 : 1 : elementIntersectingRoadElementElementWidthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 370 : 1 : elementIntersectingRoadElementElementWidth.minimum = elementIntersectingRoadElementElementWidthMinimum; 371 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementWidthMaximum(-1e9); 372 : 1 : elementIntersectingRoadElementElementWidth.maximum = elementIntersectingRoadElementElementWidthMaximum; 373 : 1 : elementIntersectingRoadElementElementWidth.maximum = elementIntersectingRoadElementElementWidth.minimum; 374 : 1 : elementIntersectingRoadElementElementWidth.minimum = elementIntersectingRoadElementElementWidth.maximum; 375 : 1 : elementIntersectingRoadElementElement.width = elementIntersectingRoadElementElementWidth; 376 [ + - ]: 1 : elementIntersectingRoadElement.resize(1, elementIntersectingRoadElementElement); 377 [ + - ]: 1 : elementIntersectingRoad.resize(1, elementIntersectingRoadElement); 378 [ + - ]: 1 : element.intersectingRoad = elementIntersectingRoad; 379 : 1 : ::ad::rss::world::RoadArea elementEgoVehicleRoad; 380 : 1 : ::ad::rss::world::RoadSegment elementEgoVehicleRoadElement; 381 : 1 : ::ad::rss::world::LaneSegment elementEgoVehicleRoadElementElement; 382 : 1 : ::ad::rss::world::LaneSegmentId elementEgoVehicleRoadElementElementId( 383 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 384 : 1 : elementEgoVehicleRoadElementElement.id = elementEgoVehicleRoadElementElementId; 385 : 1 : ::ad::rss::world::LaneSegmentType elementEgoVehicleRoadElementElementType(::ad::rss::world::LaneSegmentType::Normal); 386 : 1 : elementEgoVehicleRoadElementElement.type = elementEgoVehicleRoadElementElementType; 387 : 1 : ::ad::rss::world::LaneDrivingDirection elementEgoVehicleRoadElementElementDrivingDirection( 388 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 389 : 1 : elementEgoVehicleRoadElementElement.drivingDirection = elementEgoVehicleRoadElementElementDrivingDirection; 390 : 1 : ::ad::physics::MetricRange elementEgoVehicleRoadElementElementLength; 391 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementLengthMinimum(-1e9); 392 : 1 : elementEgoVehicleRoadElementElementLengthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 393 : 1 : elementEgoVehicleRoadElementElementLength.minimum = elementEgoVehicleRoadElementElementLengthMinimum; 394 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementLengthMaximum(-1e9); 395 : 1 : elementEgoVehicleRoadElementElementLength.maximum = elementEgoVehicleRoadElementElementLengthMaximum; 396 : 1 : elementEgoVehicleRoadElementElementLength.maximum = elementEgoVehicleRoadElementElementLength.minimum; 397 : 1 : elementEgoVehicleRoadElementElementLength.minimum = elementEgoVehicleRoadElementElementLength.maximum; 398 : 1 : elementEgoVehicleRoadElementElement.length = elementEgoVehicleRoadElementElementLength; 399 : 1 : ::ad::physics::MetricRange elementEgoVehicleRoadElementElementWidth; 400 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementWidthMinimum(-1e9); 401 : 1 : elementEgoVehicleRoadElementElementWidthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 402 : 1 : elementEgoVehicleRoadElementElementWidth.minimum = elementEgoVehicleRoadElementElementWidthMinimum; 403 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementWidthMaximum(-1e9); 404 : 1 : elementEgoVehicleRoadElementElementWidth.maximum = elementEgoVehicleRoadElementElementWidthMaximum; 405 : 1 : elementEgoVehicleRoadElementElementWidth.maximum = elementEgoVehicleRoadElementElementWidth.minimum; 406 : 1 : elementEgoVehicleRoadElementElementWidth.minimum = elementEgoVehicleRoadElementElementWidth.maximum; 407 : 1 : elementEgoVehicleRoadElementElement.width = elementEgoVehicleRoadElementElementWidth; 408 [ + - ]: 1 : elementEgoVehicleRoadElement.resize(1, elementEgoVehicleRoadElementElement); 409 [ + - ]: 1 : elementEgoVehicleRoad.resize(1, elementEgoVehicleRoadElement); 410 [ + - ]: 1 : element.egoVehicleRoad = elementEgoVehicleRoad; 411 [ + - ]: 1 : value.resize(1000, element); 412 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 413 : : } 414 : : 415 : 2 : TEST(SceneVectorValidInputRangeTests, testValidInputRangeHigherThanInputRangeMax) 416 : : { 417 : 1 : ::ad::rss::world::SceneVector value; 418 : 1 : ::ad::rss::world::Scene element; 419 : 1 : ::ad::rss::situation::SituationType elementSituationType(::ad::rss::situation::SituationType::NotRelevant); 420 : 1 : element.situationType = elementSituationType; 421 : 1 : ::ad::rss::world::Object elementEgoVehicle; 422 : 1 : ::ad::rss::world::ObjectId elementEgoVehicleObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 423 : 1 : elementEgoVehicle.objectId = elementEgoVehicleObjectId; 424 : 1 : ::ad::rss::world::ObjectType elementEgoVehicleObjectType(::ad::rss::world::ObjectType::Invalid); 425 : 1 : elementEgoVehicle.objectType = elementEgoVehicleObjectType; 426 : 1 : ::ad::rss::world::OccupiedRegionVector elementEgoVehicleOccupiedRegions; 427 : 1 : ::ad::rss::world::OccupiedRegion elementEgoVehicleOccupiedRegionsElement; 428 : 1 : ::ad::rss::world::LaneSegmentId elementEgoVehicleOccupiedRegionsElementSegmentId( 429 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 430 : 1 : elementEgoVehicleOccupiedRegionsElement.segmentId = elementEgoVehicleOccupiedRegionsElementSegmentId; 431 : 1 : ::ad::physics::ParametricRange elementEgoVehicleOccupiedRegionsElementLonRange; 432 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLonRangeMinimum(0.); 433 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.minimum = elementEgoVehicleOccupiedRegionsElementLonRangeMinimum; 434 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLonRangeMaximum(0.); 435 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.maximum = elementEgoVehicleOccupiedRegionsElementLonRangeMaximum; 436 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.maximum = elementEgoVehicleOccupiedRegionsElementLonRange.minimum; 437 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.minimum = elementEgoVehicleOccupiedRegionsElementLonRange.maximum; 438 : 1 : elementEgoVehicleOccupiedRegionsElement.lonRange = elementEgoVehicleOccupiedRegionsElementLonRange; 439 : 1 : ::ad::physics::ParametricRange elementEgoVehicleOccupiedRegionsElementLatRange; 440 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLatRangeMinimum(0.); 441 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.minimum = elementEgoVehicleOccupiedRegionsElementLatRangeMinimum; 442 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLatRangeMaximum(0.); 443 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.maximum = elementEgoVehicleOccupiedRegionsElementLatRangeMaximum; 444 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.maximum = elementEgoVehicleOccupiedRegionsElementLatRange.minimum; 445 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.minimum = elementEgoVehicleOccupiedRegionsElementLatRange.maximum; 446 : 1 : elementEgoVehicleOccupiedRegionsElement.latRange = elementEgoVehicleOccupiedRegionsElementLatRange; 447 [ + - ]: 1 : elementEgoVehicleOccupiedRegions.resize(1, elementEgoVehicleOccupiedRegionsElement); 448 [ + - ]: 1 : elementEgoVehicle.occupiedRegions = elementEgoVehicleOccupiedRegions; 449 : 1 : ::ad::rss::world::Velocity elementEgoVehicleVelocity; 450 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLonMin(-100.); 451 : 1 : elementEgoVehicleVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 452 : 1 : elementEgoVehicleVelocity.speedLonMin = elementEgoVehicleVelocitySpeedLonMin; 453 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLonMax(-100.); 454 : 1 : elementEgoVehicleVelocity.speedLonMax = elementEgoVehicleVelocitySpeedLonMax; 455 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLatMin(-100.); 456 : 1 : elementEgoVehicleVelocity.speedLatMin = elementEgoVehicleVelocitySpeedLatMin; 457 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLatMax(-100.); 458 : 1 : elementEgoVehicleVelocity.speedLatMax = elementEgoVehicleVelocitySpeedLatMax; 459 : 1 : elementEgoVehicleVelocity.speedLonMax = elementEgoVehicleVelocity.speedLonMin; 460 : 1 : elementEgoVehicleVelocity.speedLatMax = elementEgoVehicleVelocity.speedLatMin; 461 : 1 : elementEgoVehicleVelocity.speedLonMin = elementEgoVehicleVelocity.speedLonMax; 462 : 1 : elementEgoVehicleVelocity.speedLatMin = elementEgoVehicleVelocity.speedLatMax; 463 : 1 : elementEgoVehicle.velocity = elementEgoVehicleVelocity; 464 : 1 : ::ad::rss::world::ObjectState elementEgoVehicleState; 465 : 1 : ::ad::physics::Angle elementEgoVehicleStateYaw(-6.283185308); 466 : 1 : elementEgoVehicleState.yaw = elementEgoVehicleStateYaw; 467 : 1 : ::ad::physics::Dimension2D elementEgoVehicleStateDimension; 468 : 1 : ::ad::physics::Distance elementEgoVehicleStateDimensionLength(-1e9); 469 : 1 : elementEgoVehicleStateDimension.length = elementEgoVehicleStateDimensionLength; 470 : 1 : ::ad::physics::Distance elementEgoVehicleStateDimensionWidth(-1e9); 471 : 1 : elementEgoVehicleStateDimension.width = elementEgoVehicleStateDimensionWidth; 472 : 1 : elementEgoVehicleState.dimension = elementEgoVehicleStateDimension; 473 : 1 : ::ad::physics::AngularVelocity elementEgoVehicleStateYawRate(-100.); 474 : 1 : elementEgoVehicleState.yawRate = elementEgoVehicleStateYawRate; 475 : 1 : ::ad::physics::Distance2D elementEgoVehicleStateCenterPoint; 476 : 1 : ::ad::physics::Distance elementEgoVehicleStateCenterPointX(-1e9); 477 : 1 : elementEgoVehicleStateCenterPoint.x = elementEgoVehicleStateCenterPointX; 478 : 1 : ::ad::physics::Distance elementEgoVehicleStateCenterPointY(-1e9); 479 : 1 : elementEgoVehicleStateCenterPoint.y = elementEgoVehicleStateCenterPointY; 480 : 1 : elementEgoVehicleState.centerPoint = elementEgoVehicleStateCenterPoint; 481 : 1 : ::ad::physics::Speed elementEgoVehicleStateSpeed(-100.); 482 : 1 : elementEgoVehicleState.speed = elementEgoVehicleStateSpeed; 483 : 1 : ::ad::physics::Angle elementEgoVehicleStateSteeringAngle(-6.283185308); 484 : 1 : elementEgoVehicleState.steeringAngle = elementEgoVehicleStateSteeringAngle; 485 : 1 : elementEgoVehicle.state = elementEgoVehicleState; 486 [ + - ]: 1 : element.egoVehicle = elementEgoVehicle; 487 : 1 : ::ad::rss::world::RssDynamics elementEgoVehicleRssDynamics; 488 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues elementEgoVehicleRssDynamicsAlphaLon; 489 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonAccelMax(-1e2); 490 : 1 : elementEgoVehicleRssDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 491 : 1 : elementEgoVehicleRssDynamicsAlphaLon.accelMax = elementEgoVehicleRssDynamicsAlphaLonAccelMax; 492 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMax(-1e2); 493 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMax = elementEgoVehicleRssDynamicsAlphaLonBrakeMax; 494 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMin(-1e2); 495 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLonBrakeMin; 496 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 497 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = elementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 498 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLon.brakeMax; 499 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = elementEgoVehicleRssDynamicsAlphaLon.brakeMin; 500 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 501 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMax = elementEgoVehicleRssDynamicsAlphaLon.brakeMin; 502 : 1 : elementEgoVehicleRssDynamics.alphaLon = elementEgoVehicleRssDynamicsAlphaLon; 503 : 1 : ::ad::rss::world::LateralRssAccelerationValues elementEgoVehicleRssDynamicsAlphaLat; 504 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLatAccelMax(-1e2); 505 : 1 : elementEgoVehicleRssDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 506 : 1 : elementEgoVehicleRssDynamicsAlphaLat.accelMax = elementEgoVehicleRssDynamicsAlphaLatAccelMax; 507 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLatBrakeMin(-1e2); 508 : 1 : elementEgoVehicleRssDynamicsAlphaLat.brakeMin = elementEgoVehicleRssDynamicsAlphaLatBrakeMin; 509 : 1 : elementEgoVehicleRssDynamics.alphaLat = elementEgoVehicleRssDynamicsAlphaLat; 510 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsLateralFluctuationMargin(-1e9); 511 : 1 : elementEgoVehicleRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 512 : : // struct 513 : 1 : elementEgoVehicleRssDynamics.lateralFluctuationMargin = elementEgoVehicleRssDynamicsLateralFluctuationMargin; 514 : 1 : ::ad::physics::Duration elementEgoVehicleRssDynamicsResponseTime(0.); 515 : : elementEgoVehicleRssDynamicsResponseTime 516 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 517 : 1 : elementEgoVehicleRssDynamics.responseTime = elementEgoVehicleRssDynamicsResponseTime; 518 : 1 : ::ad::physics::Speed elementEgoVehicleRssDynamicsMaxSpeedOnAcceleration(-100.); 519 : 1 : elementEgoVehicleRssDynamics.maxSpeedOnAcceleration = elementEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 520 : 1 : ::ad::rss::world::UnstructuredSettings elementEgoVehicleRssDynamicsUnstructuredSettings; 521 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 522 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 523 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 524 : 1 : ::ad::physics::Angle elementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 525 : : elementEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 526 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 527 : 1 : ::ad::physics::AngularAcceleration elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 528 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 529 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 530 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 531 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 532 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 533 : 1 : ::ad::physics::Duration elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 534 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 535 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 536 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 537 : : std::numeric_limits<uint32_t>::min()}; 538 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 539 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 540 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 541 : : std::numeric_limits<uint32_t>::min()}; 542 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 543 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 544 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 545 : : std::numeric_limits<uint32_t>::min()}; 546 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 547 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 548 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 549 : : std::numeric_limits<uint32_t>::min()}; 550 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 551 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 552 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 553 : : std::numeric_limits<uint32_t>::min()}; 554 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 555 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 556 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 557 : : std::numeric_limits<uint32_t>::min()}; 558 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 559 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 560 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 561 : : std::numeric_limits<uint32_t>::min()}; 562 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 563 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 564 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 565 : : std::numeric_limits<uint32_t>::min()}; 566 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 567 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 568 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 569 : : std::numeric_limits<uint32_t>::min()}; 570 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 571 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 572 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 573 : : std::numeric_limits<uint32_t>::min()}; 574 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 575 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 576 : 1 : elementEgoVehicleRssDynamics.unstructuredSettings = elementEgoVehicleRssDynamicsUnstructuredSettings; 577 : 1 : element.egoVehicleRssDynamics = elementEgoVehicleRssDynamics; 578 : 1 : ::ad::rss::world::Object elementObject; 579 : 1 : ::ad::rss::world::ObjectId elementObjectObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 580 : 1 : elementObject.objectId = elementObjectObjectId; 581 : 1 : ::ad::rss::world::ObjectType elementObjectObjectType(::ad::rss::world::ObjectType::Invalid); 582 : 1 : elementObject.objectType = elementObjectObjectType; 583 : 1 : ::ad::rss::world::OccupiedRegionVector elementObjectOccupiedRegions; 584 : 1 : ::ad::rss::world::OccupiedRegion elementObjectOccupiedRegionsElement; 585 : 1 : ::ad::rss::world::LaneSegmentId elementObjectOccupiedRegionsElementSegmentId( 586 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 587 : 1 : elementObjectOccupiedRegionsElement.segmentId = elementObjectOccupiedRegionsElementSegmentId; 588 : 1 : ::ad::physics::ParametricRange elementObjectOccupiedRegionsElementLonRange; 589 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLonRangeMinimum(0.); 590 : 1 : elementObjectOccupiedRegionsElementLonRange.minimum = elementObjectOccupiedRegionsElementLonRangeMinimum; 591 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLonRangeMaximum(0.); 592 : 1 : elementObjectOccupiedRegionsElementLonRange.maximum = elementObjectOccupiedRegionsElementLonRangeMaximum; 593 : 1 : elementObjectOccupiedRegionsElementLonRange.maximum = elementObjectOccupiedRegionsElementLonRange.minimum; 594 : 1 : elementObjectOccupiedRegionsElementLonRange.minimum = elementObjectOccupiedRegionsElementLonRange.maximum; 595 : 1 : elementObjectOccupiedRegionsElement.lonRange = elementObjectOccupiedRegionsElementLonRange; 596 : 1 : ::ad::physics::ParametricRange elementObjectOccupiedRegionsElementLatRange; 597 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLatRangeMinimum(0.); 598 : 1 : elementObjectOccupiedRegionsElementLatRange.minimum = elementObjectOccupiedRegionsElementLatRangeMinimum; 599 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLatRangeMaximum(0.); 600 : 1 : elementObjectOccupiedRegionsElementLatRange.maximum = elementObjectOccupiedRegionsElementLatRangeMaximum; 601 : 1 : elementObjectOccupiedRegionsElementLatRange.maximum = elementObjectOccupiedRegionsElementLatRange.minimum; 602 : 1 : elementObjectOccupiedRegionsElementLatRange.minimum = elementObjectOccupiedRegionsElementLatRange.maximum; 603 : 1 : elementObjectOccupiedRegionsElement.latRange = elementObjectOccupiedRegionsElementLatRange; 604 [ + - ]: 1 : elementObjectOccupiedRegions.resize(1, elementObjectOccupiedRegionsElement); 605 [ + - ]: 1 : elementObject.occupiedRegions = elementObjectOccupiedRegions; 606 : 1 : ::ad::rss::world::Velocity elementObjectVelocity; 607 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLonMin(-100.); 608 : 1 : elementObjectVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 609 : 1 : elementObjectVelocity.speedLonMin = elementObjectVelocitySpeedLonMin; 610 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLonMax(-100.); 611 : 1 : elementObjectVelocity.speedLonMax = elementObjectVelocitySpeedLonMax; 612 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLatMin(-100.); 613 : 1 : elementObjectVelocity.speedLatMin = elementObjectVelocitySpeedLatMin; 614 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLatMax(-100.); 615 : 1 : elementObjectVelocity.speedLatMax = elementObjectVelocitySpeedLatMax; 616 : 1 : elementObjectVelocity.speedLonMax = elementObjectVelocity.speedLonMin; 617 : 1 : elementObjectVelocity.speedLatMax = elementObjectVelocity.speedLatMin; 618 : 1 : elementObjectVelocity.speedLonMin = elementObjectVelocity.speedLonMax; 619 : 1 : elementObjectVelocity.speedLatMin = elementObjectVelocity.speedLatMax; 620 : 1 : elementObject.velocity = elementObjectVelocity; 621 : 1 : ::ad::rss::world::ObjectState elementObjectState; 622 : 1 : ::ad::physics::Angle elementObjectStateYaw(-6.283185308); 623 : 1 : elementObjectState.yaw = elementObjectStateYaw; 624 : 1 : ::ad::physics::Dimension2D elementObjectStateDimension; 625 : 1 : ::ad::physics::Distance elementObjectStateDimensionLength(-1e9); 626 : 1 : elementObjectStateDimension.length = elementObjectStateDimensionLength; 627 : 1 : ::ad::physics::Distance elementObjectStateDimensionWidth(-1e9); 628 : 1 : elementObjectStateDimension.width = elementObjectStateDimensionWidth; 629 : 1 : elementObjectState.dimension = elementObjectStateDimension; 630 : 1 : ::ad::physics::AngularVelocity elementObjectStateYawRate(-100.); 631 : 1 : elementObjectState.yawRate = elementObjectStateYawRate; 632 : 1 : ::ad::physics::Distance2D elementObjectStateCenterPoint; 633 : 1 : ::ad::physics::Distance elementObjectStateCenterPointX(-1e9); 634 : 1 : elementObjectStateCenterPoint.x = elementObjectStateCenterPointX; 635 : 1 : ::ad::physics::Distance elementObjectStateCenterPointY(-1e9); 636 : 1 : elementObjectStateCenterPoint.y = elementObjectStateCenterPointY; 637 : 1 : elementObjectState.centerPoint = elementObjectStateCenterPoint; 638 : 1 : ::ad::physics::Speed elementObjectStateSpeed(-100.); 639 : 1 : elementObjectState.speed = elementObjectStateSpeed; 640 : 1 : ::ad::physics::Angle elementObjectStateSteeringAngle(-6.283185308); 641 : 1 : elementObjectState.steeringAngle = elementObjectStateSteeringAngle; 642 : 1 : elementObject.state = elementObjectState; 643 [ + - ]: 1 : element.object = elementObject; 644 : 1 : ::ad::rss::world::RssDynamics elementObjectRssDynamics; 645 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues elementObjectRssDynamicsAlphaLon; 646 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonAccelMax(-1e2); 647 : 1 : elementObjectRssDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 648 : 1 : elementObjectRssDynamicsAlphaLon.accelMax = elementObjectRssDynamicsAlphaLonAccelMax; 649 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMax(-1e2); 650 : 1 : elementObjectRssDynamicsAlphaLon.brakeMax = elementObjectRssDynamicsAlphaLonBrakeMax; 651 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMin(-1e2); 652 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLonBrakeMin; 653 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 654 : 1 : elementObjectRssDynamicsAlphaLon.brakeMinCorrect = elementObjectRssDynamicsAlphaLonBrakeMinCorrect; 655 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLon.brakeMax; 656 : 1 : elementObjectRssDynamicsAlphaLon.brakeMinCorrect = elementObjectRssDynamicsAlphaLon.brakeMin; 657 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLon.brakeMinCorrect; 658 : 1 : elementObjectRssDynamicsAlphaLon.brakeMax = elementObjectRssDynamicsAlphaLon.brakeMin; 659 : 1 : elementObjectRssDynamics.alphaLon = elementObjectRssDynamicsAlphaLon; 660 : 1 : ::ad::rss::world::LateralRssAccelerationValues elementObjectRssDynamicsAlphaLat; 661 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLatAccelMax(-1e2); 662 : 1 : elementObjectRssDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 663 : 1 : elementObjectRssDynamicsAlphaLat.accelMax = elementObjectRssDynamicsAlphaLatAccelMax; 664 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLatBrakeMin(-1e2); 665 : 1 : elementObjectRssDynamicsAlphaLat.brakeMin = elementObjectRssDynamicsAlphaLatBrakeMin; 666 : 1 : elementObjectRssDynamics.alphaLat = elementObjectRssDynamicsAlphaLat; 667 : 1 : ::ad::physics::Distance elementObjectRssDynamicsLateralFluctuationMargin(-1e9); 668 : 1 : elementObjectRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within struct 669 : 1 : elementObjectRssDynamics.lateralFluctuationMargin = elementObjectRssDynamicsLateralFluctuationMargin; 670 : 1 : ::ad::physics::Duration elementObjectRssDynamicsResponseTime(0.); 671 : : elementObjectRssDynamicsResponseTime 672 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 673 : 1 : elementObjectRssDynamics.responseTime = elementObjectRssDynamicsResponseTime; 674 : 1 : ::ad::physics::Speed elementObjectRssDynamicsMaxSpeedOnAcceleration(-100.); 675 : 1 : elementObjectRssDynamics.maxSpeedOnAcceleration = elementObjectRssDynamicsMaxSpeedOnAcceleration; 676 : 1 : ::ad::rss::world::UnstructuredSettings elementObjectRssDynamicsUnstructuredSettings; 677 : 1 : ::ad::physics::Distance elementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 678 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianTurningRadius 679 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 680 : 1 : ::ad::physics::Angle elementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 681 : : elementObjectRssDynamicsUnstructuredSettings.driveAwayMaxAngle 682 : 1 : = elementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 683 : 1 : ::ad::physics::AngularAcceleration elementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 684 : : elementObjectRssDynamicsUnstructuredSettings.vehicleYawRateChange 685 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange; 686 : 1 : ::ad::physics::Distance elementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 687 : : elementObjectRssDynamicsUnstructuredSettings.vehicleMinRadius 688 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius; 689 : 1 : ::ad::physics::Duration elementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 690 : : elementObjectRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 691 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 692 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 693 : : std::numeric_limits<uint32_t>::min()}; 694 : : elementObjectRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 695 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 696 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 697 : : std::numeric_limits<uint32_t>::min()}; 698 : : elementObjectRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 699 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 700 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 701 : : std::numeric_limits<uint32_t>::min()}; 702 : : elementObjectRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 703 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 704 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 705 : : std::numeric_limits<uint32_t>::min()}; 706 : : elementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 707 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 708 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 709 : : std::numeric_limits<uint32_t>::min()}; 710 : : elementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 711 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 712 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 713 : : std::numeric_limits<uint32_t>::min()}; 714 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 715 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 716 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 717 : : std::numeric_limits<uint32_t>::min()}; 718 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 719 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 720 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 721 : : std::numeric_limits<uint32_t>::min()}; 722 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 723 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 724 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 725 : : std::numeric_limits<uint32_t>::min()}; 726 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 727 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 728 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 729 : : std::numeric_limits<uint32_t>::min()}; 730 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 731 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 732 : 1 : elementObjectRssDynamics.unstructuredSettings = elementObjectRssDynamicsUnstructuredSettings; 733 : 1 : element.objectRssDynamics = elementObjectRssDynamics; 734 : 1 : ::ad::rss::world::RoadArea elementIntersectingRoad; 735 : 1 : ::ad::rss::world::RoadSegment elementIntersectingRoadElement; 736 : 1 : ::ad::rss::world::LaneSegment elementIntersectingRoadElementElement; 737 : 1 : ::ad::rss::world::LaneSegmentId elementIntersectingRoadElementElementId( 738 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 739 : 1 : elementIntersectingRoadElementElement.id = elementIntersectingRoadElementElementId; 740 : 1 : ::ad::rss::world::LaneSegmentType elementIntersectingRoadElementElementType( 741 : : ::ad::rss::world::LaneSegmentType::Normal); 742 : 1 : elementIntersectingRoadElementElement.type = elementIntersectingRoadElementElementType; 743 : 1 : ::ad::rss::world::LaneDrivingDirection elementIntersectingRoadElementElementDrivingDirection( 744 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 745 : 1 : elementIntersectingRoadElementElement.drivingDirection = elementIntersectingRoadElementElementDrivingDirection; 746 : 1 : ::ad::physics::MetricRange elementIntersectingRoadElementElementLength; 747 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementLengthMinimum(-1e9); 748 : 1 : elementIntersectingRoadElementElementLengthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 749 : 1 : elementIntersectingRoadElementElementLength.minimum = elementIntersectingRoadElementElementLengthMinimum; 750 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementLengthMaximum(-1e9); 751 : 1 : elementIntersectingRoadElementElementLength.maximum = elementIntersectingRoadElementElementLengthMaximum; 752 : 1 : elementIntersectingRoadElementElementLength.maximum = elementIntersectingRoadElementElementLength.minimum; 753 : 1 : elementIntersectingRoadElementElementLength.minimum = elementIntersectingRoadElementElementLength.maximum; 754 : 1 : elementIntersectingRoadElementElement.length = elementIntersectingRoadElementElementLength; 755 : 1 : ::ad::physics::MetricRange elementIntersectingRoadElementElementWidth; 756 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementWidthMinimum(-1e9); 757 : 1 : elementIntersectingRoadElementElementWidthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 758 : 1 : elementIntersectingRoadElementElementWidth.minimum = elementIntersectingRoadElementElementWidthMinimum; 759 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementWidthMaximum(-1e9); 760 : 1 : elementIntersectingRoadElementElementWidth.maximum = elementIntersectingRoadElementElementWidthMaximum; 761 : 1 : elementIntersectingRoadElementElementWidth.maximum = elementIntersectingRoadElementElementWidth.minimum; 762 : 1 : elementIntersectingRoadElementElementWidth.minimum = elementIntersectingRoadElementElementWidth.maximum; 763 : 1 : elementIntersectingRoadElementElement.width = elementIntersectingRoadElementElementWidth; 764 [ + - ]: 1 : elementIntersectingRoadElement.resize(1, elementIntersectingRoadElementElement); 765 [ + - ]: 1 : elementIntersectingRoad.resize(1, elementIntersectingRoadElement); 766 [ + - ]: 1 : element.intersectingRoad = elementIntersectingRoad; 767 : 1 : ::ad::rss::world::RoadArea elementEgoVehicleRoad; 768 : 1 : ::ad::rss::world::RoadSegment elementEgoVehicleRoadElement; 769 : 1 : ::ad::rss::world::LaneSegment elementEgoVehicleRoadElementElement; 770 : 1 : ::ad::rss::world::LaneSegmentId elementEgoVehicleRoadElementElementId( 771 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 772 : 1 : elementEgoVehicleRoadElementElement.id = elementEgoVehicleRoadElementElementId; 773 : 1 : ::ad::rss::world::LaneSegmentType elementEgoVehicleRoadElementElementType(::ad::rss::world::LaneSegmentType::Normal); 774 : 1 : elementEgoVehicleRoadElementElement.type = elementEgoVehicleRoadElementElementType; 775 : 1 : ::ad::rss::world::LaneDrivingDirection elementEgoVehicleRoadElementElementDrivingDirection( 776 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 777 : 1 : elementEgoVehicleRoadElementElement.drivingDirection = elementEgoVehicleRoadElementElementDrivingDirection; 778 : 1 : ::ad::physics::MetricRange elementEgoVehicleRoadElementElementLength; 779 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementLengthMinimum(-1e9); 780 : 1 : elementEgoVehicleRoadElementElementLengthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 781 : 1 : elementEgoVehicleRoadElementElementLength.minimum = elementEgoVehicleRoadElementElementLengthMinimum; 782 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementLengthMaximum(-1e9); 783 : 1 : elementEgoVehicleRoadElementElementLength.maximum = elementEgoVehicleRoadElementElementLengthMaximum; 784 : 1 : elementEgoVehicleRoadElementElementLength.maximum = elementEgoVehicleRoadElementElementLength.minimum; 785 : 1 : elementEgoVehicleRoadElementElementLength.minimum = elementEgoVehicleRoadElementElementLength.maximum; 786 : 1 : elementEgoVehicleRoadElementElement.length = elementEgoVehicleRoadElementElementLength; 787 : 1 : ::ad::physics::MetricRange elementEgoVehicleRoadElementElementWidth; 788 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementWidthMinimum(-1e9); 789 : 1 : elementEgoVehicleRoadElementElementWidthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 790 : 1 : elementEgoVehicleRoadElementElementWidth.minimum = elementEgoVehicleRoadElementElementWidthMinimum; 791 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementWidthMaximum(-1e9); 792 : 1 : elementEgoVehicleRoadElementElementWidth.maximum = elementEgoVehicleRoadElementElementWidthMaximum; 793 : 1 : elementEgoVehicleRoadElementElementWidth.maximum = elementEgoVehicleRoadElementElementWidth.minimum; 794 : 1 : elementEgoVehicleRoadElementElementWidth.minimum = elementEgoVehicleRoadElementElementWidth.maximum; 795 : 1 : elementEgoVehicleRoadElementElement.width = elementEgoVehicleRoadElementElementWidth; 796 [ + - ]: 1 : elementEgoVehicleRoadElement.resize(1, elementEgoVehicleRoadElementElement); 797 [ + - ]: 1 : elementEgoVehicleRoad.resize(1, elementEgoVehicleRoadElement); 798 [ + - ]: 1 : element.egoVehicleRoad = elementEgoVehicleRoad; 799 [ + - ]: 1 : value.resize(1001, element); 800 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 801 : : } 802 : : 803 : 2 : TEST(SceneVectorValidInputRangeTests, testValidInputRangeElementTypeInvalid) 804 : : { 805 : 1 : ::ad::rss::world::SceneVector value; 806 : 1 : ::ad::rss::world::Scene element; 807 : 1 : ::ad::rss::situation::SituationType elementSituationType(static_cast<::ad::rss::situation::SituationType>(-1)); 808 : 1 : element.situationType = elementSituationType; 809 [ + - ]: 1 : value.resize(999, element); 810 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 811 : : } 812 : : 813 : 2 : TEST(SceneVectorValidInputRangeTests, testValidInputRangeElementValid) 814 : : { 815 : 1 : ::ad::rss::world::SceneVector value; 816 : 1 : ::ad::rss::world::Scene element; 817 : 1 : ::ad::rss::situation::SituationType elementSituationType(::ad::rss::situation::SituationType::NotRelevant); 818 : 1 : element.situationType = elementSituationType; 819 : 1 : ::ad::rss::world::Object elementEgoVehicle; 820 : 1 : ::ad::rss::world::ObjectId elementEgoVehicleObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 821 : 1 : elementEgoVehicle.objectId = elementEgoVehicleObjectId; 822 : 1 : ::ad::rss::world::ObjectType elementEgoVehicleObjectType(::ad::rss::world::ObjectType::Invalid); 823 : 1 : elementEgoVehicle.objectType = elementEgoVehicleObjectType; 824 : 1 : ::ad::rss::world::OccupiedRegionVector elementEgoVehicleOccupiedRegions; 825 : 1 : ::ad::rss::world::OccupiedRegion elementEgoVehicleOccupiedRegionsElement; 826 : 1 : ::ad::rss::world::LaneSegmentId elementEgoVehicleOccupiedRegionsElementSegmentId( 827 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 828 : 1 : elementEgoVehicleOccupiedRegionsElement.segmentId = elementEgoVehicleOccupiedRegionsElementSegmentId; 829 : 1 : ::ad::physics::ParametricRange elementEgoVehicleOccupiedRegionsElementLonRange; 830 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLonRangeMinimum(0.); 831 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.minimum = elementEgoVehicleOccupiedRegionsElementLonRangeMinimum; 832 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLonRangeMaximum(0.); 833 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.maximum = elementEgoVehicleOccupiedRegionsElementLonRangeMaximum; 834 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.maximum = elementEgoVehicleOccupiedRegionsElementLonRange.minimum; 835 : 1 : elementEgoVehicleOccupiedRegionsElementLonRange.minimum = elementEgoVehicleOccupiedRegionsElementLonRange.maximum; 836 : 1 : elementEgoVehicleOccupiedRegionsElement.lonRange = elementEgoVehicleOccupiedRegionsElementLonRange; 837 : 1 : ::ad::physics::ParametricRange elementEgoVehicleOccupiedRegionsElementLatRange; 838 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLatRangeMinimum(0.); 839 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.minimum = elementEgoVehicleOccupiedRegionsElementLatRangeMinimum; 840 : 1 : ::ad::physics::ParametricValue elementEgoVehicleOccupiedRegionsElementLatRangeMaximum(0.); 841 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.maximum = elementEgoVehicleOccupiedRegionsElementLatRangeMaximum; 842 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.maximum = elementEgoVehicleOccupiedRegionsElementLatRange.minimum; 843 : 1 : elementEgoVehicleOccupiedRegionsElementLatRange.minimum = elementEgoVehicleOccupiedRegionsElementLatRange.maximum; 844 : 1 : elementEgoVehicleOccupiedRegionsElement.latRange = elementEgoVehicleOccupiedRegionsElementLatRange; 845 [ + - ]: 1 : elementEgoVehicleOccupiedRegions.resize(1, elementEgoVehicleOccupiedRegionsElement); 846 [ + - ]: 1 : elementEgoVehicle.occupiedRegions = elementEgoVehicleOccupiedRegions; 847 : 1 : ::ad::rss::world::Velocity elementEgoVehicleVelocity; 848 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLonMin(-100.); 849 : 1 : elementEgoVehicleVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 850 : 1 : elementEgoVehicleVelocity.speedLonMin = elementEgoVehicleVelocitySpeedLonMin; 851 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLonMax(-100.); 852 : 1 : elementEgoVehicleVelocity.speedLonMax = elementEgoVehicleVelocitySpeedLonMax; 853 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLatMin(-100.); 854 : 1 : elementEgoVehicleVelocity.speedLatMin = elementEgoVehicleVelocitySpeedLatMin; 855 : 1 : ::ad::physics::Speed elementEgoVehicleVelocitySpeedLatMax(-100.); 856 : 1 : elementEgoVehicleVelocity.speedLatMax = elementEgoVehicleVelocitySpeedLatMax; 857 : 1 : elementEgoVehicleVelocity.speedLonMax = elementEgoVehicleVelocity.speedLonMin; 858 : 1 : elementEgoVehicleVelocity.speedLatMax = elementEgoVehicleVelocity.speedLatMin; 859 : 1 : elementEgoVehicleVelocity.speedLonMin = elementEgoVehicleVelocity.speedLonMax; 860 : 1 : elementEgoVehicleVelocity.speedLatMin = elementEgoVehicleVelocity.speedLatMax; 861 : 1 : elementEgoVehicle.velocity = elementEgoVehicleVelocity; 862 : 1 : ::ad::rss::world::ObjectState elementEgoVehicleState; 863 : 1 : ::ad::physics::Angle elementEgoVehicleStateYaw(-6.283185308); 864 : 1 : elementEgoVehicleState.yaw = elementEgoVehicleStateYaw; 865 : 1 : ::ad::physics::Dimension2D elementEgoVehicleStateDimension; 866 : 1 : ::ad::physics::Distance elementEgoVehicleStateDimensionLength(-1e9); 867 : 1 : elementEgoVehicleStateDimension.length = elementEgoVehicleStateDimensionLength; 868 : 1 : ::ad::physics::Distance elementEgoVehicleStateDimensionWidth(-1e9); 869 : 1 : elementEgoVehicleStateDimension.width = elementEgoVehicleStateDimensionWidth; 870 : 1 : elementEgoVehicleState.dimension = elementEgoVehicleStateDimension; 871 : 1 : ::ad::physics::AngularVelocity elementEgoVehicleStateYawRate(-100.); 872 : 1 : elementEgoVehicleState.yawRate = elementEgoVehicleStateYawRate; 873 : 1 : ::ad::physics::Distance2D elementEgoVehicleStateCenterPoint; 874 : 1 : ::ad::physics::Distance elementEgoVehicleStateCenterPointX(-1e9); 875 : 1 : elementEgoVehicleStateCenterPoint.x = elementEgoVehicleStateCenterPointX; 876 : 1 : ::ad::physics::Distance elementEgoVehicleStateCenterPointY(-1e9); 877 : 1 : elementEgoVehicleStateCenterPoint.y = elementEgoVehicleStateCenterPointY; 878 : 1 : elementEgoVehicleState.centerPoint = elementEgoVehicleStateCenterPoint; 879 : 1 : ::ad::physics::Speed elementEgoVehicleStateSpeed(-100.); 880 : 1 : elementEgoVehicleState.speed = elementEgoVehicleStateSpeed; 881 : 1 : ::ad::physics::Angle elementEgoVehicleStateSteeringAngle(-6.283185308); 882 : 1 : elementEgoVehicleState.steeringAngle = elementEgoVehicleStateSteeringAngle; 883 : 1 : elementEgoVehicle.state = elementEgoVehicleState; 884 [ + - ]: 1 : element.egoVehicle = elementEgoVehicle; 885 : 1 : ::ad::rss::world::RssDynamics elementEgoVehicleRssDynamics; 886 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues elementEgoVehicleRssDynamicsAlphaLon; 887 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonAccelMax(-1e2); 888 : 1 : elementEgoVehicleRssDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 889 : 1 : elementEgoVehicleRssDynamicsAlphaLon.accelMax = elementEgoVehicleRssDynamicsAlphaLonAccelMax; 890 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMax(-1e2); 891 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMax = elementEgoVehicleRssDynamicsAlphaLonBrakeMax; 892 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMin(-1e2); 893 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLonBrakeMin; 894 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 895 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = elementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 896 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLon.brakeMax; 897 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = elementEgoVehicleRssDynamicsAlphaLon.brakeMin; 898 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMin = elementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 899 : 1 : elementEgoVehicleRssDynamicsAlphaLon.brakeMax = elementEgoVehicleRssDynamicsAlphaLon.brakeMin; 900 : 1 : elementEgoVehicleRssDynamics.alphaLon = elementEgoVehicleRssDynamicsAlphaLon; 901 : 1 : ::ad::rss::world::LateralRssAccelerationValues elementEgoVehicleRssDynamicsAlphaLat; 902 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLatAccelMax(-1e2); 903 : 1 : elementEgoVehicleRssDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 904 : 1 : elementEgoVehicleRssDynamicsAlphaLat.accelMax = elementEgoVehicleRssDynamicsAlphaLatAccelMax; 905 : 1 : ::ad::physics::Acceleration elementEgoVehicleRssDynamicsAlphaLatBrakeMin(-1e2); 906 : 1 : elementEgoVehicleRssDynamicsAlphaLat.brakeMin = elementEgoVehicleRssDynamicsAlphaLatBrakeMin; 907 : 1 : elementEgoVehicleRssDynamics.alphaLat = elementEgoVehicleRssDynamicsAlphaLat; 908 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsLateralFluctuationMargin(-1e9); 909 : 1 : elementEgoVehicleRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within 910 : : // struct 911 : 1 : elementEgoVehicleRssDynamics.lateralFluctuationMargin = elementEgoVehicleRssDynamicsLateralFluctuationMargin; 912 : 1 : ::ad::physics::Duration elementEgoVehicleRssDynamicsResponseTime(0.); 913 : : elementEgoVehicleRssDynamicsResponseTime 914 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 915 : 1 : elementEgoVehicleRssDynamics.responseTime = elementEgoVehicleRssDynamicsResponseTime; 916 : 1 : ::ad::physics::Speed elementEgoVehicleRssDynamicsMaxSpeedOnAcceleration(-100.); 917 : 1 : elementEgoVehicleRssDynamics.maxSpeedOnAcceleration = elementEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 918 : 1 : ::ad::rss::world::UnstructuredSettings elementEgoVehicleRssDynamicsUnstructuredSettings; 919 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 920 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 921 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 922 : 1 : ::ad::physics::Angle elementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 923 : : elementEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 924 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 925 : 1 : ::ad::physics::AngularAcceleration elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 926 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 927 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 928 : 1 : ::ad::physics::Distance elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 929 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 930 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 931 : 1 : ::ad::physics::Duration elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 932 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 933 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 934 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 935 : : std::numeric_limits<uint32_t>::min()}; 936 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 937 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 938 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 939 : : std::numeric_limits<uint32_t>::min()}; 940 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 941 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 942 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 943 : : std::numeric_limits<uint32_t>::min()}; 944 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 945 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 946 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 947 : : std::numeric_limits<uint32_t>::min()}; 948 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 949 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 950 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 951 : : std::numeric_limits<uint32_t>::min()}; 952 : : elementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 953 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 954 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 955 : : std::numeric_limits<uint32_t>::min()}; 956 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 957 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 958 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 959 : : std::numeric_limits<uint32_t>::min()}; 960 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 961 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 962 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 963 : : std::numeric_limits<uint32_t>::min()}; 964 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 965 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 966 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 967 : : std::numeric_limits<uint32_t>::min()}; 968 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 969 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 970 : 1 : uint32_t elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 971 : : std::numeric_limits<uint32_t>::min()}; 972 : : elementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 973 : 1 : = elementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 974 : 1 : elementEgoVehicleRssDynamics.unstructuredSettings = elementEgoVehicleRssDynamicsUnstructuredSettings; 975 : 1 : element.egoVehicleRssDynamics = elementEgoVehicleRssDynamics; 976 : 1 : ::ad::rss::world::Object elementObject; 977 : 1 : ::ad::rss::world::ObjectId elementObjectObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 978 : 1 : elementObject.objectId = elementObjectObjectId; 979 : 1 : ::ad::rss::world::ObjectType elementObjectObjectType(::ad::rss::world::ObjectType::Invalid); 980 : 1 : elementObject.objectType = elementObjectObjectType; 981 : 1 : ::ad::rss::world::OccupiedRegionVector elementObjectOccupiedRegions; 982 : 1 : ::ad::rss::world::OccupiedRegion elementObjectOccupiedRegionsElement; 983 : 1 : ::ad::rss::world::LaneSegmentId elementObjectOccupiedRegionsElementSegmentId( 984 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 985 : 1 : elementObjectOccupiedRegionsElement.segmentId = elementObjectOccupiedRegionsElementSegmentId; 986 : 1 : ::ad::physics::ParametricRange elementObjectOccupiedRegionsElementLonRange; 987 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLonRangeMinimum(0.); 988 : 1 : elementObjectOccupiedRegionsElementLonRange.minimum = elementObjectOccupiedRegionsElementLonRangeMinimum; 989 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLonRangeMaximum(0.); 990 : 1 : elementObjectOccupiedRegionsElementLonRange.maximum = elementObjectOccupiedRegionsElementLonRangeMaximum; 991 : 1 : elementObjectOccupiedRegionsElementLonRange.maximum = elementObjectOccupiedRegionsElementLonRange.minimum; 992 : 1 : elementObjectOccupiedRegionsElementLonRange.minimum = elementObjectOccupiedRegionsElementLonRange.maximum; 993 : 1 : elementObjectOccupiedRegionsElement.lonRange = elementObjectOccupiedRegionsElementLonRange; 994 : 1 : ::ad::physics::ParametricRange elementObjectOccupiedRegionsElementLatRange; 995 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLatRangeMinimum(0.); 996 : 1 : elementObjectOccupiedRegionsElementLatRange.minimum = elementObjectOccupiedRegionsElementLatRangeMinimum; 997 : 1 : ::ad::physics::ParametricValue elementObjectOccupiedRegionsElementLatRangeMaximum(0.); 998 : 1 : elementObjectOccupiedRegionsElementLatRange.maximum = elementObjectOccupiedRegionsElementLatRangeMaximum; 999 : 1 : elementObjectOccupiedRegionsElementLatRange.maximum = elementObjectOccupiedRegionsElementLatRange.minimum; 1000 : 1 : elementObjectOccupiedRegionsElementLatRange.minimum = elementObjectOccupiedRegionsElementLatRange.maximum; 1001 : 1 : elementObjectOccupiedRegionsElement.latRange = elementObjectOccupiedRegionsElementLatRange; 1002 [ + - ]: 1 : elementObjectOccupiedRegions.resize(1, elementObjectOccupiedRegionsElement); 1003 [ + - ]: 1 : elementObject.occupiedRegions = elementObjectOccupiedRegions; 1004 : 1 : ::ad::rss::world::Velocity elementObjectVelocity; 1005 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLonMin(-100.); 1006 : 1 : elementObjectVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 1007 : 1 : elementObjectVelocity.speedLonMin = elementObjectVelocitySpeedLonMin; 1008 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLonMax(-100.); 1009 : 1 : elementObjectVelocity.speedLonMax = elementObjectVelocitySpeedLonMax; 1010 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLatMin(-100.); 1011 : 1 : elementObjectVelocity.speedLatMin = elementObjectVelocitySpeedLatMin; 1012 : 1 : ::ad::physics::Speed elementObjectVelocitySpeedLatMax(-100.); 1013 : 1 : elementObjectVelocity.speedLatMax = elementObjectVelocitySpeedLatMax; 1014 : 1 : elementObjectVelocity.speedLonMax = elementObjectVelocity.speedLonMin; 1015 : 1 : elementObjectVelocity.speedLatMax = elementObjectVelocity.speedLatMin; 1016 : 1 : elementObjectVelocity.speedLonMin = elementObjectVelocity.speedLonMax; 1017 : 1 : elementObjectVelocity.speedLatMin = elementObjectVelocity.speedLatMax; 1018 : 1 : elementObject.velocity = elementObjectVelocity; 1019 : 1 : ::ad::rss::world::ObjectState elementObjectState; 1020 : 1 : ::ad::physics::Angle elementObjectStateYaw(-6.283185308); 1021 : 1 : elementObjectState.yaw = elementObjectStateYaw; 1022 : 1 : ::ad::physics::Dimension2D elementObjectStateDimension; 1023 : 1 : ::ad::physics::Distance elementObjectStateDimensionLength(-1e9); 1024 : 1 : elementObjectStateDimension.length = elementObjectStateDimensionLength; 1025 : 1 : ::ad::physics::Distance elementObjectStateDimensionWidth(-1e9); 1026 : 1 : elementObjectStateDimension.width = elementObjectStateDimensionWidth; 1027 : 1 : elementObjectState.dimension = elementObjectStateDimension; 1028 : 1 : ::ad::physics::AngularVelocity elementObjectStateYawRate(-100.); 1029 : 1 : elementObjectState.yawRate = elementObjectStateYawRate; 1030 : 1 : ::ad::physics::Distance2D elementObjectStateCenterPoint; 1031 : 1 : ::ad::physics::Distance elementObjectStateCenterPointX(-1e9); 1032 : 1 : elementObjectStateCenterPoint.x = elementObjectStateCenterPointX; 1033 : 1 : ::ad::physics::Distance elementObjectStateCenterPointY(-1e9); 1034 : 1 : elementObjectStateCenterPoint.y = elementObjectStateCenterPointY; 1035 : 1 : elementObjectState.centerPoint = elementObjectStateCenterPoint; 1036 : 1 : ::ad::physics::Speed elementObjectStateSpeed(-100.); 1037 : 1 : elementObjectState.speed = elementObjectStateSpeed; 1038 : 1 : ::ad::physics::Angle elementObjectStateSteeringAngle(-6.283185308); 1039 : 1 : elementObjectState.steeringAngle = elementObjectStateSteeringAngle; 1040 : 1 : elementObject.state = elementObjectState; 1041 [ + - ]: 1 : element.object = elementObject; 1042 : 1 : ::ad::rss::world::RssDynamics elementObjectRssDynamics; 1043 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues elementObjectRssDynamicsAlphaLon; 1044 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonAccelMax(-1e2); 1045 : 1 : elementObjectRssDynamicsAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1046 : 1 : elementObjectRssDynamicsAlphaLon.accelMax = elementObjectRssDynamicsAlphaLonAccelMax; 1047 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMax(-1e2); 1048 : 1 : elementObjectRssDynamicsAlphaLon.brakeMax = elementObjectRssDynamicsAlphaLonBrakeMax; 1049 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMin(-1e2); 1050 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLonBrakeMin; 1051 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 1052 : 1 : elementObjectRssDynamicsAlphaLon.brakeMinCorrect = elementObjectRssDynamicsAlphaLonBrakeMinCorrect; 1053 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLon.brakeMax; 1054 : 1 : elementObjectRssDynamicsAlphaLon.brakeMinCorrect = elementObjectRssDynamicsAlphaLon.brakeMin; 1055 : 1 : elementObjectRssDynamicsAlphaLon.brakeMin = elementObjectRssDynamicsAlphaLon.brakeMinCorrect; 1056 : 1 : elementObjectRssDynamicsAlphaLon.brakeMax = elementObjectRssDynamicsAlphaLon.brakeMin; 1057 : 1 : elementObjectRssDynamics.alphaLon = elementObjectRssDynamicsAlphaLon; 1058 : 1 : ::ad::rss::world::LateralRssAccelerationValues elementObjectRssDynamicsAlphaLat; 1059 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLatAccelMax(-1e2); 1060 : 1 : elementObjectRssDynamicsAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct 1061 : 1 : elementObjectRssDynamicsAlphaLat.accelMax = elementObjectRssDynamicsAlphaLatAccelMax; 1062 : 1 : ::ad::physics::Acceleration elementObjectRssDynamicsAlphaLatBrakeMin(-1e2); 1063 : 1 : elementObjectRssDynamicsAlphaLat.brakeMin = elementObjectRssDynamicsAlphaLatBrakeMin; 1064 : 1 : elementObjectRssDynamics.alphaLat = elementObjectRssDynamicsAlphaLat; 1065 : 1 : ::ad::physics::Distance elementObjectRssDynamicsLateralFluctuationMargin(-1e9); 1066 : 1 : elementObjectRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(0.); // set to valid value within struct 1067 : 1 : elementObjectRssDynamics.lateralFluctuationMargin = elementObjectRssDynamicsLateralFluctuationMargin; 1068 : 1 : ::ad::physics::Duration elementObjectRssDynamicsResponseTime(0.); 1069 : : elementObjectRssDynamicsResponseTime 1070 : 1 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 1071 : 1 : elementObjectRssDynamics.responseTime = elementObjectRssDynamicsResponseTime; 1072 : 1 : ::ad::physics::Speed elementObjectRssDynamicsMaxSpeedOnAcceleration(-100.); 1073 : 1 : elementObjectRssDynamics.maxSpeedOnAcceleration = elementObjectRssDynamicsMaxSpeedOnAcceleration; 1074 : 1 : ::ad::rss::world::UnstructuredSettings elementObjectRssDynamicsUnstructuredSettings; 1075 : 1 : ::ad::physics::Distance elementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 1076 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianTurningRadius 1077 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 1078 : 1 : ::ad::physics::Angle elementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 1079 : : elementObjectRssDynamicsUnstructuredSettings.driveAwayMaxAngle 1080 : 1 : = elementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1081 : 1 : ::ad::physics::AngularAcceleration elementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 1082 : : elementObjectRssDynamicsUnstructuredSettings.vehicleYawRateChange 1083 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange; 1084 : 1 : ::ad::physics::Distance elementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 1085 : : elementObjectRssDynamicsUnstructuredSettings.vehicleMinRadius 1086 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius; 1087 : 1 : ::ad::physics::Duration elementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 1088 : : elementObjectRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1089 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1090 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1091 : : std::numeric_limits<uint32_t>::min()}; 1092 : : elementObjectRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1093 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1094 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1095 : : std::numeric_limits<uint32_t>::min()}; 1096 : : elementObjectRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1097 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1098 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1099 : : std::numeric_limits<uint32_t>::min()}; 1100 : : elementObjectRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1101 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1102 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1103 : : std::numeric_limits<uint32_t>::min()}; 1104 : : elementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1105 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1106 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 1107 : : std::numeric_limits<uint32_t>::min()}; 1108 : : elementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 1109 : 1 : = elementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 1110 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 1111 : : std::numeric_limits<uint32_t>::min()}; 1112 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 1113 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 1114 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 1115 : : std::numeric_limits<uint32_t>::min()}; 1116 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 1117 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 1118 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 1119 : : std::numeric_limits<uint32_t>::min()}; 1120 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 1121 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 1122 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 1123 : : std::numeric_limits<uint32_t>::min()}; 1124 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 1125 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 1126 : 1 : uint32_t elementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 1127 : : std::numeric_limits<uint32_t>::min()}; 1128 : : elementObjectRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 1129 : 1 : = elementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 1130 : 1 : elementObjectRssDynamics.unstructuredSettings = elementObjectRssDynamicsUnstructuredSettings; 1131 : 1 : element.objectRssDynamics = elementObjectRssDynamics; 1132 : 1 : ::ad::rss::world::RoadArea elementIntersectingRoad; 1133 : 1 : ::ad::rss::world::RoadSegment elementIntersectingRoadElement; 1134 : 1 : ::ad::rss::world::LaneSegment elementIntersectingRoadElementElement; 1135 : 1 : ::ad::rss::world::LaneSegmentId elementIntersectingRoadElementElementId( 1136 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 1137 : 1 : elementIntersectingRoadElementElement.id = elementIntersectingRoadElementElementId; 1138 : 1 : ::ad::rss::world::LaneSegmentType elementIntersectingRoadElementElementType( 1139 : : ::ad::rss::world::LaneSegmentType::Normal); 1140 : 1 : elementIntersectingRoadElementElement.type = elementIntersectingRoadElementElementType; 1141 : 1 : ::ad::rss::world::LaneDrivingDirection elementIntersectingRoadElementElementDrivingDirection( 1142 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 1143 : 1 : elementIntersectingRoadElementElement.drivingDirection = elementIntersectingRoadElementElementDrivingDirection; 1144 : 1 : ::ad::physics::MetricRange elementIntersectingRoadElementElementLength; 1145 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementLengthMinimum(-1e9); 1146 : 1 : elementIntersectingRoadElementElementLengthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 1147 : 1 : elementIntersectingRoadElementElementLength.minimum = elementIntersectingRoadElementElementLengthMinimum; 1148 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementLengthMaximum(-1e9); 1149 : 1 : elementIntersectingRoadElementElementLength.maximum = elementIntersectingRoadElementElementLengthMaximum; 1150 : 1 : elementIntersectingRoadElementElementLength.maximum = elementIntersectingRoadElementElementLength.minimum; 1151 : 1 : elementIntersectingRoadElementElementLength.minimum = elementIntersectingRoadElementElementLength.maximum; 1152 : 1 : elementIntersectingRoadElementElement.length = elementIntersectingRoadElementElementLength; 1153 : 1 : ::ad::physics::MetricRange elementIntersectingRoadElementElementWidth; 1154 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementWidthMinimum(-1e9); 1155 : 1 : elementIntersectingRoadElementElementWidthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 1156 : 1 : elementIntersectingRoadElementElementWidth.minimum = elementIntersectingRoadElementElementWidthMinimum; 1157 : 1 : ::ad::physics::Distance elementIntersectingRoadElementElementWidthMaximum(-1e9); 1158 : 1 : elementIntersectingRoadElementElementWidth.maximum = elementIntersectingRoadElementElementWidthMaximum; 1159 : 1 : elementIntersectingRoadElementElementWidth.maximum = elementIntersectingRoadElementElementWidth.minimum; 1160 : 1 : elementIntersectingRoadElementElementWidth.minimum = elementIntersectingRoadElementElementWidth.maximum; 1161 : 1 : elementIntersectingRoadElementElement.width = elementIntersectingRoadElementElementWidth; 1162 [ + - ]: 1 : elementIntersectingRoadElement.resize(1, elementIntersectingRoadElementElement); 1163 [ + - ]: 1 : elementIntersectingRoad.resize(1, elementIntersectingRoadElement); 1164 [ + - ]: 1 : element.intersectingRoad = elementIntersectingRoad; 1165 : 1 : ::ad::rss::world::RoadArea elementEgoVehicleRoad; 1166 : 1 : ::ad::rss::world::RoadSegment elementEgoVehicleRoadElement; 1167 : 1 : ::ad::rss::world::LaneSegment elementEgoVehicleRoadElementElement; 1168 : 1 : ::ad::rss::world::LaneSegmentId elementEgoVehicleRoadElementElementId( 1169 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 1170 : 1 : elementEgoVehicleRoadElementElement.id = elementEgoVehicleRoadElementElementId; 1171 : 1 : ::ad::rss::world::LaneSegmentType elementEgoVehicleRoadElementElementType(::ad::rss::world::LaneSegmentType::Normal); 1172 : 1 : elementEgoVehicleRoadElementElement.type = elementEgoVehicleRoadElementElementType; 1173 : 1 : ::ad::rss::world::LaneDrivingDirection elementEgoVehicleRoadElementElementDrivingDirection( 1174 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 1175 : 1 : elementEgoVehicleRoadElementElement.drivingDirection = elementEgoVehicleRoadElementElementDrivingDirection; 1176 : 1 : ::ad::physics::MetricRange elementEgoVehicleRoadElementElementLength; 1177 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementLengthMinimum(-1e9); 1178 : 1 : elementEgoVehicleRoadElementElementLengthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 1179 : 1 : elementEgoVehicleRoadElementElementLength.minimum = elementEgoVehicleRoadElementElementLengthMinimum; 1180 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementLengthMaximum(-1e9); 1181 : 1 : elementEgoVehicleRoadElementElementLength.maximum = elementEgoVehicleRoadElementElementLengthMaximum; 1182 : 1 : elementEgoVehicleRoadElementElementLength.maximum = elementEgoVehicleRoadElementElementLength.minimum; 1183 : 1 : elementEgoVehicleRoadElementElementLength.minimum = elementEgoVehicleRoadElementElementLength.maximum; 1184 : 1 : elementEgoVehicleRoadElementElement.length = elementEgoVehicleRoadElementElementLength; 1185 : 1 : ::ad::physics::MetricRange elementEgoVehicleRoadElementElementWidth; 1186 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementWidthMinimum(-1e9); 1187 : 1 : elementEgoVehicleRoadElementElementWidthMinimum = ::ad::physics::Distance(0.); // set to valid value within struct 1188 : 1 : elementEgoVehicleRoadElementElementWidth.minimum = elementEgoVehicleRoadElementElementWidthMinimum; 1189 : 1 : ::ad::physics::Distance elementEgoVehicleRoadElementElementWidthMaximum(-1e9); 1190 : 1 : elementEgoVehicleRoadElementElementWidth.maximum = elementEgoVehicleRoadElementElementWidthMaximum; 1191 : 1 : elementEgoVehicleRoadElementElementWidth.maximum = elementEgoVehicleRoadElementElementWidth.minimum; 1192 : 1 : elementEgoVehicleRoadElementElementWidth.minimum = elementEgoVehicleRoadElementElementWidth.maximum; 1193 : 1 : elementEgoVehicleRoadElementElement.width = elementEgoVehicleRoadElementElementWidth; 1194 [ + - ]: 1 : elementEgoVehicleRoadElement.resize(1, elementEgoVehicleRoadElementElement); 1195 [ + - ]: 1 : elementEgoVehicleRoad.resize(1, elementEgoVehicleRoadElement); 1196 [ + - ]: 1 : element.egoVehicleRoad = elementEgoVehicleRoad; 1197 [ + - ]: 1 : value.push_back(element); 1198 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 1199 : : } 1200 : : 1201 : 2 : TEST(SceneVectorValidInputRangeTests, testValidInputRangeElementInvalid) 1202 : : { 1203 : 1 : ::ad::rss::world::SceneVector value; 1204 : 1 : ::ad::rss::world::Scene element; 1205 : 1 : ::ad::rss::situation::SituationType elementSituationType(static_cast<::ad::rss::situation::SituationType>(-1)); 1206 : 1 : element.situationType = elementSituationType; 1207 [ + - ]: 1 : value.push_back(element); 1208 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 1209 : : }