ad_rss
RssFormulas.hpp
Go to the documentation of this file.
1 // ----------------- BEGIN LICENSE BLOCK ---------------------------------
2 //
3 // Copyright (C) 2018-2021 Intel Corporation
4 //
5 // SPDX-License-Identifier: LGPL-2.1-only
6 //
7 // ----------------- END LICENSE BLOCK -----------------------------------
8 
13 #pragma once
14 
16 
20 namespace ad {
24 namespace rss {
28 namespace situation {
29 
45 bool calculateLongitudinalDistanceOffsetAfterStatedBrakingPattern(physics::Speed const &currentLongitudinalSpeed,
46  physics::Speed const &maxSpeedOnAcceleration,
47  physics::Duration const &responseTime,
48  physics::Acceleration const &acceleration,
49  physics::Acceleration const &deceleration,
50  physics::Distance &distanceOffset);
51 
65 bool calculateLateralDistanceOffsetAfterStatedBrakingPattern(physics::Speed const &currentLateralSpeed,
66  physics::Duration const &responseTime,
67  physics::Acceleration const &acceleration,
68  physics::Acceleration const &deceleration,
69  physics::Distance &distanceOffset);
86 bool calculateSafeLongitudinalDistanceSameDirection(VehicleState const &leadingVehicle,
87  VehicleState const &followingVehicle,
88  physics::Distance &safeDistance);
89 
108 bool checkSafeLongitudinalDistanceSameDirection(VehicleState const &leadingVehicle,
109  VehicleState const &followingVehicle,
110  physics::Distance const &vehicleDistance,
111  physics::Distance &safeDistance,
112  bool &isDistanceSafe);
113 
134 bool calculateSafeLongitudinalDistanceOppositeDirection(VehicleState const &correctVehicle,
135  VehicleState const &oppositeVehicle,
136  physics::Distance &safeDistance);
137 
160 bool checkSafeLongitudinalDistanceOppositeDirection(VehicleState const &correctVehicle,
161  VehicleState const &oppositeVehicle,
162  physics::Distance const &vehicleDistance,
163  physics::Distance &safeDistance,
164  bool &isDistanceSafe);
165 
184 bool checkStopInFrontIntersection(VehicleState const &vehicle, physics::Distance &safeDistance, bool &isDistanceSafe);
185 
210 bool calculateSafeLateralDistance(VehicleState const &leftVehicle,
211  VehicleState const &rightVehicle,
212  physics::Distance &safeDistance);
213 
240 bool checkSafeLateralDistance(VehicleState const &leftVehicle,
241  VehicleState const &rightVehicle,
242  physics::Distance const &vehicleDistance,
243  physics::Distance &safeDistance,
244  bool &isDistanceSafe);
245 
246 } // namespace situation
247 } // namespace rss
248 } // namespace ad
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::situation::calculateSafeLongitudinalDistanceOppositeDirection
bool calculateSafeLongitudinalDistanceOppositeDirection(VehicleState const &correctVehicle, VehicleState const &oppositeVehicle, physics::Distance &safeDistance)
Calculate the safe longitudinal distance between to vehicles driving in opposite direction The calcul...
ad::rss::situation::calculateLateralDistanceOffsetAfterStatedBrakingPattern
bool calculateLateralDistanceOffsetAfterStatedBrakingPattern(physics::Speed const &currentLateralSpeed, physics::Duration const &responseTime, physics::Acceleration const &acceleration, physics::Acceleration const &deceleration, physics::Distance &distanceOffset)
Calculate the lateral distance offset of a vehicle when applying the "stated braking pattern" with gi...
VehicleState.hpp
ad::rss::situation::checkSafeLongitudinalDistanceOppositeDirection
bool checkSafeLongitudinalDistanceOppositeDirection(VehicleState const &correctVehicle, VehicleState const &oppositeVehicle, physics::Distance const &vehicleDistance, physics::Distance &safeDistance, bool &isDistanceSafe)
Check if the longitudinal distance between to vehicles driving in opposite direction is safe....
ad::rss::situation::calculateSafeLongitudinalDistanceSameDirection
bool calculateSafeLongitudinalDistanceSameDirection(VehicleState const &leadingVehicle, VehicleState const &followingVehicle, physics::Distance &safeDistance)
Calculate the "safe longitudinal distance" between the two vehicles, Assuming: Maximum deceleration f...
ad::rss::situation::checkSafeLateralDistance
bool checkSafeLateralDistance(VehicleState const &leftVehicle, VehicleState const &rightVehicle, physics::Distance const &vehicleDistance, physics::Distance &safeDistance, bool &isDistanceSafe)
Check if the lateral distance between to vehicles is safe Assuming: Both vehicles apply "stated break...
ad::rss::situation::calculateSafeLateralDistance
bool calculateSafeLateralDistance(VehicleState const &leftVehicle, VehicleState const &rightVehicle, physics::Distance &safeDistance)
Calculate the "safe lateral distance" between the two vehicles, Assuming: Both vehicles apply "stated...
ad::rss::situation::checkStopInFrontIntersection
bool checkStopInFrontIntersection(VehicleState const &vehicle, physics::Distance &safeDistance, bool &isDistanceSafe)
Check if the vehicle can safely break longitudinaly in front of the intersection. Assuming: Using "st...
ad::rss::situation::checkSafeLongitudinalDistanceSameDirection
bool checkSafeLongitudinalDistanceSameDirection(VehicleState const &leadingVehicle, VehicleState const &followingVehicle, physics::Distance const &vehicleDistance, physics::Distance &safeDistance, bool &isDistanceSafe)
Check if the longitudinal distance between the two vehicles is safe. Assuming: Maximum deceleration f...
ad::rss::situation::calculateLongitudinalDistanceOffsetAfterStatedBrakingPattern
bool calculateLongitudinalDistanceOffsetAfterStatedBrakingPattern(physics::Speed const &currentLongitudinalSpeed, physics::Speed const &maxSpeedOnAcceleration, physics::Duration const &responseTime, physics::Acceleration const &acceleration, physics::Acceleration const &deceleration, physics::Distance &distanceOffset)
Calculate the longitudinal distance offset of a vehicle when applying the "stated braking pattern" wi...