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/situation/SituationSnapshot.hpp" 23 : : 24 : : class SituationSnapshotTests : public testing::Test 25 : : { 26 : : protected: 27 : 9 : virtual void SetUp() override 28 : : { 29 : : // valid initialization 30 : 18 : ::ad::rss::situation::SituationSnapshot 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::situation::SituationVector valueSituations; 133 : 9 : ::ad::rss::situation::Situation valueSituationsElement; 134 : 9 : ::ad::rss::situation::SituationId valueSituationsElementSituationId( 135 : : std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 136 : 9 : valueSituationsElement.situationId = valueSituationsElementSituationId; 137 : 9 : ::ad::rss::world::ObjectId valueSituationsElementObjectId( 138 : : std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 139 : 9 : valueSituationsElement.objectId = valueSituationsElementObjectId; 140 : 9 : ::ad::rss::situation::SituationType valueSituationsElementSituationType( 141 : : ::ad::rss::situation::SituationType::NotRelevant); 142 : 9 : valueSituationsElement.situationType = valueSituationsElementSituationType; 143 : 9 : ::ad::rss::situation::VehicleState valueSituationsElementEgoVehicleState; 144 : 9 : ::ad::rss::situation::VelocityRange valueSituationsElementEgoVehicleStateVelocity; 145 : 9 : ::ad::physics::SpeedRange valueSituationsElementEgoVehicleStateVelocitySpeedLon; 146 : 9 : ::ad::physics::Speed valueSituationsElementEgoVehicleStateVelocitySpeedLonMinimum(-100.); 147 : : valueSituationsElementEgoVehicleStateVelocitySpeedLon.minimum 148 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLonMinimum; 149 : 9 : ::ad::physics::Speed valueSituationsElementEgoVehicleStateVelocitySpeedLonMaximum(-100.); 150 : : valueSituationsElementEgoVehicleStateVelocitySpeedLon.maximum 151 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLonMaximum; 152 : : valueSituationsElementEgoVehicleStateVelocitySpeedLon.maximum 153 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLon.minimum; 154 : : valueSituationsElementEgoVehicleStateVelocitySpeedLon.minimum 155 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLon.maximum; 156 : 9 : valueSituationsElementEgoVehicleStateVelocity.speedLon = valueSituationsElementEgoVehicleStateVelocitySpeedLon; 157 : 9 : ::ad::physics::SpeedRange valueSituationsElementEgoVehicleStateVelocitySpeedLat; 158 : 9 : ::ad::physics::Speed valueSituationsElementEgoVehicleStateVelocitySpeedLatMinimum(-100.); 159 : : valueSituationsElementEgoVehicleStateVelocitySpeedLat.minimum 160 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLatMinimum; 161 : 9 : ::ad::physics::Speed valueSituationsElementEgoVehicleStateVelocitySpeedLatMaximum(-100.); 162 : : valueSituationsElementEgoVehicleStateVelocitySpeedLat.maximum 163 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLatMaximum; 164 : : valueSituationsElementEgoVehicleStateVelocitySpeedLat.maximum 165 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLat.minimum; 166 : : valueSituationsElementEgoVehicleStateVelocitySpeedLat.minimum 167 : 9 : = valueSituationsElementEgoVehicleStateVelocitySpeedLat.maximum; 168 : 9 : valueSituationsElementEgoVehicleStateVelocity.speedLat = valueSituationsElementEgoVehicleStateVelocitySpeedLat; 169 : 9 : valueSituationsElementEgoVehicleState.velocity = valueSituationsElementEgoVehicleStateVelocity; 170 : 9 : ::ad::rss::world::RssDynamics valueSituationsElementEgoVehicleStateDynamics; 171 : 9 : ::ad::rss::world::LongitudinalRssAccelerationValues valueSituationsElementEgoVehicleStateDynamicsAlphaLon; 172 : 9 : ::ad::physics::Acceleration valueSituationsElementEgoVehicleStateDynamicsAlphaLonAccelMax(-1e2); 173 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLonAccelMax 174 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 175 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.accelMax 176 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLonAccelMax; 177 : 9 : ::ad::physics::Acceleration valueSituationsElementEgoVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 178 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMax 179 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLonBrakeMax; 180 : 9 : ::ad::physics::Acceleration valueSituationsElementEgoVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 181 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin 182 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLonBrakeMin; 183 : 9 : ::ad::physics::Acceleration valueSituationsElementEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 184 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect 185 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 186 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin 187 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMax; 188 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect 189 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin; 190 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin 191 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 192 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMax 193 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin; 194 : 9 : valueSituationsElementEgoVehicleStateDynamics.alphaLon = valueSituationsElementEgoVehicleStateDynamicsAlphaLon; 195 : 9 : ::ad::rss::world::LateralRssAccelerationValues valueSituationsElementEgoVehicleStateDynamicsAlphaLat; 196 : 9 : ::ad::physics::Acceleration valueSituationsElementEgoVehicleStateDynamicsAlphaLatAccelMax(-1e2); 197 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLatAccelMax 198 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 199 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLat.accelMax 200 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLatAccelMax; 201 : 9 : ::ad::physics::Acceleration valueSituationsElementEgoVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 202 : : valueSituationsElementEgoVehicleStateDynamicsAlphaLat.brakeMin 203 : 9 : = valueSituationsElementEgoVehicleStateDynamicsAlphaLatBrakeMin; 204 : 9 : valueSituationsElementEgoVehicleStateDynamics.alphaLat = valueSituationsElementEgoVehicleStateDynamicsAlphaLat; 205 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateDynamicsLateralFluctuationMargin(-1e9); 206 : : valueSituationsElementEgoVehicleStateDynamicsLateralFluctuationMargin 207 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 208 : : valueSituationsElementEgoVehicleStateDynamics.lateralFluctuationMargin 209 : 9 : = valueSituationsElementEgoVehicleStateDynamicsLateralFluctuationMargin; 210 : 9 : ::ad::physics::Duration valueSituationsElementEgoVehicleStateDynamicsResponseTime(0.); 211 : : valueSituationsElementEgoVehicleStateDynamicsResponseTime 212 : 9 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 213 : : valueSituationsElementEgoVehicleStateDynamics.responseTime 214 : 9 : = valueSituationsElementEgoVehicleStateDynamicsResponseTime; 215 : 9 : ::ad::physics::Speed valueSituationsElementEgoVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 216 : : valueSituationsElementEgoVehicleStateDynamics.maxSpeedOnAcceleration 217 : 9 : = valueSituationsElementEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 218 : 9 : ::ad::rss::world::UnstructuredSettings valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings; 219 : : ::ad::physics::Distance valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius( 220 : 9 : -1e9); 221 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 222 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 223 : : ::ad::physics::Angle valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle( 224 : 9 : -6.283185308); 225 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 226 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 227 : : ::ad::physics::AngularAcceleration 228 : 9 : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 229 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 230 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 231 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 232 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 233 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 234 : : ::ad::physics::Duration 235 : 9 : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 236 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 237 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 238 : : uint32_t 239 : 9 : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 240 : : std::numeric_limits<uint32_t>::min()}; 241 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 242 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 243 : : uint32_t 244 : 9 : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 245 : : std::numeric_limits<uint32_t>::min()}; 246 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 247 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 248 : 9 : uint32_t valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 249 : : std::numeric_limits<uint32_t>::min()}; 250 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 251 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 252 : : uint32_t 253 : 9 : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 254 : : std::numeric_limits<uint32_t>::min()}; 255 : : valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings 256 : : .vehicleContinueForwardIntermediateAccelerationSteps 257 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 258 : : valueSituationsElementEgoVehicleStateDynamics.unstructuredSettings 259 : 9 : = valueSituationsElementEgoVehicleStateDynamicsUnstructuredSettings; 260 : 9 : valueSituationsElementEgoVehicleState.dynamics = valueSituationsElementEgoVehicleStateDynamics; 261 : 9 : bool valueSituationsElementEgoVehicleStateHasPriority{true}; 262 : 9 : valueSituationsElementEgoVehicleState.hasPriority = valueSituationsElementEgoVehicleStateHasPriority; 263 : 9 : bool valueSituationsElementEgoVehicleStateIsInCorrectLane{true}; 264 : 9 : valueSituationsElementEgoVehicleState.isInCorrectLane = valueSituationsElementEgoVehicleStateIsInCorrectLane; 265 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateDistanceToEnterIntersection(-1e9); 266 : : valueSituationsElementEgoVehicleStateDistanceToEnterIntersection 267 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 268 : : valueSituationsElementEgoVehicleState.distanceToEnterIntersection 269 : 9 : = valueSituationsElementEgoVehicleStateDistanceToEnterIntersection; 270 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateDistanceToLeaveIntersection(-1e9); 271 : : valueSituationsElementEgoVehicleState.distanceToLeaveIntersection 272 : 9 : = valueSituationsElementEgoVehicleStateDistanceToLeaveIntersection; 273 : 9 : ::ad::rss::world::ObjectType valueSituationsElementEgoVehicleStateObjectType(::ad::rss::world::ObjectType::Invalid); 274 : 9 : valueSituationsElementEgoVehicleState.objectType = valueSituationsElementEgoVehicleStateObjectType; 275 : 9 : ::ad::rss::world::ObjectState valueSituationsElementEgoVehicleStateObjectState; 276 : 9 : ::ad::physics::Angle valueSituationsElementEgoVehicleStateObjectStateYaw(-6.283185308); 277 : 9 : valueSituationsElementEgoVehicleStateObjectState.yaw = valueSituationsElementEgoVehicleStateObjectStateYaw; 278 : 9 : ::ad::physics::Dimension2D valueSituationsElementEgoVehicleStateObjectStateDimension; 279 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateObjectStateDimensionLength(-1e9); 280 : : valueSituationsElementEgoVehicleStateObjectStateDimension.length 281 : 9 : = valueSituationsElementEgoVehicleStateObjectStateDimensionLength; 282 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateObjectStateDimensionWidth(-1e9); 283 : : valueSituationsElementEgoVehicleStateObjectStateDimension.width 284 : 9 : = valueSituationsElementEgoVehicleStateObjectStateDimensionWidth; 285 : : valueSituationsElementEgoVehicleStateObjectState.dimension 286 : 9 : = valueSituationsElementEgoVehicleStateObjectStateDimension; 287 : 9 : ::ad::physics::AngularVelocity valueSituationsElementEgoVehicleStateObjectStateYawRate(-100.); 288 : 9 : valueSituationsElementEgoVehicleStateObjectState.yawRate = valueSituationsElementEgoVehicleStateObjectStateYawRate; 289 : 9 : ::ad::physics::Distance2D valueSituationsElementEgoVehicleStateObjectStateCenterPoint; 290 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateObjectStateCenterPointX(-1e9); 291 : : valueSituationsElementEgoVehicleStateObjectStateCenterPoint.x 292 : 9 : = valueSituationsElementEgoVehicleStateObjectStateCenterPointX; 293 : 9 : ::ad::physics::Distance valueSituationsElementEgoVehicleStateObjectStateCenterPointY(-1e9); 294 : : valueSituationsElementEgoVehicleStateObjectStateCenterPoint.y 295 : 9 : = valueSituationsElementEgoVehicleStateObjectStateCenterPointY; 296 : : valueSituationsElementEgoVehicleStateObjectState.centerPoint 297 : 9 : = valueSituationsElementEgoVehicleStateObjectStateCenterPoint; 298 : 9 : ::ad::physics::Speed valueSituationsElementEgoVehicleStateObjectStateSpeed(-100.); 299 : 9 : valueSituationsElementEgoVehicleStateObjectState.speed = valueSituationsElementEgoVehicleStateObjectStateSpeed; 300 : 9 : ::ad::physics::Angle valueSituationsElementEgoVehicleStateObjectStateSteeringAngle(-6.283185308); 301 : : valueSituationsElementEgoVehicleStateObjectState.steeringAngle 302 : 9 : = valueSituationsElementEgoVehicleStateObjectStateSteeringAngle; 303 : 9 : valueSituationsElementEgoVehicleState.objectState = valueSituationsElementEgoVehicleStateObjectState; 304 : : valueSituationsElementEgoVehicleState.distanceToLeaveIntersection 305 : 9 : = valueSituationsElementEgoVehicleState.distanceToEnterIntersection; 306 : : valueSituationsElementEgoVehicleState.distanceToEnterIntersection 307 : 9 : = valueSituationsElementEgoVehicleState.distanceToLeaveIntersection; 308 : 9 : valueSituationsElement.egoVehicleState = valueSituationsElementEgoVehicleState; 309 : 9 : ::ad::rss::situation::VehicleState valueSituationsElementOtherVehicleState; 310 : 9 : ::ad::rss::situation::VelocityRange valueSituationsElementOtherVehicleStateVelocity; 311 : 9 : ::ad::physics::SpeedRange valueSituationsElementOtherVehicleStateVelocitySpeedLon; 312 : 9 : ::ad::physics::Speed valueSituationsElementOtherVehicleStateVelocitySpeedLonMinimum(-100.); 313 : : valueSituationsElementOtherVehicleStateVelocitySpeedLon.minimum 314 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLonMinimum; 315 : 9 : ::ad::physics::Speed valueSituationsElementOtherVehicleStateVelocitySpeedLonMaximum(-100.); 316 : : valueSituationsElementOtherVehicleStateVelocitySpeedLon.maximum 317 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLonMaximum; 318 : : valueSituationsElementOtherVehicleStateVelocitySpeedLon.maximum 319 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLon.minimum; 320 : : valueSituationsElementOtherVehicleStateVelocitySpeedLon.minimum 321 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLon.maximum; 322 : 9 : valueSituationsElementOtherVehicleStateVelocity.speedLon = valueSituationsElementOtherVehicleStateVelocitySpeedLon; 323 : 9 : ::ad::physics::SpeedRange valueSituationsElementOtherVehicleStateVelocitySpeedLat; 324 : 9 : ::ad::physics::Speed valueSituationsElementOtherVehicleStateVelocitySpeedLatMinimum(-100.); 325 : : valueSituationsElementOtherVehicleStateVelocitySpeedLat.minimum 326 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLatMinimum; 327 : 9 : ::ad::physics::Speed valueSituationsElementOtherVehicleStateVelocitySpeedLatMaximum(-100.); 328 : : valueSituationsElementOtherVehicleStateVelocitySpeedLat.maximum 329 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLatMaximum; 330 : : valueSituationsElementOtherVehicleStateVelocitySpeedLat.maximum 331 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLat.minimum; 332 : : valueSituationsElementOtherVehicleStateVelocitySpeedLat.minimum 333 : 9 : = valueSituationsElementOtherVehicleStateVelocitySpeedLat.maximum; 334 : 9 : valueSituationsElementOtherVehicleStateVelocity.speedLat = valueSituationsElementOtherVehicleStateVelocitySpeedLat; 335 : 9 : valueSituationsElementOtherVehicleState.velocity = valueSituationsElementOtherVehicleStateVelocity; 336 : 9 : ::ad::rss::world::RssDynamics valueSituationsElementOtherVehicleStateDynamics; 337 : 9 : ::ad::rss::world::LongitudinalRssAccelerationValues valueSituationsElementOtherVehicleStateDynamicsAlphaLon; 338 : 9 : ::ad::physics::Acceleration valueSituationsElementOtherVehicleStateDynamicsAlphaLonAccelMax(-1e2); 339 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLonAccelMax 340 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 341 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.accelMax 342 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLonAccelMax; 343 : 9 : ::ad::physics::Acceleration valueSituationsElementOtherVehicleStateDynamicsAlphaLonBrakeMax(-1e2); 344 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMax 345 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLonBrakeMax; 346 : 9 : ::ad::physics::Acceleration valueSituationsElementOtherVehicleStateDynamicsAlphaLonBrakeMin(-1e2); 347 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin 348 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLonBrakeMin; 349 : 9 : ::ad::physics::Acceleration valueSituationsElementOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(-1e2); 350 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect 351 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 352 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin 353 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMax; 354 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect 355 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin; 356 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin 357 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 358 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMax 359 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin; 360 : 9 : valueSituationsElementOtherVehicleStateDynamics.alphaLon = valueSituationsElementOtherVehicleStateDynamicsAlphaLon; 361 : 9 : ::ad::rss::world::LateralRssAccelerationValues valueSituationsElementOtherVehicleStateDynamicsAlphaLat; 362 : 9 : ::ad::physics::Acceleration valueSituationsElementOtherVehicleStateDynamicsAlphaLatAccelMax(-1e2); 363 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLatAccelMax 364 : 9 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 365 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLat.accelMax 366 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLatAccelMax; 367 : 9 : ::ad::physics::Acceleration valueSituationsElementOtherVehicleStateDynamicsAlphaLatBrakeMin(-1e2); 368 : : valueSituationsElementOtherVehicleStateDynamicsAlphaLat.brakeMin 369 : 9 : = valueSituationsElementOtherVehicleStateDynamicsAlphaLatBrakeMin; 370 : 9 : valueSituationsElementOtherVehicleStateDynamics.alphaLat = valueSituationsElementOtherVehicleStateDynamicsAlphaLat; 371 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateDynamicsLateralFluctuationMargin(-1e9); 372 : : valueSituationsElementOtherVehicleStateDynamicsLateralFluctuationMargin 373 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 374 : : valueSituationsElementOtherVehicleStateDynamics.lateralFluctuationMargin 375 : 9 : = valueSituationsElementOtherVehicleStateDynamicsLateralFluctuationMargin; 376 : 9 : ::ad::physics::Duration valueSituationsElementOtherVehicleStateDynamicsResponseTime(0.); 377 : : valueSituationsElementOtherVehicleStateDynamicsResponseTime 378 : 9 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 379 : : valueSituationsElementOtherVehicleStateDynamics.responseTime 380 : 9 : = valueSituationsElementOtherVehicleStateDynamicsResponseTime; 381 : 9 : ::ad::physics::Speed valueSituationsElementOtherVehicleStateDynamicsMaxSpeedOnAcceleration(-100.); 382 : : valueSituationsElementOtherVehicleStateDynamics.maxSpeedOnAcceleration 383 : 9 : = valueSituationsElementOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 384 : 9 : ::ad::rss::world::UnstructuredSettings valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings; 385 : : ::ad::physics::Distance valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius( 386 : 9 : -1e9); 387 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 388 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 389 : : ::ad::physics::Angle valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle( 390 : 9 : -6.283185308); 391 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 392 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 393 : : ::ad::physics::AngularAcceleration 394 : 9 : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 395 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 396 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 397 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 398 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 399 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 400 : : ::ad::physics::Duration 401 : 9 : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 402 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 403 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 404 : : uint32_t 405 : 9 : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 406 : : std::numeric_limits<uint32_t>::min()}; 407 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 408 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 409 : : uint32_t 410 : 9 : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 411 : : std::numeric_limits<uint32_t>::min()}; 412 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 413 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 414 : : uint32_t 415 : 9 : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 416 : : std::numeric_limits<uint32_t>::min()}; 417 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 418 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 419 : : uint32_t 420 : 9 : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 421 : : std::numeric_limits<uint32_t>::min()}; 422 : : valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings 423 : : .vehicleContinueForwardIntermediateAccelerationSteps 424 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 425 : : valueSituationsElementOtherVehicleStateDynamics.unstructuredSettings 426 : 9 : = valueSituationsElementOtherVehicleStateDynamicsUnstructuredSettings; 427 : 9 : valueSituationsElementOtherVehicleState.dynamics = valueSituationsElementOtherVehicleStateDynamics; 428 : 9 : bool valueSituationsElementOtherVehicleStateHasPriority{true}; 429 : 9 : valueSituationsElementOtherVehicleState.hasPriority = valueSituationsElementOtherVehicleStateHasPriority; 430 : 9 : bool valueSituationsElementOtherVehicleStateIsInCorrectLane{true}; 431 : 9 : valueSituationsElementOtherVehicleState.isInCorrectLane = valueSituationsElementOtherVehicleStateIsInCorrectLane; 432 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateDistanceToEnterIntersection(-1e9); 433 : : valueSituationsElementOtherVehicleStateDistanceToEnterIntersection 434 : 9 : = ::ad::physics::Distance(0.); // set to valid value within struct 435 : : valueSituationsElementOtherVehicleState.distanceToEnterIntersection 436 : 9 : = valueSituationsElementOtherVehicleStateDistanceToEnterIntersection; 437 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateDistanceToLeaveIntersection(-1e9); 438 : : valueSituationsElementOtherVehicleState.distanceToLeaveIntersection 439 : 9 : = valueSituationsElementOtherVehicleStateDistanceToLeaveIntersection; 440 : 9 : ::ad::rss::world::ObjectType valueSituationsElementOtherVehicleStateObjectType( 441 : : ::ad::rss::world::ObjectType::Invalid); 442 : 9 : valueSituationsElementOtherVehicleState.objectType = valueSituationsElementOtherVehicleStateObjectType; 443 : 9 : ::ad::rss::world::ObjectState valueSituationsElementOtherVehicleStateObjectState; 444 : 9 : ::ad::physics::Angle valueSituationsElementOtherVehicleStateObjectStateYaw(-6.283185308); 445 : 9 : valueSituationsElementOtherVehicleStateObjectState.yaw = valueSituationsElementOtherVehicleStateObjectStateYaw; 446 : 9 : ::ad::physics::Dimension2D valueSituationsElementOtherVehicleStateObjectStateDimension; 447 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateObjectStateDimensionLength(-1e9); 448 : : valueSituationsElementOtherVehicleStateObjectStateDimension.length 449 : 9 : = valueSituationsElementOtherVehicleStateObjectStateDimensionLength; 450 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateObjectStateDimensionWidth(-1e9); 451 : : valueSituationsElementOtherVehicleStateObjectStateDimension.width 452 : 9 : = valueSituationsElementOtherVehicleStateObjectStateDimensionWidth; 453 : : valueSituationsElementOtherVehicleStateObjectState.dimension 454 : 9 : = valueSituationsElementOtherVehicleStateObjectStateDimension; 455 : 9 : ::ad::physics::AngularVelocity valueSituationsElementOtherVehicleStateObjectStateYawRate(-100.); 456 : : valueSituationsElementOtherVehicleStateObjectState.yawRate 457 : 9 : = valueSituationsElementOtherVehicleStateObjectStateYawRate; 458 : 9 : ::ad::physics::Distance2D valueSituationsElementOtherVehicleStateObjectStateCenterPoint; 459 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateObjectStateCenterPointX(-1e9); 460 : : valueSituationsElementOtherVehicleStateObjectStateCenterPoint.x 461 : 9 : = valueSituationsElementOtherVehicleStateObjectStateCenterPointX; 462 : 9 : ::ad::physics::Distance valueSituationsElementOtherVehicleStateObjectStateCenterPointY(-1e9); 463 : : valueSituationsElementOtherVehicleStateObjectStateCenterPoint.y 464 : 9 : = valueSituationsElementOtherVehicleStateObjectStateCenterPointY; 465 : : valueSituationsElementOtherVehicleStateObjectState.centerPoint 466 : 9 : = valueSituationsElementOtherVehicleStateObjectStateCenterPoint; 467 : 9 : ::ad::physics::Speed valueSituationsElementOtherVehicleStateObjectStateSpeed(-100.); 468 : 9 : valueSituationsElementOtherVehicleStateObjectState.speed = valueSituationsElementOtherVehicleStateObjectStateSpeed; 469 : 9 : ::ad::physics::Angle valueSituationsElementOtherVehicleStateObjectStateSteeringAngle(-6.283185308); 470 : : valueSituationsElementOtherVehicleStateObjectState.steeringAngle 471 : 9 : = valueSituationsElementOtherVehicleStateObjectStateSteeringAngle; 472 : 9 : valueSituationsElementOtherVehicleState.objectState = valueSituationsElementOtherVehicleStateObjectState; 473 : : valueSituationsElementOtherVehicleState.distanceToLeaveIntersection 474 : 9 : = valueSituationsElementOtherVehicleState.distanceToEnterIntersection; 475 : : valueSituationsElementOtherVehicleState.distanceToEnterIntersection 476 : 9 : = valueSituationsElementOtherVehicleState.distanceToLeaveIntersection; 477 : 9 : valueSituationsElement.otherVehicleState = valueSituationsElementOtherVehicleState; 478 : 9 : ::ad::rss::situation::RelativePosition valueSituationsElementRelativePosition; 479 : 9 : ::ad::rss::situation::LongitudinalRelativePosition valueSituationsElementRelativePositionLongitudinalPosition( 480 : : ::ad::rss::situation::LongitudinalRelativePosition::InFront); 481 : : valueSituationsElementRelativePosition.longitudinalPosition 482 : 9 : = valueSituationsElementRelativePositionLongitudinalPosition; 483 : 9 : ::ad::physics::Distance valueSituationsElementRelativePositionLongitudinalDistance(-1e9); 484 : : valueSituationsElementRelativePosition.longitudinalDistance 485 : 9 : = valueSituationsElementRelativePositionLongitudinalDistance; 486 : 9 : ::ad::rss::situation::LateralRelativePosition valueSituationsElementRelativePositionLateralPosition( 487 : : ::ad::rss::situation::LateralRelativePosition::AtLeft); 488 : 9 : valueSituationsElementRelativePosition.lateralPosition = valueSituationsElementRelativePositionLateralPosition; 489 : 9 : ::ad::physics::Distance valueSituationsElementRelativePositionLateralDistance(-1e9); 490 : 9 : valueSituationsElementRelativePosition.lateralDistance = valueSituationsElementRelativePositionLateralDistance; 491 : 9 : valueSituationsElement.relativePosition = valueSituationsElementRelativePosition; 492 [ + - ]: 9 : valueSituations.resize(1, valueSituationsElement); 493 [ + - ]: 9 : value.situations = valueSituations; 494 [ + - ]: 9 : mValue = value; 495 : 9 : } 496 : : 497 : : ::ad::rss::situation::SituationSnapshot mValue; 498 : : }; 499 : : 500 : 2 : TEST_F(SituationSnapshotTests, copyConstruction) 501 : : { 502 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot value(mValue); 503 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 504 : 1 : } 505 : : 506 : 2 : TEST_F(SituationSnapshotTests, moveConstruction) 507 : : { 508 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot tmpValue(mValue); 509 : 2 : ::ad::rss::situation::SituationSnapshot value(std::move(tmpValue)); 510 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 511 : 1 : } 512 : : 513 : 2 : TEST_F(SituationSnapshotTests, copyAssignment) 514 : : { 515 : 2 : ::ad::rss::situation::SituationSnapshot value; 516 [ + - ]: 1 : value = mValue; 517 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 518 : 1 : } 519 : : 520 : 2 : TEST_F(SituationSnapshotTests, moveAssignment) 521 : : { 522 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot tmpValue(mValue); 523 : 2 : ::ad::rss::situation::SituationSnapshot value; 524 : 1 : value = std::move(tmpValue); 525 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 526 : 1 : } 527 : : 528 : 2 : TEST_F(SituationSnapshotTests, comparisonOperatorEqual) 529 : : { 530 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueA = mValue; 531 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueB = mValue; 532 : : 533 [ + - - + : 1 : EXPECT_TRUE(valueA == valueB); - - - - - - - - ] 534 [ + - - + : 1 : EXPECT_FALSE(valueA != valueB); - - - - - - - - ] 535 : 1 : } 536 : : 537 : 2 : TEST_F(SituationSnapshotTests, stringConversionTest) 538 : : { 539 [ + - ]: 1 : std::stringstream stream; 540 [ + - ]: 1 : stream << mValue; 541 [ + - ]: 1 : std::string ostreamStr = stream.str(); 542 [ + - ]: 1 : std::string toStr = std::to_string(mValue); 543 [ + - - + : 1 : ASSERT_EQ(ostreamStr, toStr); - - - - - - ] 544 : : } 545 : : 546 : 2 : TEST_F(SituationSnapshotTests, comparisonOperatorTimeIndexDiffers) 547 : : { 548 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueA = mValue; 549 : 1 : ::ad::rss::world::TimeIndex timeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::max()); 550 : 1 : valueA.timeIndex = timeIndex; 551 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueB = mValue; 552 : : 553 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 554 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 555 : 1 : } 556 : : 557 : 2 : TEST_F(SituationSnapshotTests, comparisonOperatorDefaultEgoVehicleRssDynamicsDiffers) 558 : : { 559 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueA = mValue; 560 : 1 : ::ad::rss::world::RssDynamics defaultEgoVehicleRssDynamics; 561 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues defaultEgoVehicleRssDynamicsAlphaLon; 562 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonAccelMax(1e2); 563 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.accelMax = defaultEgoVehicleRssDynamicsAlphaLonAccelMax; 564 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMax(1e2); 565 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMax = defaultEgoVehicleRssDynamicsAlphaLonBrakeMax; 566 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMin(1e2); 567 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLonBrakeMin; 568 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(1e2); 569 : : defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect 570 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 571 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 572 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = defaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 573 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLon.brakeMax; 574 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMax = defaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 575 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 576 : 1 : defaultEgoVehicleRssDynamics.alphaLon = defaultEgoVehicleRssDynamicsAlphaLon; 577 : 1 : ::ad::rss::world::LateralRssAccelerationValues defaultEgoVehicleRssDynamicsAlphaLat; 578 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLatAccelMax(1e2); 579 : 1 : defaultEgoVehicleRssDynamicsAlphaLat.accelMax = defaultEgoVehicleRssDynamicsAlphaLatAccelMax; 580 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLatBrakeMin(1e2); 581 : : defaultEgoVehicleRssDynamicsAlphaLatBrakeMin 582 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 583 : 1 : defaultEgoVehicleRssDynamicsAlphaLat.brakeMin = defaultEgoVehicleRssDynamicsAlphaLatBrakeMin; 584 : 1 : defaultEgoVehicleRssDynamics.alphaLat = defaultEgoVehicleRssDynamicsAlphaLat; 585 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsLateralFluctuationMargin(1e9); 586 : 1 : defaultEgoVehicleRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(1.); // set to valid value within 587 : : // struct 588 : 1 : defaultEgoVehicleRssDynamics.lateralFluctuationMargin = defaultEgoVehicleRssDynamicsLateralFluctuationMargin; 589 : 1 : ::ad::physics::Duration defaultEgoVehicleRssDynamicsResponseTime(1e6); 590 : 1 : defaultEgoVehicleRssDynamicsResponseTime = ::ad::physics::Duration(10.); // set to valid value within struct 591 : 1 : defaultEgoVehicleRssDynamics.responseTime = defaultEgoVehicleRssDynamicsResponseTime; 592 : 1 : ::ad::physics::Speed defaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration(100.); 593 : 1 : defaultEgoVehicleRssDynamics.maxSpeedOnAcceleration = defaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 594 : 1 : ::ad::rss::world::UnstructuredSettings defaultEgoVehicleRssDynamicsUnstructuredSettings; 595 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 596 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 597 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 598 : 1 : ::ad::physics::Angle defaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 599 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 600 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 601 : 1 : ::ad::physics::AngularAcceleration defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(1e2); 602 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 603 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 604 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 605 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 606 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 607 : 1 : ::ad::physics::Duration defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(1e6); 608 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 609 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 610 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 611 : : std::numeric_limits<uint32_t>::max()}; 612 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 613 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 614 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 615 : : std::numeric_limits<uint32_t>::max()}; 616 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 617 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 618 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 619 : : std::numeric_limits<uint32_t>::max()}; 620 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 621 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 622 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 623 : : std::numeric_limits<uint32_t>::max()}; 624 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 625 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 626 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 627 : : std::numeric_limits<uint32_t>::max()}; 628 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 629 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 630 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 631 : : std::numeric_limits<uint32_t>::max()}; 632 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 633 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 634 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 635 : : std::numeric_limits<uint32_t>::max()}; 636 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 637 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 638 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 639 : : std::numeric_limits<uint32_t>::max()}; 640 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 641 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 642 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 643 : : std::numeric_limits<uint32_t>::max()}; 644 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 645 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 646 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 647 : : std::numeric_limits<uint32_t>::max()}; 648 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 649 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 650 : 1 : defaultEgoVehicleRssDynamics.unstructuredSettings = defaultEgoVehicleRssDynamicsUnstructuredSettings; 651 : 1 : valueA.defaultEgoVehicleRssDynamics = defaultEgoVehicleRssDynamics; 652 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueB = mValue; 653 : : 654 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 655 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 656 : 1 : } 657 : : 658 : 2 : TEST_F(SituationSnapshotTests, comparisonOperatorSituationsDiffers) 659 : : { 660 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueA = mValue; 661 : 2 : ::ad::rss::situation::SituationVector situations; 662 : 1 : ::ad::rss::situation::Situation situationsElement; 663 : 1 : ::ad::rss::situation::SituationId situationsElementSituationId( 664 : : std::numeric_limits<::ad::rss::situation::SituationId>::max()); 665 : 1 : situationsElement.situationId = situationsElementSituationId; 666 : 1 : ::ad::rss::world::ObjectId situationsElementObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::max()); 667 : 1 : situationsElement.objectId = situationsElementObjectId; 668 : 1 : ::ad::rss::situation::SituationType situationsElementSituationType(::ad::rss::situation::SituationType::Unstructured); 669 : 1 : situationsElement.situationType = situationsElementSituationType; 670 : 1 : ::ad::rss::situation::VehicleState situationsElementEgoVehicleState; 671 : 1 : ::ad::rss::situation::VelocityRange situationsElementEgoVehicleStateVelocity; 672 : 1 : ::ad::physics::SpeedRange situationsElementEgoVehicleStateVelocitySpeedLon; 673 : 1 : ::ad::physics::Speed situationsElementEgoVehicleStateVelocitySpeedLonMinimum(100.); 674 : 1 : situationsElementEgoVehicleStateVelocitySpeedLon.minimum = situationsElementEgoVehicleStateVelocitySpeedLonMinimum; 675 : 1 : ::ad::physics::Speed situationsElementEgoVehicleStateVelocitySpeedLonMaximum(100.); 676 : 1 : situationsElementEgoVehicleStateVelocitySpeedLon.maximum = situationsElementEgoVehicleStateVelocitySpeedLonMaximum; 677 : 1 : situationsElementEgoVehicleStateVelocitySpeedLon.maximum = situationsElementEgoVehicleStateVelocitySpeedLon.minimum; 678 : 1 : situationsElementEgoVehicleStateVelocitySpeedLon.minimum = situationsElementEgoVehicleStateVelocitySpeedLon.maximum; 679 : 1 : situationsElementEgoVehicleStateVelocity.speedLon = situationsElementEgoVehicleStateVelocitySpeedLon; 680 : 1 : ::ad::physics::SpeedRange situationsElementEgoVehicleStateVelocitySpeedLat; 681 : 1 : ::ad::physics::Speed situationsElementEgoVehicleStateVelocitySpeedLatMinimum(100.); 682 : 1 : situationsElementEgoVehicleStateVelocitySpeedLat.minimum = situationsElementEgoVehicleStateVelocitySpeedLatMinimum; 683 : 1 : ::ad::physics::Speed situationsElementEgoVehicleStateVelocitySpeedLatMaximum(100.); 684 : 1 : situationsElementEgoVehicleStateVelocitySpeedLat.maximum = situationsElementEgoVehicleStateVelocitySpeedLatMaximum; 685 : 1 : situationsElementEgoVehicleStateVelocitySpeedLat.maximum = situationsElementEgoVehicleStateVelocitySpeedLat.minimum; 686 : 1 : situationsElementEgoVehicleStateVelocitySpeedLat.minimum = situationsElementEgoVehicleStateVelocitySpeedLat.maximum; 687 : 1 : situationsElementEgoVehicleStateVelocity.speedLat = situationsElementEgoVehicleStateVelocitySpeedLat; 688 : 1 : situationsElementEgoVehicleState.velocity = situationsElementEgoVehicleStateVelocity; 689 : 1 : ::ad::rss::world::RssDynamics situationsElementEgoVehicleStateDynamics; 690 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues situationsElementEgoVehicleStateDynamicsAlphaLon; 691 : 1 : ::ad::physics::Acceleration situationsElementEgoVehicleStateDynamicsAlphaLonAccelMax(1e2); 692 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLon.accelMax = situationsElementEgoVehicleStateDynamicsAlphaLonAccelMax; 693 : 1 : ::ad::physics::Acceleration situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMax(1e2); 694 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMax = situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMax; 695 : 1 : ::ad::physics::Acceleration situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMin(1e2); 696 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin = situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMin; 697 : 1 : ::ad::physics::Acceleration situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect(1e2); 698 : : situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect 699 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 700 : : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect 701 : 1 : = situationsElementEgoVehicleStateDynamicsAlphaLonBrakeMinCorrect; 702 : : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect 703 : 1 : = situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin; 704 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin = situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMax; 705 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMax = situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin; 706 : : situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMin 707 : 1 : = situationsElementEgoVehicleStateDynamicsAlphaLon.brakeMinCorrect; 708 : 1 : situationsElementEgoVehicleStateDynamics.alphaLon = situationsElementEgoVehicleStateDynamicsAlphaLon; 709 : 1 : ::ad::rss::world::LateralRssAccelerationValues situationsElementEgoVehicleStateDynamicsAlphaLat; 710 : 1 : ::ad::physics::Acceleration situationsElementEgoVehicleStateDynamicsAlphaLatAccelMax(1e2); 711 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLat.accelMax = situationsElementEgoVehicleStateDynamicsAlphaLatAccelMax; 712 : 1 : ::ad::physics::Acceleration situationsElementEgoVehicleStateDynamicsAlphaLatBrakeMin(1e2); 713 : : situationsElementEgoVehicleStateDynamicsAlphaLatBrakeMin 714 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 715 : 1 : situationsElementEgoVehicleStateDynamicsAlphaLat.brakeMin = situationsElementEgoVehicleStateDynamicsAlphaLatBrakeMin; 716 : 1 : situationsElementEgoVehicleStateDynamics.alphaLat = situationsElementEgoVehicleStateDynamicsAlphaLat; 717 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateDynamicsLateralFluctuationMargin(1e9); 718 : : situationsElementEgoVehicleStateDynamicsLateralFluctuationMargin 719 : 1 : = ::ad::physics::Distance(1.); // set to valid value within struct 720 : : situationsElementEgoVehicleStateDynamics.lateralFluctuationMargin 721 : 1 : = situationsElementEgoVehicleStateDynamicsLateralFluctuationMargin; 722 : 1 : ::ad::physics::Duration situationsElementEgoVehicleStateDynamicsResponseTime(1e6); 723 : : situationsElementEgoVehicleStateDynamicsResponseTime 724 : 1 : = ::ad::physics::Duration(10.); // set to valid value within struct 725 : 1 : situationsElementEgoVehicleStateDynamics.responseTime = situationsElementEgoVehicleStateDynamicsResponseTime; 726 : 1 : ::ad::physics::Speed situationsElementEgoVehicleStateDynamicsMaxSpeedOnAcceleration(100.); 727 : : situationsElementEgoVehicleStateDynamics.maxSpeedOnAcceleration 728 : 1 : = situationsElementEgoVehicleStateDynamicsMaxSpeedOnAcceleration; 729 : 1 : ::ad::rss::world::UnstructuredSettings situationsElementEgoVehicleStateDynamicsUnstructuredSettings; 730 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 731 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 732 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 733 : 1 : ::ad::physics::Angle situationsElementEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 734 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 735 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 736 : : ::ad::physics::AngularAcceleration situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange( 737 : 1 : 1e2); 738 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 739 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 740 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 741 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 742 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 743 : : ::ad::physics::Duration situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep( 744 : 1 : 1e6); 745 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 746 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 747 : 1 : uint32_t situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 748 : : std::numeric_limits<uint32_t>::max()}; 749 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 750 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 751 : 1 : uint32_t situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 752 : : std::numeric_limits<uint32_t>::max()}; 753 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 754 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 755 : 1 : uint32_t situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 756 : : std::numeric_limits<uint32_t>::max()}; 757 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 758 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 759 : : uint32_t 760 : 1 : situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 761 : : std::numeric_limits<uint32_t>::max()}; 762 : : situationsElementEgoVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 763 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 764 : : situationsElementEgoVehicleStateDynamics.unstructuredSettings 765 : 1 : = situationsElementEgoVehicleStateDynamicsUnstructuredSettings; 766 : 1 : situationsElementEgoVehicleState.dynamics = situationsElementEgoVehicleStateDynamics; 767 : 1 : bool situationsElementEgoVehicleStateHasPriority{false}; 768 : 1 : situationsElementEgoVehicleState.hasPriority = situationsElementEgoVehicleStateHasPriority; 769 : 1 : bool situationsElementEgoVehicleStateIsInCorrectLane{false}; 770 : 1 : situationsElementEgoVehicleState.isInCorrectLane = situationsElementEgoVehicleStateIsInCorrectLane; 771 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateDistanceToEnterIntersection(1e9); 772 : : situationsElementEgoVehicleState.distanceToEnterIntersection 773 : 1 : = situationsElementEgoVehicleStateDistanceToEnterIntersection; 774 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateDistanceToLeaveIntersection(1e9); 775 : : situationsElementEgoVehicleStateDistanceToLeaveIntersection 776 : 1 : = ::ad::physics::Distance(1e4); // set to valid value within struct 777 : : situationsElementEgoVehicleState.distanceToLeaveIntersection 778 : 1 : = situationsElementEgoVehicleStateDistanceToLeaveIntersection; 779 : 1 : ::ad::rss::world::ObjectType situationsElementEgoVehicleStateObjectType( 780 : : ::ad::rss::world::ObjectType::ArtificialObject); 781 : 1 : situationsElementEgoVehicleState.objectType = situationsElementEgoVehicleStateObjectType; 782 : 1 : ::ad::rss::world::ObjectState situationsElementEgoVehicleStateObjectState; 783 : 1 : ::ad::physics::Angle situationsElementEgoVehicleStateObjectStateYaw(6.283185308); 784 : 1 : situationsElementEgoVehicleStateObjectState.yaw = situationsElementEgoVehicleStateObjectStateYaw; 785 : 1 : ::ad::physics::Dimension2D situationsElementEgoVehicleStateObjectStateDimension; 786 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateObjectStateDimensionLength(1e9); 787 : : situationsElementEgoVehicleStateObjectStateDimension.length 788 : 1 : = situationsElementEgoVehicleStateObjectStateDimensionLength; 789 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateObjectStateDimensionWidth(1e9); 790 : : situationsElementEgoVehicleStateObjectStateDimension.width 791 : 1 : = situationsElementEgoVehicleStateObjectStateDimensionWidth; 792 : 1 : situationsElementEgoVehicleStateObjectState.dimension = situationsElementEgoVehicleStateObjectStateDimension; 793 : 1 : ::ad::physics::AngularVelocity situationsElementEgoVehicleStateObjectStateYawRate(100.); 794 : 1 : situationsElementEgoVehicleStateObjectState.yawRate = situationsElementEgoVehicleStateObjectStateYawRate; 795 : 1 : ::ad::physics::Distance2D situationsElementEgoVehicleStateObjectStateCenterPoint; 796 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateObjectStateCenterPointX(1e9); 797 : 1 : situationsElementEgoVehicleStateObjectStateCenterPoint.x = situationsElementEgoVehicleStateObjectStateCenterPointX; 798 : 1 : ::ad::physics::Distance situationsElementEgoVehicleStateObjectStateCenterPointY(1e9); 799 : 1 : situationsElementEgoVehicleStateObjectStateCenterPoint.y = situationsElementEgoVehicleStateObjectStateCenterPointY; 800 : 1 : situationsElementEgoVehicleStateObjectState.centerPoint = situationsElementEgoVehicleStateObjectStateCenterPoint; 801 : 1 : ::ad::physics::Speed situationsElementEgoVehicleStateObjectStateSpeed(100.); 802 : 1 : situationsElementEgoVehicleStateObjectState.speed = situationsElementEgoVehicleStateObjectStateSpeed; 803 : 1 : ::ad::physics::Angle situationsElementEgoVehicleStateObjectStateSteeringAngle(6.283185308); 804 : 1 : situationsElementEgoVehicleStateObjectState.steeringAngle = situationsElementEgoVehicleStateObjectStateSteeringAngle; 805 : 1 : situationsElementEgoVehicleState.objectState = situationsElementEgoVehicleStateObjectState; 806 : : situationsElementEgoVehicleState.distanceToLeaveIntersection 807 : 1 : = situationsElementEgoVehicleState.distanceToEnterIntersection; 808 : : situationsElementEgoVehicleState.distanceToEnterIntersection 809 : 1 : = situationsElementEgoVehicleState.distanceToLeaveIntersection; 810 : 1 : situationsElement.egoVehicleState = situationsElementEgoVehicleState; 811 : 1 : ::ad::rss::situation::VehicleState situationsElementOtherVehicleState; 812 : 1 : ::ad::rss::situation::VelocityRange situationsElementOtherVehicleStateVelocity; 813 : 1 : ::ad::physics::SpeedRange situationsElementOtherVehicleStateVelocitySpeedLon; 814 : 1 : ::ad::physics::Speed situationsElementOtherVehicleStateVelocitySpeedLonMinimum(100.); 815 : : situationsElementOtherVehicleStateVelocitySpeedLon.minimum 816 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLonMinimum; 817 : 1 : ::ad::physics::Speed situationsElementOtherVehicleStateVelocitySpeedLonMaximum(100.); 818 : : situationsElementOtherVehicleStateVelocitySpeedLon.maximum 819 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLonMaximum; 820 : : situationsElementOtherVehicleStateVelocitySpeedLon.maximum 821 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLon.minimum; 822 : : situationsElementOtherVehicleStateVelocitySpeedLon.minimum 823 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLon.maximum; 824 : 1 : situationsElementOtherVehicleStateVelocity.speedLon = situationsElementOtherVehicleStateVelocitySpeedLon; 825 : 1 : ::ad::physics::SpeedRange situationsElementOtherVehicleStateVelocitySpeedLat; 826 : 1 : ::ad::physics::Speed situationsElementOtherVehicleStateVelocitySpeedLatMinimum(100.); 827 : : situationsElementOtherVehicleStateVelocitySpeedLat.minimum 828 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLatMinimum; 829 : 1 : ::ad::physics::Speed situationsElementOtherVehicleStateVelocitySpeedLatMaximum(100.); 830 : : situationsElementOtherVehicleStateVelocitySpeedLat.maximum 831 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLatMaximum; 832 : : situationsElementOtherVehicleStateVelocitySpeedLat.maximum 833 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLat.minimum; 834 : : situationsElementOtherVehicleStateVelocitySpeedLat.minimum 835 : 1 : = situationsElementOtherVehicleStateVelocitySpeedLat.maximum; 836 : 1 : situationsElementOtherVehicleStateVelocity.speedLat = situationsElementOtherVehicleStateVelocitySpeedLat; 837 : 1 : situationsElementOtherVehicleState.velocity = situationsElementOtherVehicleStateVelocity; 838 : 1 : ::ad::rss::world::RssDynamics situationsElementOtherVehicleStateDynamics; 839 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues situationsElementOtherVehicleStateDynamicsAlphaLon; 840 : 1 : ::ad::physics::Acceleration situationsElementOtherVehicleStateDynamicsAlphaLonAccelMax(1e2); 841 : : situationsElementOtherVehicleStateDynamicsAlphaLon.accelMax 842 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLonAccelMax; 843 : 1 : ::ad::physics::Acceleration situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMax(1e2); 844 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMax 845 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMax; 846 : 1 : ::ad::physics::Acceleration situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMin(1e2); 847 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin 848 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMin; 849 : 1 : ::ad::physics::Acceleration situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect(1e2); 850 : : situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect 851 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 852 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect 853 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLonBrakeMinCorrect; 854 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect 855 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin; 856 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin 857 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMax; 858 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMax 859 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin; 860 : : situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMin 861 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLon.brakeMinCorrect; 862 : 1 : situationsElementOtherVehicleStateDynamics.alphaLon = situationsElementOtherVehicleStateDynamicsAlphaLon; 863 : 1 : ::ad::rss::world::LateralRssAccelerationValues situationsElementOtherVehicleStateDynamicsAlphaLat; 864 : 1 : ::ad::physics::Acceleration situationsElementOtherVehicleStateDynamicsAlphaLatAccelMax(1e2); 865 : : situationsElementOtherVehicleStateDynamicsAlphaLat.accelMax 866 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLatAccelMax; 867 : 1 : ::ad::physics::Acceleration situationsElementOtherVehicleStateDynamicsAlphaLatBrakeMin(1e2); 868 : : situationsElementOtherVehicleStateDynamicsAlphaLatBrakeMin 869 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 870 : : situationsElementOtherVehicleStateDynamicsAlphaLat.brakeMin 871 : 1 : = situationsElementOtherVehicleStateDynamicsAlphaLatBrakeMin; 872 : 1 : situationsElementOtherVehicleStateDynamics.alphaLat = situationsElementOtherVehicleStateDynamicsAlphaLat; 873 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateDynamicsLateralFluctuationMargin(1e9); 874 : : situationsElementOtherVehicleStateDynamicsLateralFluctuationMargin 875 : 1 : = ::ad::physics::Distance(1.); // set to valid value within struct 876 : : situationsElementOtherVehicleStateDynamics.lateralFluctuationMargin 877 : 1 : = situationsElementOtherVehicleStateDynamicsLateralFluctuationMargin; 878 : 1 : ::ad::physics::Duration situationsElementOtherVehicleStateDynamicsResponseTime(1e6); 879 : : situationsElementOtherVehicleStateDynamicsResponseTime 880 : 1 : = ::ad::physics::Duration(10.); // set to valid value within struct 881 : 1 : situationsElementOtherVehicleStateDynamics.responseTime = situationsElementOtherVehicleStateDynamicsResponseTime; 882 : 1 : ::ad::physics::Speed situationsElementOtherVehicleStateDynamicsMaxSpeedOnAcceleration(100.); 883 : : situationsElementOtherVehicleStateDynamics.maxSpeedOnAcceleration 884 : 1 : = situationsElementOtherVehicleStateDynamicsMaxSpeedOnAcceleration; 885 : 1 : ::ad::rss::world::UnstructuredSettings situationsElementOtherVehicleStateDynamicsUnstructuredSettings; 886 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 887 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.pedestrianTurningRadius 888 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsPedestrianTurningRadius; 889 : 1 : ::ad::physics::Angle situationsElementOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 890 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.driveAwayMaxAngle 891 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsDriveAwayMaxAngle; 892 : : ::ad::physics::AngularAcceleration situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange( 893 : 1 : 1e2); 894 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleYawRateChange 895 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleYawRateChange; 896 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 897 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleMinRadius 898 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleMinRadius; 899 : : ::ad::physics::Duration 900 : 1 : situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(1e6); 901 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 902 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 903 : : uint32_t 904 : 1 : situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 905 : : std::numeric_limits<uint32_t>::max()}; 906 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 907 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 908 : 1 : uint32_t situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 909 : : std::numeric_limits<uint32_t>::max()}; 910 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 911 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 912 : 1 : uint32_t situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 913 : : std::numeric_limits<uint32_t>::max()}; 914 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 915 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 916 : : uint32_t 917 : 1 : situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 918 : : std::numeric_limits<uint32_t>::max()}; 919 : : situationsElementOtherVehicleStateDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 920 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 921 : : situationsElementOtherVehicleStateDynamics.unstructuredSettings 922 : 1 : = situationsElementOtherVehicleStateDynamicsUnstructuredSettings; 923 : 1 : situationsElementOtherVehicleState.dynamics = situationsElementOtherVehicleStateDynamics; 924 : 1 : bool situationsElementOtherVehicleStateHasPriority{false}; 925 : 1 : situationsElementOtherVehicleState.hasPriority = situationsElementOtherVehicleStateHasPriority; 926 : 1 : bool situationsElementOtherVehicleStateIsInCorrectLane{false}; 927 : 1 : situationsElementOtherVehicleState.isInCorrectLane = situationsElementOtherVehicleStateIsInCorrectLane; 928 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateDistanceToEnterIntersection(1e9); 929 : : situationsElementOtherVehicleState.distanceToEnterIntersection 930 : 1 : = situationsElementOtherVehicleStateDistanceToEnterIntersection; 931 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateDistanceToLeaveIntersection(1e9); 932 : : situationsElementOtherVehicleStateDistanceToLeaveIntersection 933 : 1 : = ::ad::physics::Distance(1e4); // set to valid value within struct 934 : : situationsElementOtherVehicleState.distanceToLeaveIntersection 935 : 1 : = situationsElementOtherVehicleStateDistanceToLeaveIntersection; 936 : 1 : ::ad::rss::world::ObjectType situationsElementOtherVehicleStateObjectType( 937 : : ::ad::rss::world::ObjectType::ArtificialObject); 938 : 1 : situationsElementOtherVehicleState.objectType = situationsElementOtherVehicleStateObjectType; 939 : 1 : ::ad::rss::world::ObjectState situationsElementOtherVehicleStateObjectState; 940 : 1 : ::ad::physics::Angle situationsElementOtherVehicleStateObjectStateYaw(6.283185308); 941 : 1 : situationsElementOtherVehicleStateObjectState.yaw = situationsElementOtherVehicleStateObjectStateYaw; 942 : 1 : ::ad::physics::Dimension2D situationsElementOtherVehicleStateObjectStateDimension; 943 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateObjectStateDimensionLength(1e9); 944 : : situationsElementOtherVehicleStateObjectStateDimension.length 945 : 1 : = situationsElementOtherVehicleStateObjectStateDimensionLength; 946 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateObjectStateDimensionWidth(1e9); 947 : : situationsElementOtherVehicleStateObjectStateDimension.width 948 : 1 : = situationsElementOtherVehicleStateObjectStateDimensionWidth; 949 : 1 : situationsElementOtherVehicleStateObjectState.dimension = situationsElementOtherVehicleStateObjectStateDimension; 950 : 1 : ::ad::physics::AngularVelocity situationsElementOtherVehicleStateObjectStateYawRate(100.); 951 : 1 : situationsElementOtherVehicleStateObjectState.yawRate = situationsElementOtherVehicleStateObjectStateYawRate; 952 : 1 : ::ad::physics::Distance2D situationsElementOtherVehicleStateObjectStateCenterPoint; 953 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateObjectStateCenterPointX(1e9); 954 : : situationsElementOtherVehicleStateObjectStateCenterPoint.x 955 : 1 : = situationsElementOtherVehicleStateObjectStateCenterPointX; 956 : 1 : ::ad::physics::Distance situationsElementOtherVehicleStateObjectStateCenterPointY(1e9); 957 : : situationsElementOtherVehicleStateObjectStateCenterPoint.y 958 : 1 : = situationsElementOtherVehicleStateObjectStateCenterPointY; 959 : 1 : situationsElementOtherVehicleStateObjectState.centerPoint = situationsElementOtherVehicleStateObjectStateCenterPoint; 960 : 1 : ::ad::physics::Speed situationsElementOtherVehicleStateObjectStateSpeed(100.); 961 : 1 : situationsElementOtherVehicleStateObjectState.speed = situationsElementOtherVehicleStateObjectStateSpeed; 962 : 1 : ::ad::physics::Angle situationsElementOtherVehicleStateObjectStateSteeringAngle(6.283185308); 963 : : situationsElementOtherVehicleStateObjectState.steeringAngle 964 : 1 : = situationsElementOtherVehicleStateObjectStateSteeringAngle; 965 : 1 : situationsElementOtherVehicleState.objectState = situationsElementOtherVehicleStateObjectState; 966 : : situationsElementOtherVehicleState.distanceToLeaveIntersection 967 : 1 : = situationsElementOtherVehicleState.distanceToEnterIntersection; 968 : : situationsElementOtherVehicleState.distanceToEnterIntersection 969 : 1 : = situationsElementOtherVehicleState.distanceToLeaveIntersection; 970 : 1 : situationsElement.otherVehicleState = situationsElementOtherVehicleState; 971 : 1 : ::ad::rss::situation::RelativePosition situationsElementRelativePosition; 972 : 1 : ::ad::rss::situation::LongitudinalRelativePosition situationsElementRelativePositionLongitudinalPosition( 973 : : ::ad::rss::situation::LongitudinalRelativePosition::AtBack); 974 : 1 : situationsElementRelativePosition.longitudinalPosition = situationsElementRelativePositionLongitudinalPosition; 975 : 1 : ::ad::physics::Distance situationsElementRelativePositionLongitudinalDistance(1e9); 976 : 1 : situationsElementRelativePosition.longitudinalDistance = situationsElementRelativePositionLongitudinalDistance; 977 : 1 : ::ad::rss::situation::LateralRelativePosition situationsElementRelativePositionLateralPosition( 978 : : ::ad::rss::situation::LateralRelativePosition::AtRight); 979 : 1 : situationsElementRelativePosition.lateralPosition = situationsElementRelativePositionLateralPosition; 980 : 1 : ::ad::physics::Distance situationsElementRelativePositionLateralDistance(1e9); 981 : 1 : situationsElementRelativePosition.lateralDistance = situationsElementRelativePositionLateralDistance; 982 : 1 : situationsElement.relativePosition = situationsElementRelativePosition; 983 [ + - ]: 1 : situations.resize(0 + 1, situationsElement); 984 [ + - ]: 1 : valueA.situations = situations; 985 [ + - ]: 2 : ::ad::rss::situation::SituationSnapshot valueB = mValue; 986 : : 987 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 988 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 989 : 1 : } 990 : : 991 : : #if defined(__clang__) && (__clang_major__ >= 7) 992 : : #pragma GCC diagnostic pop 993 : : #endif