ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::fun::DistanceToLaneEndConstraint Class Reference

#include <basicconstraintsandreferences.h>

Inheritance diagram for adore::fun::DistanceToLaneEndConstraint:
Inheritance graph
Collaboration diagram for adore::fun::DistanceToLaneEndConstraint:
Collaboration graph

Public Member Functions

 DistanceToLaneEndConstraint (adore::view::ALane *lfv, adore::params::APVehicle *pvehicle, adore::params::APTrajectoryGeneration *pgen, adore::params::APTacticalPlanner *ptac)
 
void update (double t0, double s0, double ds0) override
 
virtual double getValue (double t, double s, double ds) const override
 
virtual ConstraintDirection getDirection () override
 
virtual int getDimension () override
 
virtual int getDerivative () override
 

Private Attributes

adore::view::ALanelfv_
 
adore::params::APVehiclepvehicle_
 
adore::params::APTrajectoryGenerationpgen_
 
adore::params::APTacticalPlannerptac_
 
double stopDistance_
 
double distance_
 

Additional Inherited Members

- Public Types inherited from adore::fun::ANominalConstraint
enum  ConstraintDirection { LB , UB }
 

Detailed Description

DistanceToLaneEndConstraint - use this as constraint to avoid moving too close to end of a lane

Constructor & Destructor Documentation

◆ DistanceToLaneEndConstraint()

adore::fun::DistanceToLaneEndConstraint::DistanceToLaneEndConstraint ( adore::view::ALane lfv,
adore::params::APVehicle pvehicle,
adore::params::APTrajectoryGeneration pgen,
adore::params::APTacticalPlanner ptac 
)
inline

Member Function Documentation

◆ getDerivative()

virtual int adore::fun::DistanceToLaneEndConstraint::getDerivative ( )
inlineoverridevirtual

Determine for which derivative of given dimension this constraint is responsible.

Returns
applicable to which state derivative

Implements adore::fun::ANominalConstraint.

◆ getDimension()

virtual int adore::fun::DistanceToLaneEndConstraint::getDimension ( )
inlineoverridevirtual

Determine for which dimension this constraint is responsible (e.g. longitudinal, lateral, etc.)

Returns
applicable to which dimension, depends on setup of planner

Implements adore::fun::ANominalConstraint.

◆ getDirection()

virtual ConstraintDirection adore::fun::DistanceToLaneEndConstraint::getDirection ( )
inlineoverridevirtual

Determine whether this constraint is an upper or lower bound.

Returns
lb or ub

Implements adore::fun::ANominalConstraint.

◆ getValue()

virtual double adore::fun::DistanceToLaneEndConstraint::getValue ( double  t,
double  s,
double  ds 
) const
inlineoverridevirtual

return the value of the constraint at a certain time and position

Parameters
tthe time
sprogress along the road-relative coordinate system
dsderivative of s
Returns
value of the constraint (e.g. vmax for a speed limit)

Implements adore::fun::ANominalConstraint.

◆ update()

void adore::fun::DistanceToLaneEndConstraint::update ( double  t0,
double  s0,
double  ds0 
)
inlineoverridevirtual

Refresh values of the constraint object. Allows parameters and precomputations to buffered for one planning cycle.

Parameters
t0start time for planning
s0start progress in road-relative coordinate system
ds0derivative of s at t0

Implements adore::fun::ANominalConstraint.

Here is the call graph for this function:

Member Data Documentation

◆ distance_

double adore::fun::DistanceToLaneEndConstraint::distance_
private

◆ lfv_

adore::view::ALane* adore::fun::DistanceToLaneEndConstraint::lfv_
private

◆ pgen_

adore::params::APTrajectoryGeneration* adore::fun::DistanceToLaneEndConstraint::pgen_
private

◆ ptac_

adore::params::APTacticalPlanner* adore::fun::DistanceToLaneEndConstraint::ptac_
private

◆ pvehicle_

adore::params::APVehicle* adore::fun::DistanceToLaneEndConstraint::pvehicle_
private

◆ stopDistance_

double adore::fun::DistanceToLaneEndConstraint::stopDistance_
private

The documentation for this class was generated from the following file: