Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::prediction::ADCTrajectoryContainer Class Reference

#include <adc_trajectory_container.h>

Inheritance diagram for apollo::prediction::ADCTrajectoryContainer:
Inheritance graph
Collaboration diagram for apollo::prediction::ADCTrajectoryContainer:
Collaboration graph

Public Member Functions

 ADCTrajectoryContainer ()
 Constructor. More...
 
virtual ~ADCTrajectoryContainer ()=default
 Destructor. More...
 
void Insert (const ::google::protobuf::Message &message) override
 Insert a data message into the container. More...
 
bool IsProtected () const
 Get the right-of-way status of ADC. More...
 
bool IsPointInJunction (const common::PathPoint &point) const
 Check if a point is in the first junction of the adc trajectory. More...
 
bool HasOverlap (const LaneSequence &lane_sequence) const
 Has overlap with ADC trajectory. More...
 
void SetPosition (const common::math::Vec2d &position)
 Set ADC position. More...
 
std::shared_ptr< const hdmap::JunctionInfoADCJunction () const
 Get ADC junction. More...
 
double ADCDistanceToJunction () const
 Compute ADC's distance to junction. More...
 
const planning::ADCTrajectory & adc_trajectory () const
 Get ADC planning trajectory. More...
 
bool IsLaneIdInReferenceLine (const std::string &lane_id) const
 Determine if a lane ID is in the reference line. More...
 
bool IsLaneIdInTargetReferenceLine (const std::string &lane_id) const
 
const std::vector< std::string > & GetADCLaneIDSequence () const
 
const std::vector< std::string > & GetADCTargetLaneIDSequence () const
 
void SetJunction (const std::string &junction_id, const double distance)
 
- Public Member Functions inherited from apollo::prediction::Container
 Container ()=default
 Constructor. More...
 
virtual ~Container ()=default
 Destructor. More...
 

Constructor & Destructor Documentation

◆ ADCTrajectoryContainer()

apollo::prediction::ADCTrajectoryContainer::ADCTrajectoryContainer ( )

Constructor.

◆ ~ADCTrajectoryContainer()

virtual apollo::prediction::ADCTrajectoryContainer::~ADCTrajectoryContainer ( )
virtualdefault

Destructor.

Member Function Documentation

◆ adc_trajectory()

const planning::ADCTrajectory& apollo::prediction::ADCTrajectoryContainer::adc_trajectory ( ) const

Get ADC planning trajectory.

Returns
ADC planning trajectory

◆ ADCDistanceToJunction()

double apollo::prediction::ADCTrajectoryContainer::ADCDistanceToJunction ( ) const

Compute ADC's distance to junction.

Returns
ADC's distance to junction

◆ ADCJunction()

std::shared_ptr<const hdmap::JunctionInfo> apollo::prediction::ADCTrajectoryContainer::ADCJunction ( ) const

Get ADC junction.

Returns
A pointer to ADC junction information

◆ GetADCLaneIDSequence()

const std::vector<std::string>& apollo::prediction::ADCTrajectoryContainer::GetADCLaneIDSequence ( ) const

◆ GetADCTargetLaneIDSequence()

const std::vector<std::string>& apollo::prediction::ADCTrajectoryContainer::GetADCTargetLaneIDSequence ( ) const

◆ HasOverlap()

bool apollo::prediction::ADCTrajectoryContainer::HasOverlap ( const LaneSequence &  lane_sequence) const

Has overlap with ADC trajectory.

Returns
True if a target lane sequence has overlap with ADC trajectory

◆ Insert()

void apollo::prediction::ADCTrajectoryContainer::Insert ( const ::google::protobuf::Message &  message)
overridevirtual

Insert a data message into the container.

Parameters
Datamessage to be inserted in protobuf

Implements apollo::prediction::Container.

◆ IsLaneIdInReferenceLine()

bool apollo::prediction::ADCTrajectoryContainer::IsLaneIdInReferenceLine ( const std::string &  lane_id) const

Determine if a lane ID is in the reference line.

Returns
The lane ID to be investigated

◆ IsLaneIdInTargetReferenceLine()

bool apollo::prediction::ADCTrajectoryContainer::IsLaneIdInTargetReferenceLine ( const std::string &  lane_id) const

◆ IsPointInJunction()

bool apollo::prediction::ADCTrajectoryContainer::IsPointInJunction ( const common::PathPoint &  point) const

Check if a point is in the first junction of the adc trajectory.

Parameters
Point
Returns
True if the point is in the first junction of the adc trajectory

◆ IsProtected()

bool apollo::prediction::ADCTrajectoryContainer::IsProtected ( ) const

Get the right-of-way status of ADC.

Returns
The right-of-way status of ADC

◆ SetJunction()

void apollo::prediction::ADCTrajectoryContainer::SetJunction ( const std::string &  junction_id,
const double  distance 
)

◆ SetPosition()

void apollo::prediction::ADCTrajectoryContainer::SetPosition ( const common::math::Vec2d position)

Set ADC position.


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