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 : : #if defined(__clang__) && (__clang_major__ >= 7) 16 : : #pragma GCC diagnostic push 17 : : #pragma GCC diagnostic ignored "-Wself-assign-overloaded" 18 : : #endif 19 : : 20 : : #include <gtest/gtest.h> 21 : : #include <limits> 22 : : #include "ad/rss/world/WorldModel.hpp" 23 : : 24 : : class WorldModelTests : public testing::Test 25 : : { 26 : : protected: 27 : 9 : virtual void SetUp() override 28 : : { 29 : : // valid initialization 30 : 18 : ::ad::rss::world::WorldModel value; 31 : 9 : ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest()); 32 : 9 : valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct 33 : 9 : value.timeIndex = valueTimeIndex; 34 : 9 : ::ad::rss::world::RssDynamics valueDefaultEgoVehicleRssDynamics; 35 : 9 : ::ad::rss::world::LongitudinalRssAccelerationValues valueDefaultEgoVehicleRssDynamicsAlphaLon; 36 : 9 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonAccelMax(-1e2); 37 : : valueDefaultEgoVehicleRssDynamicsAlphaLonAccelMax 38 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 39 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.accelMax = valueDefaultEgoVehicleRssDynamicsAlphaLonAccelMax; 40 : 9 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMax(-1e2); 41 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMax = valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMax; 42 : 9 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMin(-1e2); 43 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMin; 44 : 9 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 45 : : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect 46 : 9 : = valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 47 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMax; 48 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 49 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 50 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMax = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 51 : 9 : valueDefaultEgoVehicleRssDynamics.alphaLon = valueDefaultEgoVehicleRssDynamicsAlphaLon; 52 : 9 : ::ad::rss::world::LateralRssAccelerationValues valueDefaultEgoVehicleRssDynamicsAlphaLat; 53 : 9 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLatAccelMax(-1e2); 54 : : valueDefaultEgoVehicleRssDynamicsAlphaLatAccelMax 55 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 56 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLat.accelMax = valueDefaultEgoVehicleRssDynamicsAlphaLatAccelMax; 57 : 9 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLatBrakeMin(-1e2); 58 : 9 : valueDefaultEgoVehicleRssDynamicsAlphaLat.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLatBrakeMin; 59 : 9 : valueDefaultEgoVehicleRssDynamics.alphaLat = valueDefaultEgoVehicleRssDynamicsAlphaLat; 60 : 9 : ::ad::physics::Distance valueDefaultEgoVehicleRssDynamicsLateralFluctuationMargin(-1e9); 61 : : valueDefaultEgoVehicleRssDynamicsLateralFluctuationMargin 62 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 63 : : valueDefaultEgoVehicleRssDynamics.lateralFluctuationMargin 64 : 9 : = valueDefaultEgoVehicleRssDynamicsLateralFluctuationMargin; 65 : 9 : ::ad::physics::Duration valueDefaultEgoVehicleRssDynamicsResponseTime(0.); 66 : : valueDefaultEgoVehicleRssDynamicsResponseTime 67 : 9 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 68 : 9 : valueDefaultEgoVehicleRssDynamics.responseTime = valueDefaultEgoVehicleRssDynamicsResponseTime; 69 : 9 : ::ad::physics::Speed valueDefaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration(-100.); 70 : 9 : valueDefaultEgoVehicleRssDynamics.maxSpeedOnAcceleration = valueDefaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 71 : 9 : ::ad::rss::world::UnstructuredSettings valueDefaultEgoVehicleRssDynamicsUnstructuredSettings; 72 : 9 : ::ad::physics::Distance valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 73 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 74 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 75 : 9 : ::ad::physics::Angle valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 76 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 77 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 78 : 9 : ::ad::physics::AngularAcceleration valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 79 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 80 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 81 : 9 : ::ad::physics::Distance valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 82 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 83 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 84 : 9 : ::ad::physics::Duration valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 85 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 86 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 87 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 88 : : std::numeric_limits<uint32_t>::min()}; 89 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 90 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 91 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 92 : : std::numeric_limits<uint32_t>::min()}; 93 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 94 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 95 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 96 : : std::numeric_limits<uint32_t>::min()}; 97 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 98 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 99 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 100 : : std::numeric_limits<uint32_t>::min()}; 101 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 102 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 103 : : uint32_t 104 : 9 : valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 105 : : std::numeric_limits<uint32_t>::min()}; 106 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 107 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 108 : : uint32_t 109 : 9 : valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 110 : : std::numeric_limits<uint32_t>::min()}; 111 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 112 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 113 : : uint32_t 114 : 9 : valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 115 : : std::numeric_limits<uint32_t>::min()}; 116 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 117 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 118 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 119 : : std::numeric_limits<uint32_t>::min()}; 120 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 121 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 122 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 123 : : std::numeric_limits<uint32_t>::min()}; 124 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 125 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 126 : 9 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 127 : : std::numeric_limits<uint32_t>::min()}; 128 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 129 : 9 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 130 : 9 : valueDefaultEgoVehicleRssDynamics.unstructuredSettings = valueDefaultEgoVehicleRssDynamicsUnstructuredSettings; 131 : 9 : value.defaultEgoVehicleRssDynamics = valueDefaultEgoVehicleRssDynamics; 132 : 18 : ::ad::rss::world::SceneVector valueScenes; 133 : 18 : ::ad::rss::world::Scene valueScenesElement; 134 : 9 : ::ad::rss::situation::SituationType valueScenesElementSituationType( 135 : : ::ad::rss::situation::SituationType::NotRelevant); 136 : 9 : valueScenesElement.situationType = valueScenesElementSituationType; 137 : 18 : ::ad::rss::world::Object valueScenesElementEgoVehicle; 138 : 9 : ::ad::rss::world::ObjectId valueScenesElementEgoVehicleObjectId( 139 : : std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 140 : 9 : valueScenesElementEgoVehicle.objectId = valueScenesElementEgoVehicleObjectId; 141 : 9 : ::ad::rss::world::ObjectType valueScenesElementEgoVehicleObjectType(::ad::rss::world::ObjectType::Invalid); 142 : 9 : valueScenesElementEgoVehicle.objectType = valueScenesElementEgoVehicleObjectType; 143 : 18 : ::ad::rss::world::OccupiedRegionVector valueScenesElementEgoVehicleOccupiedRegions; 144 : 9 : ::ad::rss::world::OccupiedRegion valueScenesElementEgoVehicleOccupiedRegionsElement; 145 : 9 : ::ad::rss::world::LaneSegmentId valueScenesElementEgoVehicleOccupiedRegionsElementSegmentId( 146 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 147 : : valueScenesElementEgoVehicleOccupiedRegionsElement.segmentId 148 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementSegmentId; 149 : 9 : ::ad::physics::ParametricRange valueScenesElementEgoVehicleOccupiedRegionsElementLonRange; 150 : 9 : ::ad::physics::ParametricValue valueScenesElementEgoVehicleOccupiedRegionsElementLonRangeMinimum(0.); 151 : : valueScenesElementEgoVehicleOccupiedRegionsElementLonRange.minimum 152 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLonRangeMinimum; 153 : 9 : ::ad::physics::ParametricValue valueScenesElementEgoVehicleOccupiedRegionsElementLonRangeMaximum(0.); 154 : : valueScenesElementEgoVehicleOccupiedRegionsElementLonRange.maximum 155 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLonRangeMaximum; 156 : : valueScenesElementEgoVehicleOccupiedRegionsElementLonRange.maximum 157 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLonRange.minimum; 158 : : valueScenesElementEgoVehicleOccupiedRegionsElementLonRange.minimum 159 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLonRange.maximum; 160 : : valueScenesElementEgoVehicleOccupiedRegionsElement.lonRange 161 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLonRange; 162 : 9 : ::ad::physics::ParametricRange valueScenesElementEgoVehicleOccupiedRegionsElementLatRange; 163 : 9 : ::ad::physics::ParametricValue valueScenesElementEgoVehicleOccupiedRegionsElementLatRangeMinimum(0.); 164 : : valueScenesElementEgoVehicleOccupiedRegionsElementLatRange.minimum 165 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLatRangeMinimum; 166 : 9 : ::ad::physics::ParametricValue valueScenesElementEgoVehicleOccupiedRegionsElementLatRangeMaximum(0.); 167 : : valueScenesElementEgoVehicleOccupiedRegionsElementLatRange.maximum 168 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLatRangeMaximum; 169 : : valueScenesElementEgoVehicleOccupiedRegionsElementLatRange.maximum 170 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLatRange.minimum; 171 : : valueScenesElementEgoVehicleOccupiedRegionsElementLatRange.minimum 172 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLatRange.maximum; 173 : : valueScenesElementEgoVehicleOccupiedRegionsElement.latRange 174 : 9 : = valueScenesElementEgoVehicleOccupiedRegionsElementLatRange; 175 [ + - ]: 9 : valueScenesElementEgoVehicleOccupiedRegions.resize(1, valueScenesElementEgoVehicleOccupiedRegionsElement); 176 [ + - ]: 9 : valueScenesElementEgoVehicle.occupiedRegions = valueScenesElementEgoVehicleOccupiedRegions; 177 : 9 : ::ad::rss::world::Velocity valueScenesElementEgoVehicleVelocity; 178 : 9 : ::ad::physics::Speed valueScenesElementEgoVehicleVelocitySpeedLonMin(-100.); 179 : 9 : valueScenesElementEgoVehicleVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 180 : 9 : valueScenesElementEgoVehicleVelocity.speedLonMin = valueScenesElementEgoVehicleVelocitySpeedLonMin; 181 : 9 : ::ad::physics::Speed valueScenesElementEgoVehicleVelocitySpeedLonMax(-100.); 182 : 9 : valueScenesElementEgoVehicleVelocity.speedLonMax = valueScenesElementEgoVehicleVelocitySpeedLonMax; 183 : 9 : ::ad::physics::Speed valueScenesElementEgoVehicleVelocitySpeedLatMin(-100.); 184 : 9 : valueScenesElementEgoVehicleVelocity.speedLatMin = valueScenesElementEgoVehicleVelocitySpeedLatMin; 185 : 9 : ::ad::physics::Speed valueScenesElementEgoVehicleVelocitySpeedLatMax(-100.); 186 : 9 : valueScenesElementEgoVehicleVelocity.speedLatMax = valueScenesElementEgoVehicleVelocitySpeedLatMax; 187 : 9 : valueScenesElementEgoVehicleVelocity.speedLonMax = valueScenesElementEgoVehicleVelocity.speedLonMin; 188 : 9 : valueScenesElementEgoVehicleVelocity.speedLatMax = valueScenesElementEgoVehicleVelocity.speedLatMin; 189 : 9 : valueScenesElementEgoVehicleVelocity.speedLonMin = valueScenesElementEgoVehicleVelocity.speedLonMax; 190 : 9 : valueScenesElementEgoVehicleVelocity.speedLatMin = valueScenesElementEgoVehicleVelocity.speedLatMax; 191 : 9 : valueScenesElementEgoVehicle.velocity = valueScenesElementEgoVehicleVelocity; 192 : 9 : ::ad::rss::world::ObjectState valueScenesElementEgoVehicleState; 193 : 9 : ::ad::physics::Angle valueScenesElementEgoVehicleStateYaw(-6.283185308); 194 : 9 : valueScenesElementEgoVehicleState.yaw = valueScenesElementEgoVehicleStateYaw; 195 : 9 : ::ad::physics::Dimension2D valueScenesElementEgoVehicleStateDimension; 196 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleStateDimensionLength(-1e9); 197 : 9 : valueScenesElementEgoVehicleStateDimension.length = valueScenesElementEgoVehicleStateDimensionLength; 198 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleStateDimensionWidth(-1e9); 199 : 9 : valueScenesElementEgoVehicleStateDimension.width = valueScenesElementEgoVehicleStateDimensionWidth; 200 : 9 : valueScenesElementEgoVehicleState.dimension = valueScenesElementEgoVehicleStateDimension; 201 : 9 : ::ad::physics::AngularVelocity valueScenesElementEgoVehicleStateYawRate(-100.); 202 : 9 : valueScenesElementEgoVehicleState.yawRate = valueScenesElementEgoVehicleStateYawRate; 203 : 9 : ::ad::physics::Distance2D valueScenesElementEgoVehicleStateCenterPoint; 204 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleStateCenterPointX(-1e9); 205 : 9 : valueScenesElementEgoVehicleStateCenterPoint.x = valueScenesElementEgoVehicleStateCenterPointX; 206 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleStateCenterPointY(-1e9); 207 : 9 : valueScenesElementEgoVehicleStateCenterPoint.y = valueScenesElementEgoVehicleStateCenterPointY; 208 : 9 : valueScenesElementEgoVehicleState.centerPoint = valueScenesElementEgoVehicleStateCenterPoint; 209 : 9 : ::ad::physics::Speed valueScenesElementEgoVehicleStateSpeed(-100.); 210 : 9 : valueScenesElementEgoVehicleState.speed = valueScenesElementEgoVehicleStateSpeed; 211 : 9 : ::ad::physics::Angle valueScenesElementEgoVehicleStateSteeringAngle(-6.283185308); 212 : 9 : valueScenesElementEgoVehicleState.steeringAngle = valueScenesElementEgoVehicleStateSteeringAngle; 213 : 9 : valueScenesElementEgoVehicle.state = valueScenesElementEgoVehicleState; 214 [ + - ]: 9 : valueScenesElement.egoVehicle = valueScenesElementEgoVehicle; 215 : 9 : ::ad::rss::world::RssDynamics valueScenesElementEgoVehicleRssDynamics; 216 : 9 : ::ad::rss::world::LongitudinalRssAccelerationValues valueScenesElementEgoVehicleRssDynamicsAlphaLon; 217 : 9 : ::ad::physics::Acceleration valueScenesElementEgoVehicleRssDynamicsAlphaLonAccelMax(-1e2); 218 : : valueScenesElementEgoVehicleRssDynamicsAlphaLonAccelMax 219 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 220 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLon.accelMax = valueScenesElementEgoVehicleRssDynamicsAlphaLonAccelMax; 221 : 9 : ::ad::physics::Acceleration valueScenesElementEgoVehicleRssDynamicsAlphaLonBrakeMax(-1e2); 222 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMax = valueScenesElementEgoVehicleRssDynamicsAlphaLonBrakeMax; 223 : 9 : ::ad::physics::Acceleration valueScenesElementEgoVehicleRssDynamicsAlphaLonBrakeMin(-1e2); 224 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin = valueScenesElementEgoVehicleRssDynamicsAlphaLonBrakeMin; 225 : 9 : ::ad::physics::Acceleration valueScenesElementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 226 : : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect 227 : 9 : = valueScenesElementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 228 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin = valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMax; 229 : : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect 230 : 9 : = valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin; 231 : : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin 232 : 9 : = valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 233 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMax = valueScenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin; 234 : 9 : valueScenesElementEgoVehicleRssDynamics.alphaLon = valueScenesElementEgoVehicleRssDynamicsAlphaLon; 235 : 9 : ::ad::rss::world::LateralRssAccelerationValues valueScenesElementEgoVehicleRssDynamicsAlphaLat; 236 : 9 : ::ad::physics::Acceleration valueScenesElementEgoVehicleRssDynamicsAlphaLatAccelMax(-1e2); 237 : : valueScenesElementEgoVehicleRssDynamicsAlphaLatAccelMax 238 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 239 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLat.accelMax = valueScenesElementEgoVehicleRssDynamicsAlphaLatAccelMax; 240 : 9 : ::ad::physics::Acceleration valueScenesElementEgoVehicleRssDynamicsAlphaLatBrakeMin(-1e2); 241 : 9 : valueScenesElementEgoVehicleRssDynamicsAlphaLat.brakeMin = valueScenesElementEgoVehicleRssDynamicsAlphaLatBrakeMin; 242 : 9 : valueScenesElementEgoVehicleRssDynamics.alphaLat = valueScenesElementEgoVehicleRssDynamicsAlphaLat; 243 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRssDynamicsLateralFluctuationMargin(-1e9); 244 : : valueScenesElementEgoVehicleRssDynamicsLateralFluctuationMargin 245 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 246 : : valueScenesElementEgoVehicleRssDynamics.lateralFluctuationMargin 247 : 9 : = valueScenesElementEgoVehicleRssDynamicsLateralFluctuationMargin; 248 : 9 : ::ad::physics::Duration valueScenesElementEgoVehicleRssDynamicsResponseTime(0.); 249 : : valueScenesElementEgoVehicleRssDynamicsResponseTime 250 : 9 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 251 : 9 : valueScenesElementEgoVehicleRssDynamics.responseTime = valueScenesElementEgoVehicleRssDynamicsResponseTime; 252 : 9 : ::ad::physics::Speed valueScenesElementEgoVehicleRssDynamicsMaxSpeedOnAcceleration(-100.); 253 : : valueScenesElementEgoVehicleRssDynamics.maxSpeedOnAcceleration 254 : 9 : = valueScenesElementEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 255 : 9 : ::ad::rss::world::UnstructuredSettings valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings; 256 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 257 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 258 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 259 : 9 : ::ad::physics::Angle valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 260 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 261 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 262 : : ::ad::physics::AngularAcceleration valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange( 263 : 9 : -1e2); 264 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 265 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 266 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 267 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 268 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 269 : : ::ad::physics::Duration valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep( 270 : 9 : 0.); 271 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 272 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 273 : 9 : uint32_t valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 274 : : std::numeric_limits<uint32_t>::min()}; 275 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 276 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 277 : 9 : uint32_t valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 278 : : std::numeric_limits<uint32_t>::min()}; 279 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 280 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 281 : 9 : uint32_t valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 282 : : std::numeric_limits<uint32_t>::min()}; 283 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 284 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 285 : : uint32_t 286 : 9 : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 287 : : std::numeric_limits<uint32_t>::min()}; 288 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 289 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 290 : : uint32_t 291 : 9 : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 292 : : std::numeric_limits<uint32_t>::min()}; 293 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings 294 : : .vehicleContinueForwardIntermediateYawRateChangeRatioSteps 295 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 296 : : uint32_t 297 : 9 : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 298 : : std::numeric_limits<uint32_t>::min()}; 299 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings 300 : : .pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 301 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 302 : : uint32_t 303 : 9 : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 304 : : std::numeric_limits<uint32_t>::min()}; 305 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 306 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 307 : 9 : uint32_t valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 308 : : std::numeric_limits<uint32_t>::min()}; 309 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 310 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 311 : : uint32_t 312 : 9 : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 313 : : std::numeric_limits<uint32_t>::min()}; 314 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 315 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 316 : : uint32_t 317 : 9 : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 318 : : std::numeric_limits<uint32_t>::min()}; 319 : : valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 320 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 321 : : valueScenesElementEgoVehicleRssDynamics.unstructuredSettings 322 : 9 : = valueScenesElementEgoVehicleRssDynamicsUnstructuredSettings; 323 : 9 : valueScenesElement.egoVehicleRssDynamics = valueScenesElementEgoVehicleRssDynamics; 324 : 18 : ::ad::rss::world::Object valueScenesElementObject; 325 : 9 : ::ad::rss::world::ObjectId valueScenesElementObjectObjectId( 326 : : std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 327 : 9 : valueScenesElementObject.objectId = valueScenesElementObjectObjectId; 328 : 9 : ::ad::rss::world::ObjectType valueScenesElementObjectObjectType(::ad::rss::world::ObjectType::Invalid); 329 : 9 : valueScenesElementObject.objectType = valueScenesElementObjectObjectType; 330 : 18 : ::ad::rss::world::OccupiedRegionVector valueScenesElementObjectOccupiedRegions; 331 : 9 : ::ad::rss::world::OccupiedRegion valueScenesElementObjectOccupiedRegionsElement; 332 : 9 : ::ad::rss::world::LaneSegmentId valueScenesElementObjectOccupiedRegionsElementSegmentId( 333 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 334 : 9 : valueScenesElementObjectOccupiedRegionsElement.segmentId = valueScenesElementObjectOccupiedRegionsElementSegmentId; 335 : 9 : ::ad::physics::ParametricRange valueScenesElementObjectOccupiedRegionsElementLonRange; 336 : 9 : ::ad::physics::ParametricValue valueScenesElementObjectOccupiedRegionsElementLonRangeMinimum(0.); 337 : : valueScenesElementObjectOccupiedRegionsElementLonRange.minimum 338 : 9 : = valueScenesElementObjectOccupiedRegionsElementLonRangeMinimum; 339 : 9 : ::ad::physics::ParametricValue valueScenesElementObjectOccupiedRegionsElementLonRangeMaximum(0.); 340 : : valueScenesElementObjectOccupiedRegionsElementLonRange.maximum 341 : 9 : = valueScenesElementObjectOccupiedRegionsElementLonRangeMaximum; 342 : : valueScenesElementObjectOccupiedRegionsElementLonRange.maximum 343 : 9 : = valueScenesElementObjectOccupiedRegionsElementLonRange.minimum; 344 : : valueScenesElementObjectOccupiedRegionsElementLonRange.minimum 345 : 9 : = valueScenesElementObjectOccupiedRegionsElementLonRange.maximum; 346 : 9 : valueScenesElementObjectOccupiedRegionsElement.lonRange = valueScenesElementObjectOccupiedRegionsElementLonRange; 347 : 9 : ::ad::physics::ParametricRange valueScenesElementObjectOccupiedRegionsElementLatRange; 348 : 9 : ::ad::physics::ParametricValue valueScenesElementObjectOccupiedRegionsElementLatRangeMinimum(0.); 349 : : valueScenesElementObjectOccupiedRegionsElementLatRange.minimum 350 : 9 : = valueScenesElementObjectOccupiedRegionsElementLatRangeMinimum; 351 : 9 : ::ad::physics::ParametricValue valueScenesElementObjectOccupiedRegionsElementLatRangeMaximum(0.); 352 : : valueScenesElementObjectOccupiedRegionsElementLatRange.maximum 353 : 9 : = valueScenesElementObjectOccupiedRegionsElementLatRangeMaximum; 354 : : valueScenesElementObjectOccupiedRegionsElementLatRange.maximum 355 : 9 : = valueScenesElementObjectOccupiedRegionsElementLatRange.minimum; 356 : : valueScenesElementObjectOccupiedRegionsElementLatRange.minimum 357 : 9 : = valueScenesElementObjectOccupiedRegionsElementLatRange.maximum; 358 : 9 : valueScenesElementObjectOccupiedRegionsElement.latRange = valueScenesElementObjectOccupiedRegionsElementLatRange; 359 [ + - ]: 9 : valueScenesElementObjectOccupiedRegions.resize(1, valueScenesElementObjectOccupiedRegionsElement); 360 [ + - ]: 9 : valueScenesElementObject.occupiedRegions = valueScenesElementObjectOccupiedRegions; 361 : 9 : ::ad::rss::world::Velocity valueScenesElementObjectVelocity; 362 : 9 : ::ad::physics::Speed valueScenesElementObjectVelocitySpeedLonMin(-100.); 363 : 9 : valueScenesElementObjectVelocitySpeedLonMin = ::ad::physics::Speed(0.); // set to valid value within struct 364 : 9 : valueScenesElementObjectVelocity.speedLonMin = valueScenesElementObjectVelocitySpeedLonMin; 365 : 9 : ::ad::physics::Speed valueScenesElementObjectVelocitySpeedLonMax(-100.); 366 : 9 : valueScenesElementObjectVelocity.speedLonMax = valueScenesElementObjectVelocitySpeedLonMax; 367 : 9 : ::ad::physics::Speed valueScenesElementObjectVelocitySpeedLatMin(-100.); 368 : 9 : valueScenesElementObjectVelocity.speedLatMin = valueScenesElementObjectVelocitySpeedLatMin; 369 : 9 : ::ad::physics::Speed valueScenesElementObjectVelocitySpeedLatMax(-100.); 370 : 9 : valueScenesElementObjectVelocity.speedLatMax = valueScenesElementObjectVelocitySpeedLatMax; 371 : 9 : valueScenesElementObjectVelocity.speedLonMax = valueScenesElementObjectVelocity.speedLonMin; 372 : 9 : valueScenesElementObjectVelocity.speedLatMax = valueScenesElementObjectVelocity.speedLatMin; 373 : 9 : valueScenesElementObjectVelocity.speedLonMin = valueScenesElementObjectVelocity.speedLonMax; 374 : 9 : valueScenesElementObjectVelocity.speedLatMin = valueScenesElementObjectVelocity.speedLatMax; 375 : 9 : valueScenesElementObject.velocity = valueScenesElementObjectVelocity; 376 : 9 : ::ad::rss::world::ObjectState valueScenesElementObjectState; 377 : 9 : ::ad::physics::Angle valueScenesElementObjectStateYaw(-6.283185308); 378 : 9 : valueScenesElementObjectState.yaw = valueScenesElementObjectStateYaw; 379 : 9 : ::ad::physics::Dimension2D valueScenesElementObjectStateDimension; 380 : 9 : ::ad::physics::Distance valueScenesElementObjectStateDimensionLength(-1e9); 381 : 9 : valueScenesElementObjectStateDimension.length = valueScenesElementObjectStateDimensionLength; 382 : 9 : ::ad::physics::Distance valueScenesElementObjectStateDimensionWidth(-1e9); 383 : 9 : valueScenesElementObjectStateDimension.width = valueScenesElementObjectStateDimensionWidth; 384 : 9 : valueScenesElementObjectState.dimension = valueScenesElementObjectStateDimension; 385 : 9 : ::ad::physics::AngularVelocity valueScenesElementObjectStateYawRate(-100.); 386 : 9 : valueScenesElementObjectState.yawRate = valueScenesElementObjectStateYawRate; 387 : 9 : ::ad::physics::Distance2D valueScenesElementObjectStateCenterPoint; 388 : 9 : ::ad::physics::Distance valueScenesElementObjectStateCenterPointX(-1e9); 389 : 9 : valueScenesElementObjectStateCenterPoint.x = valueScenesElementObjectStateCenterPointX; 390 : 9 : ::ad::physics::Distance valueScenesElementObjectStateCenterPointY(-1e9); 391 : 9 : valueScenesElementObjectStateCenterPoint.y = valueScenesElementObjectStateCenterPointY; 392 : 9 : valueScenesElementObjectState.centerPoint = valueScenesElementObjectStateCenterPoint; 393 : 9 : ::ad::physics::Speed valueScenesElementObjectStateSpeed(-100.); 394 : 9 : valueScenesElementObjectState.speed = valueScenesElementObjectStateSpeed; 395 : 9 : ::ad::physics::Angle valueScenesElementObjectStateSteeringAngle(-6.283185308); 396 : 9 : valueScenesElementObjectState.steeringAngle = valueScenesElementObjectStateSteeringAngle; 397 : 9 : valueScenesElementObject.state = valueScenesElementObjectState; 398 [ + - ]: 9 : valueScenesElement.object = valueScenesElementObject; 399 : 9 : ::ad::rss::world::RssDynamics valueScenesElementObjectRssDynamics; 400 : 9 : ::ad::rss::world::LongitudinalRssAccelerationValues valueScenesElementObjectRssDynamicsAlphaLon; 401 : 9 : ::ad::physics::Acceleration valueScenesElementObjectRssDynamicsAlphaLonAccelMax(-1e2); 402 : : valueScenesElementObjectRssDynamicsAlphaLonAccelMax 403 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 404 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.accelMax = valueScenesElementObjectRssDynamicsAlphaLonAccelMax; 405 : 9 : ::ad::physics::Acceleration valueScenesElementObjectRssDynamicsAlphaLonBrakeMax(-1e2); 406 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.brakeMax = valueScenesElementObjectRssDynamicsAlphaLonBrakeMax; 407 : 9 : ::ad::physics::Acceleration valueScenesElementObjectRssDynamicsAlphaLonBrakeMin(-1e2); 408 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.brakeMin = valueScenesElementObjectRssDynamicsAlphaLonBrakeMin; 409 : 9 : ::ad::physics::Acceleration valueScenesElementObjectRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 410 : : valueScenesElementObjectRssDynamicsAlphaLon.brakeMinCorrect 411 : 9 : = valueScenesElementObjectRssDynamicsAlphaLonBrakeMinCorrect; 412 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.brakeMin = valueScenesElementObjectRssDynamicsAlphaLon.brakeMax; 413 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.brakeMinCorrect = valueScenesElementObjectRssDynamicsAlphaLon.brakeMin; 414 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.brakeMin = valueScenesElementObjectRssDynamicsAlphaLon.brakeMinCorrect; 415 : 9 : valueScenesElementObjectRssDynamicsAlphaLon.brakeMax = valueScenesElementObjectRssDynamicsAlphaLon.brakeMin; 416 : 9 : valueScenesElementObjectRssDynamics.alphaLon = valueScenesElementObjectRssDynamicsAlphaLon; 417 : 9 : ::ad::rss::world::LateralRssAccelerationValues valueScenesElementObjectRssDynamicsAlphaLat; 418 : 9 : ::ad::physics::Acceleration valueScenesElementObjectRssDynamicsAlphaLatAccelMax(-1e2); 419 : : valueScenesElementObjectRssDynamicsAlphaLatAccelMax 420 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 421 : 9 : valueScenesElementObjectRssDynamicsAlphaLat.accelMax = valueScenesElementObjectRssDynamicsAlphaLatAccelMax; 422 : 9 : ::ad::physics::Acceleration valueScenesElementObjectRssDynamicsAlphaLatBrakeMin(-1e2); 423 : 9 : valueScenesElementObjectRssDynamicsAlphaLat.brakeMin = valueScenesElementObjectRssDynamicsAlphaLatBrakeMin; 424 : 9 : valueScenesElementObjectRssDynamics.alphaLat = valueScenesElementObjectRssDynamicsAlphaLat; 425 : 9 : ::ad::physics::Distance valueScenesElementObjectRssDynamicsLateralFluctuationMargin(-1e9); 426 : : valueScenesElementObjectRssDynamicsLateralFluctuationMargin 427 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 428 : : valueScenesElementObjectRssDynamics.lateralFluctuationMargin 429 : 9 : = valueScenesElementObjectRssDynamicsLateralFluctuationMargin; 430 : 9 : ::ad::physics::Duration valueScenesElementObjectRssDynamicsResponseTime(0.); 431 : : valueScenesElementObjectRssDynamicsResponseTime 432 : 9 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 433 : 9 : valueScenesElementObjectRssDynamics.responseTime = valueScenesElementObjectRssDynamicsResponseTime; 434 : 9 : ::ad::physics::Speed valueScenesElementObjectRssDynamicsMaxSpeedOnAcceleration(-100.); 435 : : valueScenesElementObjectRssDynamics.maxSpeedOnAcceleration 436 : 9 : = valueScenesElementObjectRssDynamicsMaxSpeedOnAcceleration; 437 : 9 : ::ad::rss::world::UnstructuredSettings valueScenesElementObjectRssDynamicsUnstructuredSettings; 438 : 9 : ::ad::physics::Distance valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 439 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.pedestrianTurningRadius 440 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 441 : 9 : ::ad::physics::Angle valueScenesElementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 442 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.driveAwayMaxAngle 443 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 444 : : ::ad::physics::AngularAcceleration valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange( 445 : 9 : -1e2); 446 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleYawRateChange 447 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange; 448 : 9 : ::ad::physics::Distance valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 449 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleMinRadius 450 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius; 451 : 9 : ::ad::physics::Duration valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 452 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 453 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 454 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 455 : : std::numeric_limits<uint32_t>::min()}; 456 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 457 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 458 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 459 : : std::numeric_limits<uint32_t>::min()}; 460 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 461 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 462 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 463 : : std::numeric_limits<uint32_t>::min()}; 464 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 465 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 466 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 467 : : std::numeric_limits<uint32_t>::min()}; 468 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 469 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 470 : : uint32_t 471 : 9 : valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 472 : : std::numeric_limits<uint32_t>::min()}; 473 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 474 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 475 : : uint32_t 476 : 9 : valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 477 : : std::numeric_limits<uint32_t>::min()}; 478 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 479 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 480 : : uint32_t 481 : 9 : valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 482 : : std::numeric_limits<uint32_t>::min()}; 483 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 484 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 485 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 486 : : std::numeric_limits<uint32_t>::min()}; 487 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 488 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 489 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 490 : : std::numeric_limits<uint32_t>::min()}; 491 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 492 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 493 : 9 : uint32_t valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 494 : : std::numeric_limits<uint32_t>::min()}; 495 : : valueScenesElementObjectRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 496 : 9 : = valueScenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 497 : 9 : valueScenesElementObjectRssDynamics.unstructuredSettings = valueScenesElementObjectRssDynamicsUnstructuredSettings; 498 : 9 : valueScenesElement.objectRssDynamics = valueScenesElementObjectRssDynamics; 499 : 18 : ::ad::rss::world::RoadArea valueScenesElementIntersectingRoad; 500 : 18 : ::ad::rss::world::RoadSegment valueScenesElementIntersectingRoadElement; 501 : 9 : ::ad::rss::world::LaneSegment valueScenesElementIntersectingRoadElementElement; 502 : 9 : ::ad::rss::world::LaneSegmentId valueScenesElementIntersectingRoadElementElementId( 503 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 504 : 9 : valueScenesElementIntersectingRoadElementElement.id = valueScenesElementIntersectingRoadElementElementId; 505 : 9 : ::ad::rss::world::LaneSegmentType valueScenesElementIntersectingRoadElementElementType( 506 : : ::ad::rss::world::LaneSegmentType::Normal); 507 : 9 : valueScenesElementIntersectingRoadElementElement.type = valueScenesElementIntersectingRoadElementElementType; 508 : 9 : ::ad::rss::world::LaneDrivingDirection valueScenesElementIntersectingRoadElementElementDrivingDirection( 509 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 510 : : valueScenesElementIntersectingRoadElementElement.drivingDirection 511 : 9 : = valueScenesElementIntersectingRoadElementElementDrivingDirection; 512 : 9 : ::ad::physics::MetricRange valueScenesElementIntersectingRoadElementElementLength; 513 : 9 : ::ad::physics::Distance valueScenesElementIntersectingRoadElementElementLengthMinimum(-1e9); 514 : : valueScenesElementIntersectingRoadElementElementLengthMinimum 515 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 516 : : valueScenesElementIntersectingRoadElementElementLength.minimum 517 : 9 : = valueScenesElementIntersectingRoadElementElementLengthMinimum; 518 : 9 : ::ad::physics::Distance valueScenesElementIntersectingRoadElementElementLengthMaximum(-1e9); 519 : : valueScenesElementIntersectingRoadElementElementLength.maximum 520 : 9 : = valueScenesElementIntersectingRoadElementElementLengthMaximum; 521 : : valueScenesElementIntersectingRoadElementElementLength.maximum 522 : 9 : = valueScenesElementIntersectingRoadElementElementLength.minimum; 523 : : valueScenesElementIntersectingRoadElementElementLength.minimum 524 : 9 : = valueScenesElementIntersectingRoadElementElementLength.maximum; 525 : 9 : valueScenesElementIntersectingRoadElementElement.length = valueScenesElementIntersectingRoadElementElementLength; 526 : 9 : ::ad::physics::MetricRange valueScenesElementIntersectingRoadElementElementWidth; 527 : 9 : ::ad::physics::Distance valueScenesElementIntersectingRoadElementElementWidthMinimum(-1e9); 528 : : valueScenesElementIntersectingRoadElementElementWidthMinimum 529 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 530 : : valueScenesElementIntersectingRoadElementElementWidth.minimum 531 : 9 : = valueScenesElementIntersectingRoadElementElementWidthMinimum; 532 : 9 : ::ad::physics::Distance valueScenesElementIntersectingRoadElementElementWidthMaximum(-1e9); 533 : : valueScenesElementIntersectingRoadElementElementWidth.maximum 534 : 9 : = valueScenesElementIntersectingRoadElementElementWidthMaximum; 535 : : valueScenesElementIntersectingRoadElementElementWidth.maximum 536 : 9 : = valueScenesElementIntersectingRoadElementElementWidth.minimum; 537 : : valueScenesElementIntersectingRoadElementElementWidth.minimum 538 : 9 : = valueScenesElementIntersectingRoadElementElementWidth.maximum; 539 : 9 : valueScenesElementIntersectingRoadElementElement.width = valueScenesElementIntersectingRoadElementElementWidth; 540 [ + - ]: 9 : valueScenesElementIntersectingRoadElement.resize(1, valueScenesElementIntersectingRoadElementElement); 541 [ + - ]: 9 : valueScenesElementIntersectingRoad.resize(1, valueScenesElementIntersectingRoadElement); 542 [ + - ]: 9 : valueScenesElement.intersectingRoad = valueScenesElementIntersectingRoad; 543 : 18 : ::ad::rss::world::RoadArea valueScenesElementEgoVehicleRoad; 544 : 18 : ::ad::rss::world::RoadSegment valueScenesElementEgoVehicleRoadElement; 545 : 9 : ::ad::rss::world::LaneSegment valueScenesElementEgoVehicleRoadElementElement; 546 : 9 : ::ad::rss::world::LaneSegmentId valueScenesElementEgoVehicleRoadElementElementId( 547 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::lowest()); 548 : 9 : valueScenesElementEgoVehicleRoadElementElement.id = valueScenesElementEgoVehicleRoadElementElementId; 549 : 9 : ::ad::rss::world::LaneSegmentType valueScenesElementEgoVehicleRoadElementElementType( 550 : : ::ad::rss::world::LaneSegmentType::Normal); 551 : 9 : valueScenesElementEgoVehicleRoadElementElement.type = valueScenesElementEgoVehicleRoadElementElementType; 552 : 9 : ::ad::rss::world::LaneDrivingDirection valueScenesElementEgoVehicleRoadElementElementDrivingDirection( 553 : : ::ad::rss::world::LaneDrivingDirection::Bidirectional); 554 : : valueScenesElementEgoVehicleRoadElementElement.drivingDirection 555 : 9 : = valueScenesElementEgoVehicleRoadElementElementDrivingDirection; 556 : 9 : ::ad::physics::MetricRange valueScenesElementEgoVehicleRoadElementElementLength; 557 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRoadElementElementLengthMinimum(-1e9); 558 : : valueScenesElementEgoVehicleRoadElementElementLengthMinimum 559 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 560 : : valueScenesElementEgoVehicleRoadElementElementLength.minimum 561 : 9 : = valueScenesElementEgoVehicleRoadElementElementLengthMinimum; 562 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRoadElementElementLengthMaximum(-1e9); 563 : : valueScenesElementEgoVehicleRoadElementElementLength.maximum 564 : 9 : = valueScenesElementEgoVehicleRoadElementElementLengthMaximum; 565 : : valueScenesElementEgoVehicleRoadElementElementLength.maximum 566 : 9 : = valueScenesElementEgoVehicleRoadElementElementLength.minimum; 567 : : valueScenesElementEgoVehicleRoadElementElementLength.minimum 568 : 9 : = valueScenesElementEgoVehicleRoadElementElementLength.maximum; 569 : 9 : valueScenesElementEgoVehicleRoadElementElement.length = valueScenesElementEgoVehicleRoadElementElementLength; 570 : 9 : ::ad::physics::MetricRange valueScenesElementEgoVehicleRoadElementElementWidth; 571 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRoadElementElementWidthMinimum(-1e9); 572 : : valueScenesElementEgoVehicleRoadElementElementWidthMinimum 573 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 574 : : valueScenesElementEgoVehicleRoadElementElementWidth.minimum 575 : 9 : = valueScenesElementEgoVehicleRoadElementElementWidthMinimum; 576 : 9 : ::ad::physics::Distance valueScenesElementEgoVehicleRoadElementElementWidthMaximum(-1e9); 577 : : valueScenesElementEgoVehicleRoadElementElementWidth.maximum 578 : 9 : = valueScenesElementEgoVehicleRoadElementElementWidthMaximum; 579 : : valueScenesElementEgoVehicleRoadElementElementWidth.maximum 580 : 9 : = valueScenesElementEgoVehicleRoadElementElementWidth.minimum; 581 : : valueScenesElementEgoVehicleRoadElementElementWidth.minimum 582 : 9 : = valueScenesElementEgoVehicleRoadElementElementWidth.maximum; 583 : 9 : valueScenesElementEgoVehicleRoadElementElement.width = valueScenesElementEgoVehicleRoadElementElementWidth; 584 [ + - ]: 9 : valueScenesElementEgoVehicleRoadElement.resize(1, valueScenesElementEgoVehicleRoadElementElement); 585 [ + - ]: 9 : valueScenesElementEgoVehicleRoad.resize(1, valueScenesElementEgoVehicleRoadElement); 586 [ + - ]: 9 : valueScenesElement.egoVehicleRoad = valueScenesElementEgoVehicleRoad; 587 [ + - ]: 9 : valueScenes.resize(1, valueScenesElement); 588 [ + - ]: 9 : value.scenes = valueScenes; 589 [ + - ]: 9 : mValue = value; 590 : 9 : } 591 : : 592 : : ::ad::rss::world::WorldModel mValue; 593 : : }; 594 : : 595 : 2 : TEST_F(WorldModelTests, copyConstruction) 596 : : { 597 [ + - ]: 2 : ::ad::rss::world::WorldModel value(mValue); 598 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 599 : 1 : } 600 : : 601 : 2 : TEST_F(WorldModelTests, moveConstruction) 602 : : { 603 [ + - ]: 2 : ::ad::rss::world::WorldModel tmpValue(mValue); 604 : 2 : ::ad::rss::world::WorldModel value(std::move(tmpValue)); 605 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 606 : 1 : } 607 : : 608 : 2 : TEST_F(WorldModelTests, copyAssignment) 609 : : { 610 : 2 : ::ad::rss::world::WorldModel value; 611 [ + - ]: 1 : value = mValue; 612 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 613 : 1 : } 614 : : 615 : 2 : TEST_F(WorldModelTests, moveAssignment) 616 : : { 617 [ + - ]: 2 : ::ad::rss::world::WorldModel tmpValue(mValue); 618 : 2 : ::ad::rss::world::WorldModel value; 619 : 1 : value = std::move(tmpValue); 620 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 621 : 1 : } 622 : : 623 : 2 : TEST_F(WorldModelTests, comparisonOperatorEqual) 624 : : { 625 [ + - ]: 2 : ::ad::rss::world::WorldModel valueA = mValue; 626 [ + - ]: 2 : ::ad::rss::world::WorldModel valueB = mValue; 627 : : 628 [ + - - + : 1 : EXPECT_TRUE(valueA == valueB); - - - - - - - - ] 629 [ + - - + : 1 : EXPECT_FALSE(valueA != valueB); - - - - - - - - ] 630 : 1 : } 631 : : 632 : 2 : TEST_F(WorldModelTests, stringConversionTest) 633 : : { 634 [ + - ]: 1 : std::stringstream stream; 635 [ + - ]: 1 : stream << mValue; 636 [ + - ]: 1 : std::string ostreamStr = stream.str(); 637 [ + - ]: 1 : std::string toStr = std::to_string(mValue); 638 [ + - - + : 1 : ASSERT_EQ(ostreamStr, toStr); - - - - - - ] 639 : : } 640 : : 641 : 2 : TEST_F(WorldModelTests, comparisonOperatorTimeIndexDiffers) 642 : : { 643 [ + - ]: 2 : ::ad::rss::world::WorldModel valueA = mValue; 644 : 1 : ::ad::rss::world::TimeIndex timeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::max()); 645 : 1 : valueA.timeIndex = timeIndex; 646 [ + - ]: 2 : ::ad::rss::world::WorldModel valueB = mValue; 647 : : 648 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 649 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 650 : 1 : } 651 : : 652 : 2 : TEST_F(WorldModelTests, comparisonOperatorDefaultEgoVehicleRssDynamicsDiffers) 653 : : { 654 [ + - ]: 2 : ::ad::rss::world::WorldModel valueA = mValue; 655 : 1 : ::ad::rss::world::RssDynamics defaultEgoVehicleRssDynamics; 656 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues defaultEgoVehicleRssDynamicsAlphaLon; 657 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonAccelMax(1e2); 658 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.accelMax = defaultEgoVehicleRssDynamicsAlphaLonAccelMax; 659 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMax(1e2); 660 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMax = defaultEgoVehicleRssDynamicsAlphaLonBrakeMax; 661 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMin(1e2); 662 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLonBrakeMin; 663 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(1e2); 664 : : defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect 665 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 666 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 667 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = defaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 668 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLon.brakeMax; 669 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMax = defaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 670 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 671 : 1 : defaultEgoVehicleRssDynamics.alphaLon = defaultEgoVehicleRssDynamicsAlphaLon; 672 : 1 : ::ad::rss::world::LateralRssAccelerationValues defaultEgoVehicleRssDynamicsAlphaLat; 673 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLatAccelMax(1e2); 674 : 1 : defaultEgoVehicleRssDynamicsAlphaLat.accelMax = defaultEgoVehicleRssDynamicsAlphaLatAccelMax; 675 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLatBrakeMin(1e2); 676 : : defaultEgoVehicleRssDynamicsAlphaLatBrakeMin 677 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 678 : 1 : defaultEgoVehicleRssDynamicsAlphaLat.brakeMin = defaultEgoVehicleRssDynamicsAlphaLatBrakeMin; 679 : 1 : defaultEgoVehicleRssDynamics.alphaLat = defaultEgoVehicleRssDynamicsAlphaLat; 680 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsLateralFluctuationMargin(1e9); 681 : 1 : defaultEgoVehicleRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(1.); // set to valid value within 682 : : // struct 683 : 1 : defaultEgoVehicleRssDynamics.lateralFluctuationMargin = defaultEgoVehicleRssDynamicsLateralFluctuationMargin; 684 : 1 : ::ad::physics::Duration defaultEgoVehicleRssDynamicsResponseTime(1e6); 685 : 1 : defaultEgoVehicleRssDynamicsResponseTime = ::ad::physics::Duration(10.); // set to valid value within struct 686 : 1 : defaultEgoVehicleRssDynamics.responseTime = defaultEgoVehicleRssDynamicsResponseTime; 687 : 1 : ::ad::physics::Speed defaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration(100.); 688 : 1 : defaultEgoVehicleRssDynamics.maxSpeedOnAcceleration = defaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 689 : 1 : ::ad::rss::world::UnstructuredSettings defaultEgoVehicleRssDynamicsUnstructuredSettings; 690 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 691 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 692 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 693 : 1 : ::ad::physics::Angle defaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 694 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 695 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 696 : 1 : ::ad::physics::AngularAcceleration defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(1e2); 697 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 698 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 699 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 700 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 701 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 702 : 1 : ::ad::physics::Duration defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(1e6); 703 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 704 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 705 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 706 : : std::numeric_limits<uint32_t>::max()}; 707 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 708 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 709 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 710 : : std::numeric_limits<uint32_t>::max()}; 711 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 712 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 713 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 714 : : std::numeric_limits<uint32_t>::max()}; 715 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 716 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 717 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 718 : : std::numeric_limits<uint32_t>::max()}; 719 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 720 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 721 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 722 : : std::numeric_limits<uint32_t>::max()}; 723 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 724 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 725 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 726 : : std::numeric_limits<uint32_t>::max()}; 727 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 728 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 729 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 730 : : std::numeric_limits<uint32_t>::max()}; 731 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 732 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 733 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 734 : : std::numeric_limits<uint32_t>::max()}; 735 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 736 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 737 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 738 : : std::numeric_limits<uint32_t>::max()}; 739 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 740 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 741 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 742 : : std::numeric_limits<uint32_t>::max()}; 743 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 744 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 745 : 1 : defaultEgoVehicleRssDynamics.unstructuredSettings = defaultEgoVehicleRssDynamicsUnstructuredSettings; 746 : 1 : valueA.defaultEgoVehicleRssDynamics = defaultEgoVehicleRssDynamics; 747 [ + - ]: 2 : ::ad::rss::world::WorldModel valueB = mValue; 748 : : 749 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 750 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 751 : 1 : } 752 : : 753 : 2 : TEST_F(WorldModelTests, comparisonOperatorScenesDiffers) 754 : : { 755 [ + - ]: 2 : ::ad::rss::world::WorldModel valueA = mValue; 756 : 2 : ::ad::rss::world::SceneVector scenes; 757 : 2 : ::ad::rss::world::Scene scenesElement; 758 : 1 : ::ad::rss::situation::SituationType scenesElementSituationType(::ad::rss::situation::SituationType::Unstructured); 759 : 1 : scenesElement.situationType = scenesElementSituationType; 760 : 2 : ::ad::rss::world::Object scenesElementEgoVehicle; 761 : 1 : ::ad::rss::world::ObjectId scenesElementEgoVehicleObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::max()); 762 : 1 : scenesElementEgoVehicle.objectId = scenesElementEgoVehicleObjectId; 763 : 1 : ::ad::rss::world::ObjectType scenesElementEgoVehicleObjectType(::ad::rss::world::ObjectType::ArtificialObject); 764 : 1 : scenesElementEgoVehicle.objectType = scenesElementEgoVehicleObjectType; 765 : 2 : ::ad::rss::world::OccupiedRegionVector scenesElementEgoVehicleOccupiedRegions; 766 : 1 : ::ad::rss::world::OccupiedRegion scenesElementEgoVehicleOccupiedRegionsElement; 767 : 1 : ::ad::rss::world::LaneSegmentId scenesElementEgoVehicleOccupiedRegionsElementSegmentId( 768 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::max()); 769 : 1 : scenesElementEgoVehicleOccupiedRegionsElement.segmentId = scenesElementEgoVehicleOccupiedRegionsElementSegmentId; 770 : 1 : ::ad::physics::ParametricRange scenesElementEgoVehicleOccupiedRegionsElementLonRange; 771 : 1 : ::ad::physics::ParametricValue scenesElementEgoVehicleOccupiedRegionsElementLonRangeMinimum(1.); 772 : : scenesElementEgoVehicleOccupiedRegionsElementLonRange.minimum 773 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLonRangeMinimum; 774 : 1 : ::ad::physics::ParametricValue scenesElementEgoVehicleOccupiedRegionsElementLonRangeMaximum(1.); 775 : : scenesElementEgoVehicleOccupiedRegionsElementLonRange.maximum 776 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLonRangeMaximum; 777 : : scenesElementEgoVehicleOccupiedRegionsElementLonRange.maximum 778 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLonRange.minimum; 779 : : scenesElementEgoVehicleOccupiedRegionsElementLonRange.minimum 780 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLonRange.maximum; 781 : 1 : scenesElementEgoVehicleOccupiedRegionsElement.lonRange = scenesElementEgoVehicleOccupiedRegionsElementLonRange; 782 : 1 : ::ad::physics::ParametricRange scenesElementEgoVehicleOccupiedRegionsElementLatRange; 783 : 1 : ::ad::physics::ParametricValue scenesElementEgoVehicleOccupiedRegionsElementLatRangeMinimum(1.); 784 : : scenesElementEgoVehicleOccupiedRegionsElementLatRange.minimum 785 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLatRangeMinimum; 786 : 1 : ::ad::physics::ParametricValue scenesElementEgoVehicleOccupiedRegionsElementLatRangeMaximum(1.); 787 : : scenesElementEgoVehicleOccupiedRegionsElementLatRange.maximum 788 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLatRangeMaximum; 789 : : scenesElementEgoVehicleOccupiedRegionsElementLatRange.maximum 790 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLatRange.minimum; 791 : : scenesElementEgoVehicleOccupiedRegionsElementLatRange.minimum 792 : 1 : = scenesElementEgoVehicleOccupiedRegionsElementLatRange.maximum; 793 : 1 : scenesElementEgoVehicleOccupiedRegionsElement.latRange = scenesElementEgoVehicleOccupiedRegionsElementLatRange; 794 [ + - ]: 1 : scenesElementEgoVehicleOccupiedRegions.resize(0 + 1, scenesElementEgoVehicleOccupiedRegionsElement); 795 [ + - ]: 1 : scenesElementEgoVehicle.occupiedRegions = scenesElementEgoVehicleOccupiedRegions; 796 : 1 : ::ad::rss::world::Velocity scenesElementEgoVehicleVelocity; 797 : 1 : ::ad::physics::Speed scenesElementEgoVehicleVelocitySpeedLonMin(100.); 798 : 1 : scenesElementEgoVehicleVelocity.speedLonMin = scenesElementEgoVehicleVelocitySpeedLonMin; 799 : 1 : ::ad::physics::Speed scenesElementEgoVehicleVelocitySpeedLonMax(100.); 800 : 1 : scenesElementEgoVehicleVelocity.speedLonMax = scenesElementEgoVehicleVelocitySpeedLonMax; 801 : 1 : ::ad::physics::Speed scenesElementEgoVehicleVelocitySpeedLatMin(100.); 802 : 1 : scenesElementEgoVehicleVelocity.speedLatMin = scenesElementEgoVehicleVelocitySpeedLatMin; 803 : 1 : ::ad::physics::Speed scenesElementEgoVehicleVelocitySpeedLatMax(100.); 804 : 1 : scenesElementEgoVehicleVelocity.speedLatMax = scenesElementEgoVehicleVelocitySpeedLatMax; 805 : 1 : scenesElementEgoVehicleVelocity.speedLatMax = scenesElementEgoVehicleVelocity.speedLatMin; 806 : 1 : scenesElementEgoVehicleVelocity.speedLonMax = scenesElementEgoVehicleVelocity.speedLonMin; 807 : 1 : scenesElementEgoVehicleVelocity.speedLatMin = scenesElementEgoVehicleVelocity.speedLatMax; 808 : 1 : scenesElementEgoVehicleVelocity.speedLonMin = scenesElementEgoVehicleVelocity.speedLonMax; 809 : 1 : scenesElementEgoVehicle.velocity = scenesElementEgoVehicleVelocity; 810 : 1 : ::ad::rss::world::ObjectState scenesElementEgoVehicleState; 811 : 1 : ::ad::physics::Angle scenesElementEgoVehicleStateYaw(6.283185308); 812 : 1 : scenesElementEgoVehicleState.yaw = scenesElementEgoVehicleStateYaw; 813 : 1 : ::ad::physics::Dimension2D scenesElementEgoVehicleStateDimension; 814 : 1 : ::ad::physics::Distance scenesElementEgoVehicleStateDimensionLength(1e9); 815 : 1 : scenesElementEgoVehicleStateDimension.length = scenesElementEgoVehicleStateDimensionLength; 816 : 1 : ::ad::physics::Distance scenesElementEgoVehicleStateDimensionWidth(1e9); 817 : 1 : scenesElementEgoVehicleStateDimension.width = scenesElementEgoVehicleStateDimensionWidth; 818 : 1 : scenesElementEgoVehicleState.dimension = scenesElementEgoVehicleStateDimension; 819 : 1 : ::ad::physics::AngularVelocity scenesElementEgoVehicleStateYawRate(100.); 820 : 1 : scenesElementEgoVehicleState.yawRate = scenesElementEgoVehicleStateYawRate; 821 : 1 : ::ad::physics::Distance2D scenesElementEgoVehicleStateCenterPoint; 822 : 1 : ::ad::physics::Distance scenesElementEgoVehicleStateCenterPointX(1e9); 823 : 1 : scenesElementEgoVehicleStateCenterPoint.x = scenesElementEgoVehicleStateCenterPointX; 824 : 1 : ::ad::physics::Distance scenesElementEgoVehicleStateCenterPointY(1e9); 825 : 1 : scenesElementEgoVehicleStateCenterPoint.y = scenesElementEgoVehicleStateCenterPointY; 826 : 1 : scenesElementEgoVehicleState.centerPoint = scenesElementEgoVehicleStateCenterPoint; 827 : 1 : ::ad::physics::Speed scenesElementEgoVehicleStateSpeed(100.); 828 : 1 : scenesElementEgoVehicleState.speed = scenesElementEgoVehicleStateSpeed; 829 : 1 : ::ad::physics::Angle scenesElementEgoVehicleStateSteeringAngle(6.283185308); 830 : 1 : scenesElementEgoVehicleState.steeringAngle = scenesElementEgoVehicleStateSteeringAngle; 831 : 1 : scenesElementEgoVehicle.state = scenesElementEgoVehicleState; 832 [ + - ]: 1 : scenesElement.egoVehicle = scenesElementEgoVehicle; 833 : 1 : ::ad::rss::world::RssDynamics scenesElementEgoVehicleRssDynamics; 834 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues scenesElementEgoVehicleRssDynamicsAlphaLon; 835 : 1 : ::ad::physics::Acceleration scenesElementEgoVehicleRssDynamicsAlphaLonAccelMax(1e2); 836 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.accelMax = scenesElementEgoVehicleRssDynamicsAlphaLonAccelMax; 837 : 1 : ::ad::physics::Acceleration scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMax(1e2); 838 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMax = scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMax; 839 : 1 : ::ad::physics::Acceleration scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMin(1e2); 840 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin = scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMin; 841 : 1 : ::ad::physics::Acceleration scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(1e2); 842 : : scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect 843 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 844 : : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect 845 : 1 : = scenesElementEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 846 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin; 847 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin = scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMax; 848 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMax = scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin; 849 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMin = scenesElementEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 850 : 1 : scenesElementEgoVehicleRssDynamics.alphaLon = scenesElementEgoVehicleRssDynamicsAlphaLon; 851 : 1 : ::ad::rss::world::LateralRssAccelerationValues scenesElementEgoVehicleRssDynamicsAlphaLat; 852 : 1 : ::ad::physics::Acceleration scenesElementEgoVehicleRssDynamicsAlphaLatAccelMax(1e2); 853 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLat.accelMax = scenesElementEgoVehicleRssDynamicsAlphaLatAccelMax; 854 : 1 : ::ad::physics::Acceleration scenesElementEgoVehicleRssDynamicsAlphaLatBrakeMin(1e2); 855 : : scenesElementEgoVehicleRssDynamicsAlphaLatBrakeMin 856 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 857 : 1 : scenesElementEgoVehicleRssDynamicsAlphaLat.brakeMin = scenesElementEgoVehicleRssDynamicsAlphaLatBrakeMin; 858 : 1 : scenesElementEgoVehicleRssDynamics.alphaLat = scenesElementEgoVehicleRssDynamicsAlphaLat; 859 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRssDynamicsLateralFluctuationMargin(1e9); 860 : : scenesElementEgoVehicleRssDynamicsLateralFluctuationMargin 861 : 1 : = ::ad::physics::Distance(1.); // set to valid value within struct 862 : : scenesElementEgoVehicleRssDynamics.lateralFluctuationMargin 863 : 1 : = scenesElementEgoVehicleRssDynamicsLateralFluctuationMargin; 864 : 1 : ::ad::physics::Duration scenesElementEgoVehicleRssDynamicsResponseTime(1e6); 865 : 1 : scenesElementEgoVehicleRssDynamicsResponseTime = ::ad::physics::Duration(10.); // set to valid value within struct 866 : 1 : scenesElementEgoVehicleRssDynamics.responseTime = scenesElementEgoVehicleRssDynamicsResponseTime; 867 : 1 : ::ad::physics::Speed scenesElementEgoVehicleRssDynamicsMaxSpeedOnAcceleration(100.); 868 : 1 : scenesElementEgoVehicleRssDynamics.maxSpeedOnAcceleration = scenesElementEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 869 : 1 : ::ad::rss::world::UnstructuredSettings scenesElementEgoVehicleRssDynamicsUnstructuredSettings; 870 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 871 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 872 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 873 : 1 : ::ad::physics::Angle scenesElementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 874 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 875 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 876 : 1 : ::ad::physics::AngularAcceleration scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(1e2); 877 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 878 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 879 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 880 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 881 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 882 : 1 : ::ad::physics::Duration scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(1e6); 883 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 884 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 885 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 886 : : std::numeric_limits<uint32_t>::max()}; 887 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 888 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 889 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 890 : : std::numeric_limits<uint32_t>::max()}; 891 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 892 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 893 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 894 : : std::numeric_limits<uint32_t>::max()}; 895 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 896 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 897 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 898 : : std::numeric_limits<uint32_t>::max()}; 899 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 900 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 901 : : uint32_t 902 : 1 : scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 903 : : std::numeric_limits<uint32_t>::max()}; 904 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 905 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 906 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 907 : : std::numeric_limits<uint32_t>::max()}; 908 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 909 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 910 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 911 : : std::numeric_limits<uint32_t>::max()}; 912 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 913 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 914 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 915 : : std::numeric_limits<uint32_t>::max()}; 916 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 917 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 918 : 1 : uint32_t scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 919 : : std::numeric_limits<uint32_t>::max()}; 920 : : scenesElementEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 921 : 1 : = scenesElementEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 922 : 1 : scenesElementEgoVehicleRssDynamics.unstructuredSettings = scenesElementEgoVehicleRssDynamicsUnstructuredSettings; 923 : 1 : scenesElement.egoVehicleRssDynamics = scenesElementEgoVehicleRssDynamics; 924 : 2 : ::ad::rss::world::Object scenesElementObject; 925 : 1 : ::ad::rss::world::ObjectId scenesElementObjectObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::max()); 926 : 1 : scenesElementObject.objectId = scenesElementObjectObjectId; 927 : 1 : ::ad::rss::world::ObjectType scenesElementObjectObjectType(::ad::rss::world::ObjectType::ArtificialObject); 928 : 1 : scenesElementObject.objectType = scenesElementObjectObjectType; 929 : 2 : ::ad::rss::world::OccupiedRegionVector scenesElementObjectOccupiedRegions; 930 : 1 : ::ad::rss::world::OccupiedRegion scenesElementObjectOccupiedRegionsElement; 931 : 1 : ::ad::rss::world::LaneSegmentId scenesElementObjectOccupiedRegionsElementSegmentId( 932 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::max()); 933 : 1 : scenesElementObjectOccupiedRegionsElement.segmentId = scenesElementObjectOccupiedRegionsElementSegmentId; 934 : 1 : ::ad::physics::ParametricRange scenesElementObjectOccupiedRegionsElementLonRange; 935 : 1 : ::ad::physics::ParametricValue scenesElementObjectOccupiedRegionsElementLonRangeMinimum(1.); 936 : 1 : scenesElementObjectOccupiedRegionsElementLonRange.minimum = scenesElementObjectOccupiedRegionsElementLonRangeMinimum; 937 : 1 : ::ad::physics::ParametricValue scenesElementObjectOccupiedRegionsElementLonRangeMaximum(1.); 938 : 1 : scenesElementObjectOccupiedRegionsElementLonRange.maximum = scenesElementObjectOccupiedRegionsElementLonRangeMaximum; 939 : 1 : scenesElementObjectOccupiedRegionsElementLonRange.maximum = scenesElementObjectOccupiedRegionsElementLonRange.minimum; 940 : 1 : scenesElementObjectOccupiedRegionsElementLonRange.minimum = scenesElementObjectOccupiedRegionsElementLonRange.maximum; 941 : 1 : scenesElementObjectOccupiedRegionsElement.lonRange = scenesElementObjectOccupiedRegionsElementLonRange; 942 : 1 : ::ad::physics::ParametricRange scenesElementObjectOccupiedRegionsElementLatRange; 943 : 1 : ::ad::physics::ParametricValue scenesElementObjectOccupiedRegionsElementLatRangeMinimum(1.); 944 : 1 : scenesElementObjectOccupiedRegionsElementLatRange.minimum = scenesElementObjectOccupiedRegionsElementLatRangeMinimum; 945 : 1 : ::ad::physics::ParametricValue scenesElementObjectOccupiedRegionsElementLatRangeMaximum(1.); 946 : 1 : scenesElementObjectOccupiedRegionsElementLatRange.maximum = scenesElementObjectOccupiedRegionsElementLatRangeMaximum; 947 : 1 : scenesElementObjectOccupiedRegionsElementLatRange.maximum = scenesElementObjectOccupiedRegionsElementLatRange.minimum; 948 : 1 : scenesElementObjectOccupiedRegionsElementLatRange.minimum = scenesElementObjectOccupiedRegionsElementLatRange.maximum; 949 : 1 : scenesElementObjectOccupiedRegionsElement.latRange = scenesElementObjectOccupiedRegionsElementLatRange; 950 [ + - ]: 1 : scenesElementObjectOccupiedRegions.resize(0 + 1, scenesElementObjectOccupiedRegionsElement); 951 [ + - ]: 1 : scenesElementObject.occupiedRegions = scenesElementObjectOccupiedRegions; 952 : 1 : ::ad::rss::world::Velocity scenesElementObjectVelocity; 953 : 1 : ::ad::physics::Speed scenesElementObjectVelocitySpeedLonMin(100.); 954 : 1 : scenesElementObjectVelocity.speedLonMin = scenesElementObjectVelocitySpeedLonMin; 955 : 1 : ::ad::physics::Speed scenesElementObjectVelocitySpeedLonMax(100.); 956 : 1 : scenesElementObjectVelocity.speedLonMax = scenesElementObjectVelocitySpeedLonMax; 957 : 1 : ::ad::physics::Speed scenesElementObjectVelocitySpeedLatMin(100.); 958 : 1 : scenesElementObjectVelocity.speedLatMin = scenesElementObjectVelocitySpeedLatMin; 959 : 1 : ::ad::physics::Speed scenesElementObjectVelocitySpeedLatMax(100.); 960 : 1 : scenesElementObjectVelocity.speedLatMax = scenesElementObjectVelocitySpeedLatMax; 961 : 1 : scenesElementObjectVelocity.speedLatMax = scenesElementObjectVelocity.speedLatMin; 962 : 1 : scenesElementObjectVelocity.speedLonMax = scenesElementObjectVelocity.speedLonMin; 963 : 1 : scenesElementObjectVelocity.speedLatMin = scenesElementObjectVelocity.speedLatMax; 964 : 1 : scenesElementObjectVelocity.speedLonMin = scenesElementObjectVelocity.speedLonMax; 965 : 1 : scenesElementObject.velocity = scenesElementObjectVelocity; 966 : 1 : ::ad::rss::world::ObjectState scenesElementObjectState; 967 : 1 : ::ad::physics::Angle scenesElementObjectStateYaw(6.283185308); 968 : 1 : scenesElementObjectState.yaw = scenesElementObjectStateYaw; 969 : 1 : ::ad::physics::Dimension2D scenesElementObjectStateDimension; 970 : 1 : ::ad::physics::Distance scenesElementObjectStateDimensionLength(1e9); 971 : 1 : scenesElementObjectStateDimension.length = scenesElementObjectStateDimensionLength; 972 : 1 : ::ad::physics::Distance scenesElementObjectStateDimensionWidth(1e9); 973 : 1 : scenesElementObjectStateDimension.width = scenesElementObjectStateDimensionWidth; 974 : 1 : scenesElementObjectState.dimension = scenesElementObjectStateDimension; 975 : 1 : ::ad::physics::AngularVelocity scenesElementObjectStateYawRate(100.); 976 : 1 : scenesElementObjectState.yawRate = scenesElementObjectStateYawRate; 977 : 1 : ::ad::physics::Distance2D scenesElementObjectStateCenterPoint; 978 : 1 : ::ad::physics::Distance scenesElementObjectStateCenterPointX(1e9); 979 : 1 : scenesElementObjectStateCenterPoint.x = scenesElementObjectStateCenterPointX; 980 : 1 : ::ad::physics::Distance scenesElementObjectStateCenterPointY(1e9); 981 : 1 : scenesElementObjectStateCenterPoint.y = scenesElementObjectStateCenterPointY; 982 : 1 : scenesElementObjectState.centerPoint = scenesElementObjectStateCenterPoint; 983 : 1 : ::ad::physics::Speed scenesElementObjectStateSpeed(100.); 984 : 1 : scenesElementObjectState.speed = scenesElementObjectStateSpeed; 985 : 1 : ::ad::physics::Angle scenesElementObjectStateSteeringAngle(6.283185308); 986 : 1 : scenesElementObjectState.steeringAngle = scenesElementObjectStateSteeringAngle; 987 : 1 : scenesElementObject.state = scenesElementObjectState; 988 [ + - ]: 1 : scenesElement.object = scenesElementObject; 989 : 1 : ::ad::rss::world::RssDynamics scenesElementObjectRssDynamics; 990 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues scenesElementObjectRssDynamicsAlphaLon; 991 : 1 : ::ad::physics::Acceleration scenesElementObjectRssDynamicsAlphaLonAccelMax(1e2); 992 : 1 : scenesElementObjectRssDynamicsAlphaLon.accelMax = scenesElementObjectRssDynamicsAlphaLonAccelMax; 993 : 1 : ::ad::physics::Acceleration scenesElementObjectRssDynamicsAlphaLonBrakeMax(1e2); 994 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMax = scenesElementObjectRssDynamicsAlphaLonBrakeMax; 995 : 1 : ::ad::physics::Acceleration scenesElementObjectRssDynamicsAlphaLonBrakeMin(1e2); 996 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMin = scenesElementObjectRssDynamicsAlphaLonBrakeMin; 997 : 1 : ::ad::physics::Acceleration scenesElementObjectRssDynamicsAlphaLonBrakeMinCorrect(1e2); 998 : : scenesElementObjectRssDynamicsAlphaLonBrakeMinCorrect 999 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 1000 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMinCorrect = scenesElementObjectRssDynamicsAlphaLonBrakeMinCorrect; 1001 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMinCorrect = scenesElementObjectRssDynamicsAlphaLon.brakeMin; 1002 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMin = scenesElementObjectRssDynamicsAlphaLon.brakeMax; 1003 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMax = scenesElementObjectRssDynamicsAlphaLon.brakeMin; 1004 : 1 : scenesElementObjectRssDynamicsAlphaLon.brakeMin = scenesElementObjectRssDynamicsAlphaLon.brakeMinCorrect; 1005 : 1 : scenesElementObjectRssDynamics.alphaLon = scenesElementObjectRssDynamicsAlphaLon; 1006 : 1 : ::ad::rss::world::LateralRssAccelerationValues scenesElementObjectRssDynamicsAlphaLat; 1007 : 1 : ::ad::physics::Acceleration scenesElementObjectRssDynamicsAlphaLatAccelMax(1e2); 1008 : 1 : scenesElementObjectRssDynamicsAlphaLat.accelMax = scenesElementObjectRssDynamicsAlphaLatAccelMax; 1009 : 1 : ::ad::physics::Acceleration scenesElementObjectRssDynamicsAlphaLatBrakeMin(1e2); 1010 : : scenesElementObjectRssDynamicsAlphaLatBrakeMin 1011 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 1012 : 1 : scenesElementObjectRssDynamicsAlphaLat.brakeMin = scenesElementObjectRssDynamicsAlphaLatBrakeMin; 1013 : 1 : scenesElementObjectRssDynamics.alphaLat = scenesElementObjectRssDynamicsAlphaLat; 1014 : 1 : ::ad::physics::Distance scenesElementObjectRssDynamicsLateralFluctuationMargin(1e9); 1015 : : scenesElementObjectRssDynamicsLateralFluctuationMargin 1016 : 1 : = ::ad::physics::Distance(1.); // set to valid value within struct 1017 : 1 : scenesElementObjectRssDynamics.lateralFluctuationMargin = scenesElementObjectRssDynamicsLateralFluctuationMargin; 1018 : 1 : ::ad::physics::Duration scenesElementObjectRssDynamicsResponseTime(1e6); 1019 : 1 : scenesElementObjectRssDynamicsResponseTime = ::ad::physics::Duration(10.); // set to valid value within struct 1020 : 1 : scenesElementObjectRssDynamics.responseTime = scenesElementObjectRssDynamicsResponseTime; 1021 : 1 : ::ad::physics::Speed scenesElementObjectRssDynamicsMaxSpeedOnAcceleration(100.); 1022 : 1 : scenesElementObjectRssDynamics.maxSpeedOnAcceleration = scenesElementObjectRssDynamicsMaxSpeedOnAcceleration; 1023 : 1 : ::ad::rss::world::UnstructuredSettings scenesElementObjectRssDynamicsUnstructuredSettings; 1024 : 1 : ::ad::physics::Distance scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 1025 : : scenesElementObjectRssDynamicsUnstructuredSettings.pedestrianTurningRadius 1026 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 1027 : 1 : ::ad::physics::Angle scenesElementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 1028 : : scenesElementObjectRssDynamicsUnstructuredSettings.driveAwayMaxAngle 1029 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 1030 : 1 : ::ad::physics::AngularAcceleration scenesElementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange(1e2); 1031 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleYawRateChange 1032 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleYawRateChange; 1033 : 1 : ::ad::physics::Distance scenesElementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 1034 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleMinRadius 1035 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleMinRadius; 1036 : 1 : ::ad::physics::Duration scenesElementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(1e6); 1037 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 1038 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 1039 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 1040 : : std::numeric_limits<uint32_t>::max()}; 1041 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 1042 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 1043 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 1044 : : std::numeric_limits<uint32_t>::max()}; 1045 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 1046 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 1047 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 1048 : : std::numeric_limits<uint32_t>::max()}; 1049 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 1050 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 1051 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 1052 : : std::numeric_limits<uint32_t>::max()}; 1053 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 1054 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 1055 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 1056 : : std::numeric_limits<uint32_t>::max()}; 1057 : : scenesElementObjectRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 1058 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 1059 : : uint32_t 1060 : 1 : scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 1061 : : std::numeric_limits<uint32_t>::max()}; 1062 : : scenesElementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 1063 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 1064 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 1065 : : std::numeric_limits<uint32_t>::max()}; 1066 : : scenesElementObjectRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 1067 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 1068 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 1069 : : std::numeric_limits<uint32_t>::max()}; 1070 : : scenesElementObjectRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 1071 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 1072 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 1073 : : std::numeric_limits<uint32_t>::max()}; 1074 : : scenesElementObjectRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 1075 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 1076 : 1 : uint32_t scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 1077 : : std::numeric_limits<uint32_t>::max()}; 1078 : : scenesElementObjectRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 1079 : 1 : = scenesElementObjectRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 1080 : 1 : scenesElementObjectRssDynamics.unstructuredSettings = scenesElementObjectRssDynamicsUnstructuredSettings; 1081 : 1 : scenesElement.objectRssDynamics = scenesElementObjectRssDynamics; 1082 : 2 : ::ad::rss::world::RoadArea scenesElementIntersectingRoad; 1083 : 2 : ::ad::rss::world::RoadSegment scenesElementIntersectingRoadElement; 1084 : 1 : ::ad::rss::world::LaneSegment scenesElementIntersectingRoadElementElement; 1085 : 1 : ::ad::rss::world::LaneSegmentId scenesElementIntersectingRoadElementElementId( 1086 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::max()); 1087 : 1 : scenesElementIntersectingRoadElementElement.id = scenesElementIntersectingRoadElementElementId; 1088 : 1 : ::ad::rss::world::LaneSegmentType scenesElementIntersectingRoadElementElementType( 1089 : : ::ad::rss::world::LaneSegmentType::Intersection); 1090 : 1 : scenesElementIntersectingRoadElementElement.type = scenesElementIntersectingRoadElementElementType; 1091 : 1 : ::ad::rss::world::LaneDrivingDirection scenesElementIntersectingRoadElementElementDrivingDirection( 1092 : : ::ad::rss::world::LaneDrivingDirection::Negative); 1093 : : scenesElementIntersectingRoadElementElement.drivingDirection 1094 : 1 : = scenesElementIntersectingRoadElementElementDrivingDirection; 1095 : 1 : ::ad::physics::MetricRange scenesElementIntersectingRoadElementElementLength; 1096 : 1 : ::ad::physics::Distance scenesElementIntersectingRoadElementElementLengthMinimum(1e9); 1097 : 1 : scenesElementIntersectingRoadElementElementLength.minimum = scenesElementIntersectingRoadElementElementLengthMinimum; 1098 : 1 : ::ad::physics::Distance scenesElementIntersectingRoadElementElementLengthMaximum(1e9); 1099 : : scenesElementIntersectingRoadElementElementLengthMaximum 1100 : 1 : = ::ad::physics::Distance(1e6); // set to valid value within struct 1101 : 1 : scenesElementIntersectingRoadElementElementLength.maximum = scenesElementIntersectingRoadElementElementLengthMaximum; 1102 : 1 : scenesElementIntersectingRoadElementElementLength.maximum = scenesElementIntersectingRoadElementElementLength.minimum; 1103 : 1 : scenesElementIntersectingRoadElementElementLength.minimum = scenesElementIntersectingRoadElementElementLength.maximum; 1104 : 1 : scenesElementIntersectingRoadElementElement.length = scenesElementIntersectingRoadElementElementLength; 1105 : 1 : ::ad::physics::MetricRange scenesElementIntersectingRoadElementElementWidth; 1106 : 1 : ::ad::physics::Distance scenesElementIntersectingRoadElementElementWidthMinimum(1e9); 1107 : 1 : scenesElementIntersectingRoadElementElementWidth.minimum = scenesElementIntersectingRoadElementElementWidthMinimum; 1108 : 1 : ::ad::physics::Distance scenesElementIntersectingRoadElementElementWidthMaximum(1e9); 1109 : : scenesElementIntersectingRoadElementElementWidthMaximum 1110 : 1 : = ::ad::physics::Distance(1e6); // set to valid value within struct 1111 : 1 : scenesElementIntersectingRoadElementElementWidth.maximum = scenesElementIntersectingRoadElementElementWidthMaximum; 1112 : 1 : scenesElementIntersectingRoadElementElementWidth.maximum = scenesElementIntersectingRoadElementElementWidth.minimum; 1113 : 1 : scenesElementIntersectingRoadElementElementWidth.minimum = scenesElementIntersectingRoadElementElementWidth.maximum; 1114 : 1 : scenesElementIntersectingRoadElementElement.width = scenesElementIntersectingRoadElementElementWidth; 1115 [ + - ]: 1 : scenesElementIntersectingRoadElement.resize(1 + 1, scenesElementIntersectingRoadElementElement); 1116 [ + - ]: 1 : scenesElementIntersectingRoad.resize(0 + 1, scenesElementIntersectingRoadElement); 1117 [ + - ]: 1 : scenesElement.intersectingRoad = scenesElementIntersectingRoad; 1118 : 2 : ::ad::rss::world::RoadArea scenesElementEgoVehicleRoad; 1119 : 2 : ::ad::rss::world::RoadSegment scenesElementEgoVehicleRoadElement; 1120 : 1 : ::ad::rss::world::LaneSegment scenesElementEgoVehicleRoadElementElement; 1121 : 1 : ::ad::rss::world::LaneSegmentId scenesElementEgoVehicleRoadElementElementId( 1122 : : std::numeric_limits<::ad::rss::world::LaneSegmentId>::max()); 1123 : 1 : scenesElementEgoVehicleRoadElementElement.id = scenesElementEgoVehicleRoadElementElementId; 1124 : 1 : ::ad::rss::world::LaneSegmentType scenesElementEgoVehicleRoadElementElementType( 1125 : : ::ad::rss::world::LaneSegmentType::Intersection); 1126 : 1 : scenesElementEgoVehicleRoadElementElement.type = scenesElementEgoVehicleRoadElementElementType; 1127 : 1 : ::ad::rss::world::LaneDrivingDirection scenesElementEgoVehicleRoadElementElementDrivingDirection( 1128 : : ::ad::rss::world::LaneDrivingDirection::Negative); 1129 : : scenesElementEgoVehicleRoadElementElement.drivingDirection 1130 : 1 : = scenesElementEgoVehicleRoadElementElementDrivingDirection; 1131 : 1 : ::ad::physics::MetricRange scenesElementEgoVehicleRoadElementElementLength; 1132 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRoadElementElementLengthMinimum(1e9); 1133 : 1 : scenesElementEgoVehicleRoadElementElementLength.minimum = scenesElementEgoVehicleRoadElementElementLengthMinimum; 1134 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRoadElementElementLengthMaximum(1e9); 1135 : : scenesElementEgoVehicleRoadElementElementLengthMaximum 1136 : 1 : = ::ad::physics::Distance(1e6); // set to valid value within struct 1137 : 1 : scenesElementEgoVehicleRoadElementElementLength.maximum = scenesElementEgoVehicleRoadElementElementLengthMaximum; 1138 : 1 : scenesElementEgoVehicleRoadElementElementLength.maximum = scenesElementEgoVehicleRoadElementElementLength.minimum; 1139 : 1 : scenesElementEgoVehicleRoadElementElementLength.minimum = scenesElementEgoVehicleRoadElementElementLength.maximum; 1140 : 1 : scenesElementEgoVehicleRoadElementElement.length = scenesElementEgoVehicleRoadElementElementLength; 1141 : 1 : ::ad::physics::MetricRange scenesElementEgoVehicleRoadElementElementWidth; 1142 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRoadElementElementWidthMinimum(1e9); 1143 : 1 : scenesElementEgoVehicleRoadElementElementWidth.minimum = scenesElementEgoVehicleRoadElementElementWidthMinimum; 1144 : 1 : ::ad::physics::Distance scenesElementEgoVehicleRoadElementElementWidthMaximum(1e9); 1145 : : scenesElementEgoVehicleRoadElementElementWidthMaximum 1146 : 1 : = ::ad::physics::Distance(1e6); // set to valid value within struct 1147 : 1 : scenesElementEgoVehicleRoadElementElementWidth.maximum = scenesElementEgoVehicleRoadElementElementWidthMaximum; 1148 : 1 : scenesElementEgoVehicleRoadElementElementWidth.maximum = scenesElementEgoVehicleRoadElementElementWidth.minimum; 1149 : 1 : scenesElementEgoVehicleRoadElementElementWidth.minimum = scenesElementEgoVehicleRoadElementElementWidth.maximum; 1150 : 1 : scenesElementEgoVehicleRoadElementElement.width = scenesElementEgoVehicleRoadElementElementWidth; 1151 [ + - ]: 1 : scenesElementEgoVehicleRoadElement.resize(1 + 1, scenesElementEgoVehicleRoadElementElement); 1152 [ + - ]: 1 : scenesElementEgoVehicleRoad.resize(0 + 1, scenesElementEgoVehicleRoadElement); 1153 [ + - ]: 1 : scenesElement.egoVehicleRoad = scenesElementEgoVehicleRoad; 1154 [ + - ]: 1 : scenes.resize(0 + 1, scenesElement); 1155 [ + - ]: 1 : valueA.scenes = scenes; 1156 [ + - ]: 2 : ::ad::rss::world::WorldModel valueB = mValue; 1157 : : 1158 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 1159 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 1160 : 1 : } 1161 : : 1162 : : #if defined(__clang__) && (__clang_major__ >= 7) 1163 : : #pragma GCC diagnostic pop 1164 : : #endif