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/state/RssStateSnapshot.hpp" 23 : : 24 : : class RssStateSnapshotTests : public testing::Test 25 : : { 26 : : protected: 27 : 10 : virtual void SetUp() override 28 : : { 29 : : // valid initialization 30 : 20 : ::ad::rss::state::RssStateSnapshot value; 31 : 10 : ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest()); 32 : 10 : valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct 33 : 10 : value.timeIndex = valueTimeIndex; 34 : 10 : ::ad::rss::world::RssDynamics valueDefaultEgoVehicleRssDynamics; 35 : 10 : ::ad::rss::world::LongitudinalRssAccelerationValues valueDefaultEgoVehicleRssDynamicsAlphaLon; 36 : 10 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonAccelMax(-1e2); 37 : : valueDefaultEgoVehicleRssDynamicsAlphaLonAccelMax 38 : 10 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 39 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.accelMax = valueDefaultEgoVehicleRssDynamicsAlphaLonAccelMax; 40 : 10 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMax(-1e2); 41 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMax = valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMax; 42 : 10 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMin(-1e2); 43 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMin; 44 : 10 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(-1e2); 45 : : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect 46 : 10 : = valueDefaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 47 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMax; 48 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 49 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 50 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMax = valueDefaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 51 : 10 : valueDefaultEgoVehicleRssDynamics.alphaLon = valueDefaultEgoVehicleRssDynamicsAlphaLon; 52 : 10 : ::ad::rss::world::LateralRssAccelerationValues valueDefaultEgoVehicleRssDynamicsAlphaLat; 53 : 10 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLatAccelMax(-1e2); 54 : : valueDefaultEgoVehicleRssDynamicsAlphaLatAccelMax 55 : 10 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 56 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLat.accelMax = valueDefaultEgoVehicleRssDynamicsAlphaLatAccelMax; 57 : 10 : ::ad::physics::Acceleration valueDefaultEgoVehicleRssDynamicsAlphaLatBrakeMin(-1e2); 58 : 10 : valueDefaultEgoVehicleRssDynamicsAlphaLat.brakeMin = valueDefaultEgoVehicleRssDynamicsAlphaLatBrakeMin; 59 : 10 : valueDefaultEgoVehicleRssDynamics.alphaLat = valueDefaultEgoVehicleRssDynamicsAlphaLat; 60 : 10 : ::ad::physics::Distance valueDefaultEgoVehicleRssDynamicsLateralFluctuationMargin(-1e9); 61 : : valueDefaultEgoVehicleRssDynamicsLateralFluctuationMargin 62 : 10 : = ::ad::physics::Distance(0.); // set to valid value within struct 63 : : valueDefaultEgoVehicleRssDynamics.lateralFluctuationMargin 64 : 10 : = valueDefaultEgoVehicleRssDynamicsLateralFluctuationMargin; 65 : 10 : ::ad::physics::Duration valueDefaultEgoVehicleRssDynamicsResponseTime(0.); 66 : : valueDefaultEgoVehicleRssDynamicsResponseTime 67 : 10 : = ::ad::physics::Duration(0. + ::ad::physics::Duration::cPrecisionValue); // set to valid value within struct 68 : 10 : valueDefaultEgoVehicleRssDynamics.responseTime = valueDefaultEgoVehicleRssDynamicsResponseTime; 69 : 10 : ::ad::physics::Speed valueDefaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration(-100.); 70 : 10 : valueDefaultEgoVehicleRssDynamics.maxSpeedOnAcceleration = valueDefaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 71 : 10 : ::ad::rss::world::UnstructuredSettings valueDefaultEgoVehicleRssDynamicsUnstructuredSettings; 72 : 10 : ::ad::physics::Distance valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(-1e9); 73 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 74 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 75 : 10 : ::ad::physics::Angle valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(-6.283185308); 76 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 77 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 78 : 10 : ::ad::physics::AngularAcceleration valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(-1e2); 79 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 80 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 81 : 10 : ::ad::physics::Distance valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(-1e9); 82 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 83 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 84 : 10 : ::ad::physics::Duration valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(0.); 85 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 86 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 87 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 88 : : std::numeric_limits<uint32_t>::min()}; 89 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 90 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 91 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 92 : : std::numeric_limits<uint32_t>::min()}; 93 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 94 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 95 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 96 : : std::numeric_limits<uint32_t>::min()}; 97 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 98 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 99 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 100 : : std::numeric_limits<uint32_t>::min()}; 101 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 102 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 103 : : uint32_t 104 : 10 : valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 105 : : std::numeric_limits<uint32_t>::min()}; 106 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 107 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 108 : : uint32_t 109 : 10 : valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 110 : : std::numeric_limits<uint32_t>::min()}; 111 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 112 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 113 : : uint32_t 114 : 10 : valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 115 : : std::numeric_limits<uint32_t>::min()}; 116 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 117 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 118 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 119 : : std::numeric_limits<uint32_t>::min()}; 120 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 121 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 122 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 123 : : std::numeric_limits<uint32_t>::min()}; 124 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 125 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 126 : 10 : uint32_t valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 127 : : std::numeric_limits<uint32_t>::min()}; 128 : : valueDefaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 129 : 10 : = valueDefaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 130 : 10 : valueDefaultEgoVehicleRssDynamics.unstructuredSettings = valueDefaultEgoVehicleRssDynamicsUnstructuredSettings; 131 : 10 : value.defaultEgoVehicleRssDynamics = valueDefaultEgoVehicleRssDynamics; 132 : 20 : ::ad::rss::state::RssStateVector valueIndividualResponses; 133 : 20 : ::ad::rss::state::RssState valueIndividualResponsesElement; 134 : 10 : ::ad::rss::world::ObjectId valueIndividualResponsesElementObjectId( 135 : : std::numeric_limits<::ad::rss::world::ObjectId>::lowest()); 136 : 10 : valueIndividualResponsesElement.objectId = valueIndividualResponsesElementObjectId; 137 : 10 : ::ad::rss::situation::SituationId valueIndividualResponsesElementSituationId( 138 : : std::numeric_limits<::ad::rss::situation::SituationId>::lowest()); 139 : 10 : valueIndividualResponsesElement.situationId = valueIndividualResponsesElementSituationId; 140 : 10 : ::ad::rss::state::LongitudinalRssState valueIndividualResponsesElementLongitudinalState; 141 : 10 : bool valueIndividualResponsesElementLongitudinalStateIsSafe{true}; 142 : 10 : valueIndividualResponsesElementLongitudinalState.isSafe = valueIndividualResponsesElementLongitudinalStateIsSafe; 143 : 10 : ::ad::rss::state::LongitudinalResponse valueIndividualResponsesElementLongitudinalStateResponse( 144 : : ::ad::rss::state::LongitudinalResponse::None); 145 : : valueIndividualResponsesElementLongitudinalState.response 146 : 10 : = valueIndividualResponsesElementLongitudinalStateResponse; 147 : 10 : ::ad::rss::world::LongitudinalRssAccelerationValues valueIndividualResponsesElementLongitudinalStateAlphaLon; 148 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLongitudinalStateAlphaLonAccelMax(-1e2); 149 : : valueIndividualResponsesElementLongitudinalStateAlphaLonAccelMax 150 : 10 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 151 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.accelMax 152 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLonAccelMax; 153 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLongitudinalStateAlphaLonBrakeMax(-1e2); 154 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMax 155 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLonBrakeMax; 156 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLongitudinalStateAlphaLonBrakeMin(-1e2); 157 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMin 158 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLonBrakeMin; 159 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLongitudinalStateAlphaLonBrakeMinCorrect(-1e2); 160 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMinCorrect 161 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLonBrakeMinCorrect; 162 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMin 163 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMax; 164 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMinCorrect 165 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMin; 166 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMin 167 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMinCorrect; 168 : : valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMax 169 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLon.brakeMin; 170 : : valueIndividualResponsesElementLongitudinalState.alphaLon 171 : 10 : = valueIndividualResponsesElementLongitudinalStateAlphaLon; 172 : 10 : ::ad::rss::state::RssStateInformation valueIndividualResponsesElementLongitudinalStateRssStateInformation; 173 : 10 : ::ad::physics::Distance valueIndividualResponsesElementLongitudinalStateRssStateInformationSafeDistance(-1e9); 174 : : valueIndividualResponsesElementLongitudinalStateRssStateInformation.safeDistance 175 : 10 : = valueIndividualResponsesElementLongitudinalStateRssStateInformationSafeDistance; 176 : 10 : ::ad::physics::Distance valueIndividualResponsesElementLongitudinalStateRssStateInformationCurrentDistance(-1e9); 177 : : valueIndividualResponsesElementLongitudinalStateRssStateInformation.currentDistance 178 : 10 : = valueIndividualResponsesElementLongitudinalStateRssStateInformationCurrentDistance; 179 : 10 : ::ad::rss::state::RssStateEvaluator valueIndividualResponsesElementLongitudinalStateRssStateInformationEvaluator( 180 : : ::ad::rss::state::RssStateEvaluator::None); 181 : : valueIndividualResponsesElementLongitudinalStateRssStateInformation.evaluator 182 : 10 : = valueIndividualResponsesElementLongitudinalStateRssStateInformationEvaluator; 183 : : valueIndividualResponsesElementLongitudinalState.rssStateInformation 184 : 10 : = valueIndividualResponsesElementLongitudinalStateRssStateInformation; 185 : 10 : valueIndividualResponsesElement.longitudinalState = valueIndividualResponsesElementLongitudinalState; 186 : 10 : ::ad::rss::state::LateralRssState valueIndividualResponsesElementLateralStateRight; 187 : 10 : bool valueIndividualResponsesElementLateralStateRightIsSafe{true}; 188 : 10 : valueIndividualResponsesElementLateralStateRight.isSafe = valueIndividualResponsesElementLateralStateRightIsSafe; 189 : 10 : ::ad::rss::state::LateralResponse valueIndividualResponsesElementLateralStateRightResponse( 190 : : ::ad::rss::state::LateralResponse::None); 191 : : valueIndividualResponsesElementLateralStateRight.response 192 : 10 : = valueIndividualResponsesElementLateralStateRightResponse; 193 : 10 : ::ad::rss::world::LateralRssAccelerationValues valueIndividualResponsesElementLateralStateRightAlphaLat; 194 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLateralStateRightAlphaLatAccelMax(-1e2); 195 : : valueIndividualResponsesElementLateralStateRightAlphaLatAccelMax 196 : 10 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 197 : : valueIndividualResponsesElementLateralStateRightAlphaLat.accelMax 198 : 10 : = valueIndividualResponsesElementLateralStateRightAlphaLatAccelMax; 199 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLateralStateRightAlphaLatBrakeMin(-1e2); 200 : : valueIndividualResponsesElementLateralStateRightAlphaLat.brakeMin 201 : 10 : = valueIndividualResponsesElementLateralStateRightAlphaLatBrakeMin; 202 : : valueIndividualResponsesElementLateralStateRight.alphaLat 203 : 10 : = valueIndividualResponsesElementLateralStateRightAlphaLat; 204 : 10 : ::ad::rss::state::RssStateInformation valueIndividualResponsesElementLateralStateRightRssStateInformation; 205 : 10 : ::ad::physics::Distance valueIndividualResponsesElementLateralStateRightRssStateInformationSafeDistance(-1e9); 206 : : valueIndividualResponsesElementLateralStateRightRssStateInformation.safeDistance 207 : 10 : = valueIndividualResponsesElementLateralStateRightRssStateInformationSafeDistance; 208 : 10 : ::ad::physics::Distance valueIndividualResponsesElementLateralStateRightRssStateInformationCurrentDistance(-1e9); 209 : : valueIndividualResponsesElementLateralStateRightRssStateInformation.currentDistance 210 : 10 : = valueIndividualResponsesElementLateralStateRightRssStateInformationCurrentDistance; 211 : 10 : ::ad::rss::state::RssStateEvaluator valueIndividualResponsesElementLateralStateRightRssStateInformationEvaluator( 212 : : ::ad::rss::state::RssStateEvaluator::None); 213 : : valueIndividualResponsesElementLateralStateRightRssStateInformation.evaluator 214 : 10 : = valueIndividualResponsesElementLateralStateRightRssStateInformationEvaluator; 215 : : valueIndividualResponsesElementLateralStateRight.rssStateInformation 216 : 10 : = valueIndividualResponsesElementLateralStateRightRssStateInformation; 217 : 10 : valueIndividualResponsesElement.lateralStateRight = valueIndividualResponsesElementLateralStateRight; 218 : 10 : ::ad::rss::state::LateralRssState valueIndividualResponsesElementLateralStateLeft; 219 : 10 : bool valueIndividualResponsesElementLateralStateLeftIsSafe{true}; 220 : 10 : valueIndividualResponsesElementLateralStateLeft.isSafe = valueIndividualResponsesElementLateralStateLeftIsSafe; 221 : 10 : ::ad::rss::state::LateralResponse valueIndividualResponsesElementLateralStateLeftResponse( 222 : : ::ad::rss::state::LateralResponse::None); 223 : 10 : valueIndividualResponsesElementLateralStateLeft.response = valueIndividualResponsesElementLateralStateLeftResponse; 224 : 10 : ::ad::rss::world::LateralRssAccelerationValues valueIndividualResponsesElementLateralStateLeftAlphaLat; 225 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLateralStateLeftAlphaLatAccelMax(-1e2); 226 : : valueIndividualResponsesElementLateralStateLeftAlphaLatAccelMax 227 : 10 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 228 : : valueIndividualResponsesElementLateralStateLeftAlphaLat.accelMax 229 : 10 : = valueIndividualResponsesElementLateralStateLeftAlphaLatAccelMax; 230 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementLateralStateLeftAlphaLatBrakeMin(-1e2); 231 : : valueIndividualResponsesElementLateralStateLeftAlphaLat.brakeMin 232 : 10 : = valueIndividualResponsesElementLateralStateLeftAlphaLatBrakeMin; 233 : 10 : valueIndividualResponsesElementLateralStateLeft.alphaLat = valueIndividualResponsesElementLateralStateLeftAlphaLat; 234 : 10 : ::ad::rss::state::RssStateInformation valueIndividualResponsesElementLateralStateLeftRssStateInformation; 235 : 10 : ::ad::physics::Distance valueIndividualResponsesElementLateralStateLeftRssStateInformationSafeDistance(-1e9); 236 : : valueIndividualResponsesElementLateralStateLeftRssStateInformation.safeDistance 237 : 10 : = valueIndividualResponsesElementLateralStateLeftRssStateInformationSafeDistance; 238 : 10 : ::ad::physics::Distance valueIndividualResponsesElementLateralStateLeftRssStateInformationCurrentDistance(-1e9); 239 : : valueIndividualResponsesElementLateralStateLeftRssStateInformation.currentDistance 240 : 10 : = valueIndividualResponsesElementLateralStateLeftRssStateInformationCurrentDistance; 241 : 10 : ::ad::rss::state::RssStateEvaluator valueIndividualResponsesElementLateralStateLeftRssStateInformationEvaluator( 242 : : ::ad::rss::state::RssStateEvaluator::None); 243 : : valueIndividualResponsesElementLateralStateLeftRssStateInformation.evaluator 244 : 10 : = valueIndividualResponsesElementLateralStateLeftRssStateInformationEvaluator; 245 : : valueIndividualResponsesElementLateralStateLeft.rssStateInformation 246 : 10 : = valueIndividualResponsesElementLateralStateLeftRssStateInformation; 247 : 10 : valueIndividualResponsesElement.lateralStateLeft = valueIndividualResponsesElementLateralStateLeft; 248 : 20 : ::ad::rss::state::UnstructuredSceneRssState valueIndividualResponsesElementUnstructuredSceneState; 249 : 10 : bool valueIndividualResponsesElementUnstructuredSceneStateIsSafe{true}; 250 : : valueIndividualResponsesElementUnstructuredSceneState.isSafe 251 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateIsSafe; 252 : 10 : ::ad::rss::state::UnstructuredSceneResponse valueIndividualResponsesElementUnstructuredSceneStateResponse( 253 : : ::ad::rss::state::UnstructuredSceneResponse::None); 254 : : valueIndividualResponsesElementUnstructuredSceneState.response 255 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateResponse; 256 : 10 : ::ad::rss::state::HeadingRange valueIndividualResponsesElementUnstructuredSceneStateHeadingRange; 257 : 10 : ::ad::physics::Angle valueIndividualResponsesElementUnstructuredSceneStateHeadingRangeBegin(-6.283185308); 258 : : valueIndividualResponsesElementUnstructuredSceneStateHeadingRange.begin 259 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateHeadingRangeBegin; 260 : 10 : ::ad::physics::Angle valueIndividualResponsesElementUnstructuredSceneStateHeadingRangeEnd(-6.283185308); 261 : : valueIndividualResponsesElementUnstructuredSceneStateHeadingRange.end 262 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateHeadingRangeEnd; 263 : : valueIndividualResponsesElementUnstructuredSceneState.headingRange 264 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateHeadingRange; 265 : : ::ad::rss::state::UnstructuredSceneStateInformation 266 : 20 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformation; 267 : : ::ad::physics::Distance2DList 268 : 20 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet; 269 : : ::ad::physics::Distance2D 270 : 10 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement; 271 : : ::ad::physics::Distance 272 : 10 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX(-1e9); 273 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.x 274 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX; 275 : : ::ad::physics::Distance 276 : 10 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY(-1e9); 277 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.y 278 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY; 279 [ + - ]: 10 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet.resize( 280 : : 1, valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement); 281 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformation.brakeTrajectorySet 282 [ + - ]: 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet; 283 : : ::ad::physics::Distance2DList 284 : 20 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet; 285 : : ::ad::physics::Distance2D 286 : 10 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement; 287 : : ::ad::physics::Distance 288 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX( 289 : 10 : -1e9); 290 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.x 291 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX; 292 : : ::ad::physics::Distance 293 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY( 294 : 10 : -1e9); 295 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.y 296 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY; 297 [ + - ]: 10 : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet.resize( 298 : : 1, valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement); 299 : : valueIndividualResponsesElementUnstructuredSceneStateRssStateInformation.continueForwardTrajectorySet 300 [ + - ]: 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet; 301 : : valueIndividualResponsesElementUnstructuredSceneState.rssStateInformation 302 [ + - ]: 10 : = valueIndividualResponsesElementUnstructuredSceneStateRssStateInformation; 303 : 10 : ::ad::rss::world::LongitudinalRssAccelerationValues valueIndividualResponsesElementUnstructuredSceneStateAlphaLon; 304 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementUnstructuredSceneStateAlphaLonAccelMax(-1e2); 305 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLonAccelMax 306 : 10 : = ::ad::physics::Acceleration(0.); // set to valid value within struct 307 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.accelMax 308 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLonAccelMax; 309 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementUnstructuredSceneStateAlphaLonBrakeMax(-1e2); 310 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMax 311 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLonBrakeMax; 312 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementUnstructuredSceneStateAlphaLonBrakeMin(-1e2); 313 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin 314 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLonBrakeMin; 315 : 10 : ::ad::physics::Acceleration valueIndividualResponsesElementUnstructuredSceneStateAlphaLonBrakeMinCorrect(-1e2); 316 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMinCorrect 317 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLonBrakeMinCorrect; 318 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin 319 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMax; 320 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMinCorrect 321 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin; 322 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin 323 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMinCorrect; 324 : : valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMax 325 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin; 326 : : valueIndividualResponsesElementUnstructuredSceneState.alphaLon 327 : 10 : = valueIndividualResponsesElementUnstructuredSceneStateAlphaLon; 328 [ + - ]: 10 : valueIndividualResponsesElement.unstructuredSceneState = valueIndividualResponsesElementUnstructuredSceneState; 329 : 10 : ::ad::rss::situation::SituationType valueIndividualResponsesElementSituationType( 330 : : ::ad::rss::situation::SituationType::NotRelevant); 331 : 10 : valueIndividualResponsesElement.situationType = valueIndividualResponsesElementSituationType; 332 [ + - ]: 10 : valueIndividualResponses.resize(1, valueIndividualResponsesElement); 333 [ + - ]: 10 : value.individualResponses = valueIndividualResponses; 334 : 20 : ::ad::rss::state::UnstructuredSceneStateInformation valueUnstructuredSceneEgoInformation; 335 : 20 : ::ad::physics::Distance2DList valueUnstructuredSceneEgoInformationBrakeTrajectorySet; 336 : 10 : ::ad::physics::Distance2D valueUnstructuredSceneEgoInformationBrakeTrajectorySetElement; 337 : 10 : ::ad::physics::Distance valueUnstructuredSceneEgoInformationBrakeTrajectorySetElementX(-1e9); 338 : : valueUnstructuredSceneEgoInformationBrakeTrajectorySetElement.x 339 : 10 : = valueUnstructuredSceneEgoInformationBrakeTrajectorySetElementX; 340 : 10 : ::ad::physics::Distance valueUnstructuredSceneEgoInformationBrakeTrajectorySetElementY(-1e9); 341 : : valueUnstructuredSceneEgoInformationBrakeTrajectorySetElement.y 342 : 10 : = valueUnstructuredSceneEgoInformationBrakeTrajectorySetElementY; 343 [ + - ]: 10 : valueUnstructuredSceneEgoInformationBrakeTrajectorySet.resize( 344 : : 1, valueUnstructuredSceneEgoInformationBrakeTrajectorySetElement); 345 [ + - ]: 10 : valueUnstructuredSceneEgoInformation.brakeTrajectorySet = valueUnstructuredSceneEgoInformationBrakeTrajectorySet; 346 : 20 : ::ad::physics::Distance2DList valueUnstructuredSceneEgoInformationContinueForwardTrajectorySet; 347 : 10 : ::ad::physics::Distance2D valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElement; 348 : 10 : ::ad::physics::Distance valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElementX(-1e9); 349 : : valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElement.x 350 : 10 : = valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElementX; 351 : 10 : ::ad::physics::Distance valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElementY(-1e9); 352 : : valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElement.y 353 : 10 : = valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElementY; 354 [ + - ]: 10 : valueUnstructuredSceneEgoInformationContinueForwardTrajectorySet.resize( 355 : : 1, valueUnstructuredSceneEgoInformationContinueForwardTrajectorySetElement); 356 : : valueUnstructuredSceneEgoInformation.continueForwardTrajectorySet 357 [ + - ]: 10 : = valueUnstructuredSceneEgoInformationContinueForwardTrajectorySet; 358 [ + - ]: 10 : value.unstructuredSceneEgoInformation = valueUnstructuredSceneEgoInformation; 359 [ + - ]: 10 : mValue = value; 360 : 10 : } 361 : : 362 : : ::ad::rss::state::RssStateSnapshot mValue; 363 : : }; 364 : : 365 : 2 : TEST_F(RssStateSnapshotTests, copyConstruction) 366 : : { 367 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot value(mValue); 368 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 369 : 1 : } 370 : : 371 : 2 : TEST_F(RssStateSnapshotTests, moveConstruction) 372 : : { 373 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot tmpValue(mValue); 374 : 2 : ::ad::rss::state::RssStateSnapshot value(std::move(tmpValue)); 375 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 376 : 1 : } 377 : : 378 : 2 : TEST_F(RssStateSnapshotTests, copyAssignment) 379 : : { 380 : 2 : ::ad::rss::state::RssStateSnapshot value; 381 [ + - ]: 1 : value = mValue; 382 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 383 : 1 : } 384 : : 385 : 2 : TEST_F(RssStateSnapshotTests, moveAssignment) 386 : : { 387 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot tmpValue(mValue); 388 : 2 : ::ad::rss::state::RssStateSnapshot value; 389 : 1 : value = std::move(tmpValue); 390 [ + - - + : 1 : EXPECT_EQ(mValue, value); - - - - - - ] 391 : 1 : } 392 : : 393 : 2 : TEST_F(RssStateSnapshotTests, comparisonOperatorEqual) 394 : : { 395 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueA = mValue; 396 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueB = mValue; 397 : : 398 [ + - - + : 1 : EXPECT_TRUE(valueA == valueB); - - - - - - - - ] 399 [ + - - + : 1 : EXPECT_FALSE(valueA != valueB); - - - - - - - - ] 400 : 1 : } 401 : : 402 : 2 : TEST_F(RssStateSnapshotTests, stringConversionTest) 403 : : { 404 [ + - ]: 1 : std::stringstream stream; 405 [ + - ]: 1 : stream << mValue; 406 [ + - ]: 1 : std::string ostreamStr = stream.str(); 407 [ + - ]: 1 : std::string toStr = std::to_string(mValue); 408 [ + - - + : 1 : ASSERT_EQ(ostreamStr, toStr); - - - - - - ] 409 : : } 410 : : 411 : 2 : TEST_F(RssStateSnapshotTests, comparisonOperatorTimeIndexDiffers) 412 : : { 413 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueA = mValue; 414 : 1 : ::ad::rss::world::TimeIndex timeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::max()); 415 : 1 : valueA.timeIndex = timeIndex; 416 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueB = mValue; 417 : : 418 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 419 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 420 : 1 : } 421 : : 422 : 2 : TEST_F(RssStateSnapshotTests, comparisonOperatorDefaultEgoVehicleRssDynamicsDiffers) 423 : : { 424 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueA = mValue; 425 : 1 : ::ad::rss::world::RssDynamics defaultEgoVehicleRssDynamics; 426 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues defaultEgoVehicleRssDynamicsAlphaLon; 427 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonAccelMax(1e2); 428 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.accelMax = defaultEgoVehicleRssDynamicsAlphaLonAccelMax; 429 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMax(1e2); 430 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMax = defaultEgoVehicleRssDynamicsAlphaLonBrakeMax; 431 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMin(1e2); 432 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLonBrakeMin; 433 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect(1e2); 434 : : defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect 435 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 436 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = defaultEgoVehicleRssDynamicsAlphaLonBrakeMinCorrect; 437 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect = defaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 438 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLon.brakeMax; 439 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMax = defaultEgoVehicleRssDynamicsAlphaLon.brakeMin; 440 : 1 : defaultEgoVehicleRssDynamicsAlphaLon.brakeMin = defaultEgoVehicleRssDynamicsAlphaLon.brakeMinCorrect; 441 : 1 : defaultEgoVehicleRssDynamics.alphaLon = defaultEgoVehicleRssDynamicsAlphaLon; 442 : 1 : ::ad::rss::world::LateralRssAccelerationValues defaultEgoVehicleRssDynamicsAlphaLat; 443 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLatAccelMax(1e2); 444 : 1 : defaultEgoVehicleRssDynamicsAlphaLat.accelMax = defaultEgoVehicleRssDynamicsAlphaLatAccelMax; 445 : 1 : ::ad::physics::Acceleration defaultEgoVehicleRssDynamicsAlphaLatBrakeMin(1e2); 446 : : defaultEgoVehicleRssDynamicsAlphaLatBrakeMin 447 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 448 : 1 : defaultEgoVehicleRssDynamicsAlphaLat.brakeMin = defaultEgoVehicleRssDynamicsAlphaLatBrakeMin; 449 : 1 : defaultEgoVehicleRssDynamics.alphaLat = defaultEgoVehicleRssDynamicsAlphaLat; 450 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsLateralFluctuationMargin(1e9); 451 : 1 : defaultEgoVehicleRssDynamicsLateralFluctuationMargin = ::ad::physics::Distance(1.); // set to valid value within 452 : : // struct 453 : 1 : defaultEgoVehicleRssDynamics.lateralFluctuationMargin = defaultEgoVehicleRssDynamicsLateralFluctuationMargin; 454 : 1 : ::ad::physics::Duration defaultEgoVehicleRssDynamicsResponseTime(1e6); 455 : 1 : defaultEgoVehicleRssDynamicsResponseTime = ::ad::physics::Duration(10.); // set to valid value within struct 456 : 1 : defaultEgoVehicleRssDynamics.responseTime = defaultEgoVehicleRssDynamicsResponseTime; 457 : 1 : ::ad::physics::Speed defaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration(100.); 458 : 1 : defaultEgoVehicleRssDynamics.maxSpeedOnAcceleration = defaultEgoVehicleRssDynamicsMaxSpeedOnAcceleration; 459 : 1 : ::ad::rss::world::UnstructuredSettings defaultEgoVehicleRssDynamicsUnstructuredSettings; 460 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius(1e9); 461 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianTurningRadius 462 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianTurningRadius; 463 : 1 : ::ad::physics::Angle defaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle(6.283185308); 464 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.driveAwayMaxAngle 465 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsDriveAwayMaxAngle; 466 : 1 : ::ad::physics::AngularAcceleration defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange(1e2); 467 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleYawRateChange 468 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleYawRateChange; 469 : 1 : ::ad::physics::Distance defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius(1e9); 470 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleMinRadius 471 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleMinRadius; 472 : 1 : ::ad::physics::Duration defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep(1e6); 473 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleTrajectoryCalculationStep 474 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleTrajectoryCalculationStep; 475 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps{ 476 : : std::numeric_limits<uint32_t>::max()}; 477 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleFrontIntermediateYawRateChangeRatioSteps 478 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleFrontIntermediateYawRateChangeRatioSteps; 479 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps{ 480 : : std::numeric_limits<uint32_t>::max()}; 481 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBackIntermediateYawRateChangeRatioSteps 482 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBackIntermediateYawRateChangeRatioSteps; 483 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps{ 484 : : std::numeric_limits<uint32_t>::max()}; 485 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleBrakeIntermediateAccelerationSteps 486 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleBrakeIntermediateAccelerationSteps; 487 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps{ 488 : : std::numeric_limits<uint32_t>::max()}; 489 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateAccelerationSteps 490 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateAccelerationSteps; 491 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps{ 492 : : std::numeric_limits<uint32_t>::max()}; 493 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 494 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 495 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps{ 496 : : std::numeric_limits<uint32_t>::max()}; 497 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 498 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 499 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps{ 500 : : std::numeric_limits<uint32_t>::max()}; 501 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianContinueForwardIntermediateAccelerationSteps 502 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianContinueForwardIntermediateAccelerationSteps; 503 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps{ 504 : : std::numeric_limits<uint32_t>::max()}; 505 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBrakeIntermediateAccelerationSteps 506 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBrakeIntermediateAccelerationSteps; 507 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps{ 508 : : std::numeric_limits<uint32_t>::max()}; 509 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianFrontIntermediateHeadingChangeRatioSteps 510 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianFrontIntermediateHeadingChangeRatioSteps; 511 : 1 : uint32_t defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps{ 512 : : std::numeric_limits<uint32_t>::max()}; 513 : : defaultEgoVehicleRssDynamicsUnstructuredSettings.pedestrianBackIntermediateHeadingChangeRatioSteps 514 : 1 : = defaultEgoVehicleRssDynamicsUnstructuredSettingsPedestrianBackIntermediateHeadingChangeRatioSteps; 515 : 1 : defaultEgoVehicleRssDynamics.unstructuredSettings = defaultEgoVehicleRssDynamicsUnstructuredSettings; 516 : 1 : valueA.defaultEgoVehicleRssDynamics = defaultEgoVehicleRssDynamics; 517 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueB = mValue; 518 : : 519 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 520 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 521 : 1 : } 522 : : 523 : 2 : TEST_F(RssStateSnapshotTests, comparisonOperatorIndividualResponsesDiffers) 524 : : { 525 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueA = mValue; 526 : 2 : ::ad::rss::state::RssStateVector individualResponses; 527 : 2 : ::ad::rss::state::RssState individualResponsesElement; 528 : 1 : ::ad::rss::world::ObjectId individualResponsesElementObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::max()); 529 : 1 : individualResponsesElement.objectId = individualResponsesElementObjectId; 530 : 1 : ::ad::rss::situation::SituationId individualResponsesElementSituationId( 531 : : std::numeric_limits<::ad::rss::situation::SituationId>::max()); 532 : 1 : individualResponsesElement.situationId = individualResponsesElementSituationId; 533 : 1 : ::ad::rss::state::LongitudinalRssState individualResponsesElementLongitudinalState; 534 : 1 : bool individualResponsesElementLongitudinalStateIsSafe{false}; 535 : 1 : individualResponsesElementLongitudinalState.isSafe = individualResponsesElementLongitudinalStateIsSafe; 536 : 1 : ::ad::rss::state::LongitudinalResponse individualResponsesElementLongitudinalStateResponse( 537 : : ::ad::rss::state::LongitudinalResponse::BrakeMin); 538 : 1 : individualResponsesElementLongitudinalState.response = individualResponsesElementLongitudinalStateResponse; 539 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues individualResponsesElementLongitudinalStateAlphaLon; 540 : 1 : ::ad::physics::Acceleration individualResponsesElementLongitudinalStateAlphaLonAccelMax(1e2); 541 : : individualResponsesElementLongitudinalStateAlphaLon.accelMax 542 : 1 : = individualResponsesElementLongitudinalStateAlphaLonAccelMax; 543 : 1 : ::ad::physics::Acceleration individualResponsesElementLongitudinalStateAlphaLonBrakeMax(1e2); 544 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMax 545 : 1 : = individualResponsesElementLongitudinalStateAlphaLonBrakeMax; 546 : 1 : ::ad::physics::Acceleration individualResponsesElementLongitudinalStateAlphaLonBrakeMin(1e2); 547 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMin 548 : 1 : = individualResponsesElementLongitudinalStateAlphaLonBrakeMin; 549 : 1 : ::ad::physics::Acceleration individualResponsesElementLongitudinalStateAlphaLonBrakeMinCorrect(1e2); 550 : : individualResponsesElementLongitudinalStateAlphaLonBrakeMinCorrect 551 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 552 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMinCorrect 553 : 1 : = individualResponsesElementLongitudinalStateAlphaLonBrakeMinCorrect; 554 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMinCorrect 555 : 1 : = individualResponsesElementLongitudinalStateAlphaLon.brakeMin; 556 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMin 557 : 1 : = individualResponsesElementLongitudinalStateAlphaLon.brakeMax; 558 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMax 559 : 1 : = individualResponsesElementLongitudinalStateAlphaLon.brakeMin; 560 : : individualResponsesElementLongitudinalStateAlphaLon.brakeMin 561 : 1 : = individualResponsesElementLongitudinalStateAlphaLon.brakeMinCorrect; 562 : 1 : individualResponsesElementLongitudinalState.alphaLon = individualResponsesElementLongitudinalStateAlphaLon; 563 : 1 : ::ad::rss::state::RssStateInformation individualResponsesElementLongitudinalStateRssStateInformation; 564 : 1 : ::ad::physics::Distance individualResponsesElementLongitudinalStateRssStateInformationSafeDistance(1e9); 565 : : individualResponsesElementLongitudinalStateRssStateInformation.safeDistance 566 : 1 : = individualResponsesElementLongitudinalStateRssStateInformationSafeDistance; 567 : 1 : ::ad::physics::Distance individualResponsesElementLongitudinalStateRssStateInformationCurrentDistance(1e9); 568 : : individualResponsesElementLongitudinalStateRssStateInformation.currentDistance 569 : 1 : = individualResponsesElementLongitudinalStateRssStateInformationCurrentDistance; 570 : 1 : ::ad::rss::state::RssStateEvaluator individualResponsesElementLongitudinalStateRssStateInformationEvaluator( 571 : : ::ad::rss::state::RssStateEvaluator::IntersectionOverlap); 572 : : individualResponsesElementLongitudinalStateRssStateInformation.evaluator 573 : 1 : = individualResponsesElementLongitudinalStateRssStateInformationEvaluator; 574 : : individualResponsesElementLongitudinalState.rssStateInformation 575 : 1 : = individualResponsesElementLongitudinalStateRssStateInformation; 576 : 1 : individualResponsesElement.longitudinalState = individualResponsesElementLongitudinalState; 577 : 1 : ::ad::rss::state::LateralRssState individualResponsesElementLateralStateRight; 578 : 1 : bool individualResponsesElementLateralStateRightIsSafe{false}; 579 : 1 : individualResponsesElementLateralStateRight.isSafe = individualResponsesElementLateralStateRightIsSafe; 580 : 1 : ::ad::rss::state::LateralResponse individualResponsesElementLateralStateRightResponse( 581 : : ::ad::rss::state::LateralResponse::BrakeMin); 582 : 1 : individualResponsesElementLateralStateRight.response = individualResponsesElementLateralStateRightResponse; 583 : 1 : ::ad::rss::world::LateralRssAccelerationValues individualResponsesElementLateralStateRightAlphaLat; 584 : 1 : ::ad::physics::Acceleration individualResponsesElementLateralStateRightAlphaLatAccelMax(1e2); 585 : : individualResponsesElementLateralStateRightAlphaLat.accelMax 586 : 1 : = individualResponsesElementLateralStateRightAlphaLatAccelMax; 587 : 1 : ::ad::physics::Acceleration individualResponsesElementLateralStateRightAlphaLatBrakeMin(1e2); 588 : : individualResponsesElementLateralStateRightAlphaLatBrakeMin 589 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 590 : : individualResponsesElementLateralStateRightAlphaLat.brakeMin 591 : 1 : = individualResponsesElementLateralStateRightAlphaLatBrakeMin; 592 : 1 : individualResponsesElementLateralStateRight.alphaLat = individualResponsesElementLateralStateRightAlphaLat; 593 : 1 : ::ad::rss::state::RssStateInformation individualResponsesElementLateralStateRightRssStateInformation; 594 : 1 : ::ad::physics::Distance individualResponsesElementLateralStateRightRssStateInformationSafeDistance(1e9); 595 : : individualResponsesElementLateralStateRightRssStateInformation.safeDistance 596 : 1 : = individualResponsesElementLateralStateRightRssStateInformationSafeDistance; 597 : 1 : ::ad::physics::Distance individualResponsesElementLateralStateRightRssStateInformationCurrentDistance(1e9); 598 : : individualResponsesElementLateralStateRightRssStateInformation.currentDistance 599 : 1 : = individualResponsesElementLateralStateRightRssStateInformationCurrentDistance; 600 : 1 : ::ad::rss::state::RssStateEvaluator individualResponsesElementLateralStateRightRssStateInformationEvaluator( 601 : : ::ad::rss::state::RssStateEvaluator::IntersectionOverlap); 602 : : individualResponsesElementLateralStateRightRssStateInformation.evaluator 603 : 1 : = individualResponsesElementLateralStateRightRssStateInformationEvaluator; 604 : : individualResponsesElementLateralStateRight.rssStateInformation 605 : 1 : = individualResponsesElementLateralStateRightRssStateInformation; 606 : 1 : individualResponsesElement.lateralStateRight = individualResponsesElementLateralStateRight; 607 : 1 : ::ad::rss::state::LateralRssState individualResponsesElementLateralStateLeft; 608 : 1 : bool individualResponsesElementLateralStateLeftIsSafe{false}; 609 : 1 : individualResponsesElementLateralStateLeft.isSafe = individualResponsesElementLateralStateLeftIsSafe; 610 : 1 : ::ad::rss::state::LateralResponse individualResponsesElementLateralStateLeftResponse( 611 : : ::ad::rss::state::LateralResponse::BrakeMin); 612 : 1 : individualResponsesElementLateralStateLeft.response = individualResponsesElementLateralStateLeftResponse; 613 : 1 : ::ad::rss::world::LateralRssAccelerationValues individualResponsesElementLateralStateLeftAlphaLat; 614 : 1 : ::ad::physics::Acceleration individualResponsesElementLateralStateLeftAlphaLatAccelMax(1e2); 615 : : individualResponsesElementLateralStateLeftAlphaLat.accelMax 616 : 1 : = individualResponsesElementLateralStateLeftAlphaLatAccelMax; 617 : 1 : ::ad::physics::Acceleration individualResponsesElementLateralStateLeftAlphaLatBrakeMin(1e2); 618 : : individualResponsesElementLateralStateLeftAlphaLatBrakeMin 619 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 620 : : individualResponsesElementLateralStateLeftAlphaLat.brakeMin 621 : 1 : = individualResponsesElementLateralStateLeftAlphaLatBrakeMin; 622 : 1 : individualResponsesElementLateralStateLeft.alphaLat = individualResponsesElementLateralStateLeftAlphaLat; 623 : 1 : ::ad::rss::state::RssStateInformation individualResponsesElementLateralStateLeftRssStateInformation; 624 : 1 : ::ad::physics::Distance individualResponsesElementLateralStateLeftRssStateInformationSafeDistance(1e9); 625 : : individualResponsesElementLateralStateLeftRssStateInformation.safeDistance 626 : 1 : = individualResponsesElementLateralStateLeftRssStateInformationSafeDistance; 627 : 1 : ::ad::physics::Distance individualResponsesElementLateralStateLeftRssStateInformationCurrentDistance(1e9); 628 : : individualResponsesElementLateralStateLeftRssStateInformation.currentDistance 629 : 1 : = individualResponsesElementLateralStateLeftRssStateInformationCurrentDistance; 630 : 1 : ::ad::rss::state::RssStateEvaluator individualResponsesElementLateralStateLeftRssStateInformationEvaluator( 631 : : ::ad::rss::state::RssStateEvaluator::IntersectionOverlap); 632 : : individualResponsesElementLateralStateLeftRssStateInformation.evaluator 633 : 1 : = individualResponsesElementLateralStateLeftRssStateInformationEvaluator; 634 : : individualResponsesElementLateralStateLeft.rssStateInformation 635 : 1 : = individualResponsesElementLateralStateLeftRssStateInformation; 636 : 1 : individualResponsesElement.lateralStateLeft = individualResponsesElementLateralStateLeft; 637 : 2 : ::ad::rss::state::UnstructuredSceneRssState individualResponsesElementUnstructuredSceneState; 638 : 1 : bool individualResponsesElementUnstructuredSceneStateIsSafe{false}; 639 : 1 : individualResponsesElementUnstructuredSceneState.isSafe = individualResponsesElementUnstructuredSceneStateIsSafe; 640 : 1 : ::ad::rss::state::UnstructuredSceneResponse individualResponsesElementUnstructuredSceneStateResponse( 641 : : ::ad::rss::state::UnstructuredSceneResponse::Brake); 642 : 1 : individualResponsesElementUnstructuredSceneState.response = individualResponsesElementUnstructuredSceneStateResponse; 643 : 1 : ::ad::rss::state::HeadingRange individualResponsesElementUnstructuredSceneStateHeadingRange; 644 : 1 : ::ad::physics::Angle individualResponsesElementUnstructuredSceneStateHeadingRangeBegin(6.283185308); 645 : : individualResponsesElementUnstructuredSceneStateHeadingRange.begin 646 : 1 : = individualResponsesElementUnstructuredSceneStateHeadingRangeBegin; 647 : 1 : ::ad::physics::Angle individualResponsesElementUnstructuredSceneStateHeadingRangeEnd(6.283185308); 648 : : individualResponsesElementUnstructuredSceneStateHeadingRange.end 649 : 1 : = individualResponsesElementUnstructuredSceneStateHeadingRangeEnd; 650 : : individualResponsesElementUnstructuredSceneState.headingRange 651 : 1 : = individualResponsesElementUnstructuredSceneStateHeadingRange; 652 : : ::ad::rss::state::UnstructuredSceneStateInformation 653 : 2 : individualResponsesElementUnstructuredSceneStateRssStateInformation; 654 : 2 : ::ad::physics::Distance2DList individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet; 655 : : ::ad::physics::Distance2D 656 : 1 : individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement; 657 : : ::ad::physics::Distance individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX( 658 : 1 : 1e9); 659 : : individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.x 660 : 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX; 661 : : ::ad::physics::Distance individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY( 662 : 1 : 1e9); 663 : : individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.y 664 : 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY; 665 [ + - ]: 1 : individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet.resize( 666 : : 2, individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement); 667 : : individualResponsesElementUnstructuredSceneStateRssStateInformation.brakeTrajectorySet 668 [ + - ]: 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet; 669 : : ::ad::physics::Distance2DList 670 : 2 : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet; 671 : : ::ad::physics::Distance2D 672 : 1 : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement; 673 : : ::ad::physics::Distance 674 : 1 : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX(1e9); 675 : : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.x 676 : 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX; 677 : : ::ad::physics::Distance 678 : 1 : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY(1e9); 679 : : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.y 680 : 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY; 681 [ + - ]: 1 : individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet.resize( 682 : : 2, individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement); 683 : : individualResponsesElementUnstructuredSceneStateRssStateInformation.continueForwardTrajectorySet 684 [ + - ]: 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet; 685 : : individualResponsesElementUnstructuredSceneState.rssStateInformation 686 [ + - ]: 1 : = individualResponsesElementUnstructuredSceneStateRssStateInformation; 687 : 1 : ::ad::rss::world::LongitudinalRssAccelerationValues individualResponsesElementUnstructuredSceneStateAlphaLon; 688 : 1 : ::ad::physics::Acceleration individualResponsesElementUnstructuredSceneStateAlphaLonAccelMax(1e2); 689 : : individualResponsesElementUnstructuredSceneStateAlphaLon.accelMax 690 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLonAccelMax; 691 : 1 : ::ad::physics::Acceleration individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMax(1e2); 692 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMax 693 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMax; 694 : 1 : ::ad::physics::Acceleration individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMin(1e2); 695 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin 696 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMin; 697 : 1 : ::ad::physics::Acceleration individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMinCorrect(1e2); 698 : : individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMinCorrect 699 : 1 : = ::ad::physics::Acceleration(0. * 0.9); // set to valid value within struct 700 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMinCorrect 701 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLonBrakeMinCorrect; 702 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMinCorrect 703 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin; 704 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin 705 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMax; 706 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMax 707 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin; 708 : : individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMin 709 : 1 : = individualResponsesElementUnstructuredSceneStateAlphaLon.brakeMinCorrect; 710 : 1 : individualResponsesElementUnstructuredSceneState.alphaLon = individualResponsesElementUnstructuredSceneStateAlphaLon; 711 [ + - ]: 1 : individualResponsesElement.unstructuredSceneState = individualResponsesElementUnstructuredSceneState; 712 : 1 : ::ad::rss::situation::SituationType individualResponsesElementSituationType( 713 : : ::ad::rss::situation::SituationType::Unstructured); 714 : 1 : individualResponsesElement.situationType = individualResponsesElementSituationType; 715 [ + - ]: 1 : individualResponses.resize(0 + 1, individualResponsesElement); 716 [ + - ]: 1 : valueA.individualResponses = individualResponses; 717 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueB = mValue; 718 : : 719 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 720 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 721 : 1 : } 722 : : 723 : 2 : TEST_F(RssStateSnapshotTests, comparisonOperatorUnstructuredSceneEgoInformationDiffers) 724 : : { 725 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueA = mValue; 726 : 2 : ::ad::rss::state::UnstructuredSceneStateInformation unstructuredSceneEgoInformation; 727 : 2 : ::ad::physics::Distance2DList unstructuredSceneEgoInformationBrakeTrajectorySet; 728 : 1 : ::ad::physics::Distance2D unstructuredSceneEgoInformationBrakeTrajectorySetElement; 729 : 1 : ::ad::physics::Distance unstructuredSceneEgoInformationBrakeTrajectorySetElementX(1e9); 730 : : unstructuredSceneEgoInformationBrakeTrajectorySetElement.x 731 : 1 : = unstructuredSceneEgoInformationBrakeTrajectorySetElementX; 732 : 1 : ::ad::physics::Distance unstructuredSceneEgoInformationBrakeTrajectorySetElementY(1e9); 733 : : unstructuredSceneEgoInformationBrakeTrajectorySetElement.y 734 : 1 : = unstructuredSceneEgoInformationBrakeTrajectorySetElementY; 735 [ + - ]: 1 : unstructuredSceneEgoInformationBrakeTrajectorySet.resize(2, unstructuredSceneEgoInformationBrakeTrajectorySetElement); 736 [ + - ]: 1 : unstructuredSceneEgoInformation.brakeTrajectorySet = unstructuredSceneEgoInformationBrakeTrajectorySet; 737 : 2 : ::ad::physics::Distance2DList unstructuredSceneEgoInformationContinueForwardTrajectorySet; 738 : 1 : ::ad::physics::Distance2D unstructuredSceneEgoInformationContinueForwardTrajectorySetElement; 739 : 1 : ::ad::physics::Distance unstructuredSceneEgoInformationContinueForwardTrajectorySetElementX(1e9); 740 : : unstructuredSceneEgoInformationContinueForwardTrajectorySetElement.x 741 : 1 : = unstructuredSceneEgoInformationContinueForwardTrajectorySetElementX; 742 : 1 : ::ad::physics::Distance unstructuredSceneEgoInformationContinueForwardTrajectorySetElementY(1e9); 743 : : unstructuredSceneEgoInformationContinueForwardTrajectorySetElement.y 744 : 1 : = unstructuredSceneEgoInformationContinueForwardTrajectorySetElementY; 745 [ + - ]: 1 : unstructuredSceneEgoInformationContinueForwardTrajectorySet.resize( 746 : : 2, unstructuredSceneEgoInformationContinueForwardTrajectorySetElement); 747 : : unstructuredSceneEgoInformation.continueForwardTrajectorySet 748 [ + - ]: 1 : = unstructuredSceneEgoInformationContinueForwardTrajectorySet; 749 [ + - ]: 1 : valueA.unstructuredSceneEgoInformation = unstructuredSceneEgoInformation; 750 [ + - ]: 2 : ::ad::rss::state::RssStateSnapshot valueB = mValue; 751 : : 752 [ + - - + : 1 : EXPECT_FALSE(valueA == valueB); - - - - - - - - ] 753 [ + - - + : 1 : EXPECT_TRUE(valueA != valueB); - - - - - - - - ] 754 : 1 : } 755 : : 756 : : #if defined(__clang__) && (__clang_major__ >= 7) 757 : : #pragma GCC diagnostic pop 758 : : #endif