scenario_simulator_v2 C++ API
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
openscenario_interpreter::syntax::RelativeDistanceCondition Struct Reference

#include <relative_distance_condition.hpp>

Inheritance diagram for openscenario_interpreter::syntax::RelativeDistanceCondition:
Inheritance graph
[legend]
Collaboration diagram for openscenario_interpreter::syntax::RelativeDistanceCondition:
Collaboration graph
[legend]

Public Member Functions

 RelativeDistanceCondition (const pugi::xml_node &, Scope &, const TriggeringEntities &)
 
auto description () const -> String
 
auto evaluate () -> Object
 

Static Public Member Functions

template<CoordinateSystem::value_type , RelativeDistanceType::value_type , RoutingAlgorithm::value_type , Boolean::value_type >
static auto distance (const EntityRef &, const EntityRef &) -> double
 
static auto evaluate (const Entities *, const Entity &, const Entity &, CoordinateSystem, RelativeDistanceType, RoutingAlgorithm, Boolean) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 
template<>
auto distance (const EntityRef &triggering_entity, const EntityRef &entity_ref) -> double
 

Public Attributes

const CoordinateSystem coordinate_system
 
const Entity entity_ref
 
const Boolean freespace
 
const RelativeDistanceType relative_distance_type
 
const RoutingAlgorithm routing_algorithm
 
const Rule rule
 
const Double value
 
const TriggeringEntities triggering_entities
 
std::vector< std::valarray< double > > results
 

Constructor & Destructor Documentation

◆ RelativeDistanceCondition()

openscenario_interpreter::syntax::RelativeDistanceCondition::RelativeDistanceCondition ( const pugi::xml_node &  node,
Scope scope,
const TriggeringEntities triggering_entities 
)
explicit

Member Function Documentation

◆ description()

auto openscenario_interpreter::syntax::RelativeDistanceCondition::description ( ) const -> String

◆ distance() [1/15]

template<CoordinateSystem::value_type , RelativeDistanceType::value_type , RoutingAlgorithm::value_type , Boolean::value_type >
static auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef ,
const EntityRef  
) -> double
inlinestatic

◆ distance() [2/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [3/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static
Note
This implementation differs from the OpenSCENARIO standard. See the section "6.4. Distances" in the OpenSCENARIO User Guide.

◆ distance() [4/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [5/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static
Note
This implementation differs from the OpenSCENARIO standard. See the section "6.4. Distances" in the OpenSCENARIO User Guide.

◆ distance() [6/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [7/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [8/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [9/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [10/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [11/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [12/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [13/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [14/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ distance() [15/15]

template<>
auto openscenario_interpreter::syntax::RelativeDistanceCondition::distance ( const EntityRef triggering_entity,
const EntityRef entity_ref 
) -> double
static

◆ evaluate() [1/2]

auto openscenario_interpreter::syntax::RelativeDistanceCondition::evaluate ( ) -> Object

◆ evaluate() [2/2]

auto openscenario_interpreter::syntax::RelativeDistanceCondition::evaluate ( const Entities entities,
const Entity triggering_entity,
const Entity entity_ref,
CoordinateSystem  coordinate_system,
RelativeDistanceType  relative_distance_type,
RoutingAlgorithm  routing_algorithm,
Boolean  freespace 
) -> double
static

Member Data Documentation

◆ coordinate_system

const CoordinateSystem openscenario_interpreter::syntax::RelativeDistanceCondition::coordinate_system

◆ entity_ref

const Entity openscenario_interpreter::syntax::RelativeDistanceCondition::entity_ref

◆ freespace

const Boolean openscenario_interpreter::syntax::RelativeDistanceCondition::freespace

◆ relative_distance_type

const RelativeDistanceType openscenario_interpreter::syntax::RelativeDistanceCondition::relative_distance_type

◆ results

std::vector<std::valarray<double> > openscenario_interpreter::syntax::RelativeDistanceCondition::results

◆ routing_algorithm

const RoutingAlgorithm openscenario_interpreter::syntax::RelativeDistanceCondition::routing_algorithm

◆ rule

const Rule openscenario_interpreter::syntax::RelativeDistanceCondition::rule

◆ triggering_entities

const TriggeringEntities openscenario_interpreter::syntax::RelativeDistanceCondition::triggering_entities

◆ value

const Double openscenario_interpreter::syntax::RelativeDistanceCondition::value

The documentation for this struct was generated from the following files: