ad_rss
Namespaces | Functions
RssFormulas.hpp File Reference
#include "ad/rss/situation/VehicleState.hpp"
Include dependency graph for RssFormulas.hpp:

Go to the source code of this file.

Namespaces

 ad
 namespace ad
 
 ad::rss
 namespace rss
 
 ad::rss::situation
 namespace situation
 

Functions

bool ad::rss::situation::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" with given deceleration. More...
 
bool ad::rss::situation::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 given deceleration. More...
 
bool ad::rss::situation::calculateSafeLongitudinalDistanceSameDirection (VehicleState const &leadingVehicle, VehicleState const &followingVehicle, physics::Distance &safeDistance)
 Calculate the "safe longitudinal distance" between the two vehicles, Assuming: Maximum deceleration for leading vehicle, and "stated breaking pattern" for following vehicle. More...
 
bool ad::rss::situation::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 for leading vehicle, and "stated breaking pattern" for following vehicle. More...
 
bool ad::rss::situation::calculateSafeLongitudinalDistanceOppositeDirection (VehicleState const &correctVehicle, VehicleState const &oppositeVehicle, physics::Distance &safeDistance)
 Calculate the safe longitudinal distance between to vehicles driving in opposite direction The calculation will assume that the correctVehicle is on the correct lane and oppositeVehicle on an opposite lane. More...
 
bool ad::rss::situation::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. The check will assume that the correctVehicle is on the correct lane and oppositeVehicle on an opposite lane. More...
 
bool ad::rss::situation::checkStopInFrontIntersection (VehicleState const &vehicle, physics::Distance &safeDistance, bool &isDistanceSafe)
 Check if the vehicle can safely break longitudinaly in front of the intersection. Assuming: Using "stated breaking pattern" for breaking. More...
 
bool ad::rss::situation::calculateSafeLateralDistance (VehicleState const &leftVehicle, VehicleState const &rightVehicle, physics::Distance &safeDistance)
 Calculate the "safe lateral distance" between the two vehicles, Assuming: Both vehicles apply "stated breaking pattern". More...
 
bool ad::rss::situation::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 breaking pattern". More...