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

#include <obstacles_container.h>

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

Public Member Functions

 ObstaclesContainer ()
 Constructor. More...
 
 ObstaclesContainer (const SubmoduleOutput &submodule_output)
 Constructor from container output. More...
 
virtual ~ObstaclesContainer ()=default
 Destructor. More...
 
void Insert (const ::google::protobuf::Message &message) override
 Insert a data message into the container. More...
 
void InsertPerceptionObstacle (const perception::PerceptionObstacle &perception_obstacle, const double timestamp)
 Insert an perception obstacle. More...
 
void InsertFeatureProto (const Feature &feature)
 Insert a feature proto message into the container. More...
 
void BuildLaneGraph ()
 Build lane graph for obstacles. More...
 
void BuildJunctionFeature ()
 Build junction feature for obstacles. More...
 
ObstacleGetObstacle (const int id)
 Get obstacle pointer. More...
 
void Clear ()
 Clear obstacle container. More...
 
void CleanUp ()
 
size_t NumOfObstacles ()
 
const apollo::perception::PerceptionObstacle & GetPerceptionObstacle (const int id)
 
const std::vector< int > & curr_frame_movable_obstacle_ids ()
 Get movable obstacle IDs in the current frame. More...
 
const std::vector< int > & curr_frame_unmovable_obstacle_ids ()
 Get unmovable obstacle IDs in the current frame. More...
 
const std::vector< int > & curr_frame_considered_obstacle_ids ()
 Get non-ignore obstacle IDs in the current frame. More...
 
void SetConsideredObstacleIds ()
 
std::vector< int > curr_frame_obstacle_ids ()
 Get current frame obstacle IDs in the current frame. More...
 
double timestamp () const
 
SubmoduleOutput GetSubmoduleOutput (const size_t history_size, const apollo::cyber::Time &frame_start_time)
 
const Scenario & curr_scenario () const
 Get current scenario. More...
 
ObstacleClustersGetClustersPtr () const
 Get the raw pointer of clusters_. More...
 
JunctionAnalyzerGetJunctionAnalyzer ()
 
- Public Member Functions inherited from apollo::prediction::Container
 Container ()=default
 Constructor. More...
 
virtual ~Container ()=default
 Destructor. More...
 

Constructor & Destructor Documentation

◆ ObstaclesContainer() [1/2]

apollo::prediction::ObstaclesContainer::ObstaclesContainer ( )

Constructor.

◆ ObstaclesContainer() [2/2]

apollo::prediction::ObstaclesContainer::ObstaclesContainer ( const SubmoduleOutput submodule_output)
explicit

Constructor from container output.

◆ ~ObstaclesContainer()

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

Destructor.

Member Function Documentation

◆ BuildJunctionFeature()

void apollo::prediction::ObstaclesContainer::BuildJunctionFeature ( )

Build junction feature for obstacles.

◆ BuildLaneGraph()

void apollo::prediction::ObstaclesContainer::BuildLaneGraph ( )

Build lane graph for obstacles.

◆ CleanUp()

void apollo::prediction::ObstaclesContainer::CleanUp ( )

◆ Clear()

void apollo::prediction::ObstaclesContainer::Clear ( )

Clear obstacle container.

◆ curr_frame_considered_obstacle_ids()

const std::vector<int>& apollo::prediction::ObstaclesContainer::curr_frame_considered_obstacle_ids ( )

Get non-ignore obstacle IDs in the current frame.

Returns
Non-ignore obstacle IDs in the current frame

◆ curr_frame_movable_obstacle_ids()

const std::vector<int>& apollo::prediction::ObstaclesContainer::curr_frame_movable_obstacle_ids ( )

Get movable obstacle IDs in the current frame.

Returns
Movable obstacle IDs in the current frame

◆ curr_frame_obstacle_ids()

std::vector<int> apollo::prediction::ObstaclesContainer::curr_frame_obstacle_ids ( )

Get current frame obstacle IDs in the current frame.

Returns
Current frame obstacle IDs in the current frame

◆ curr_frame_unmovable_obstacle_ids()

const std::vector<int>& apollo::prediction::ObstaclesContainer::curr_frame_unmovable_obstacle_ids ( )

Get unmovable obstacle IDs in the current frame.

Returns
unmovable obstacle IDs in the current frame

◆ curr_scenario()

const Scenario& apollo::prediction::ObstaclesContainer::curr_scenario ( ) const

Get current scenario.

◆ GetClustersPtr()

ObstacleClusters* apollo::prediction::ObstaclesContainer::GetClustersPtr ( ) const

Get the raw pointer of clusters_.

◆ GetJunctionAnalyzer()

JunctionAnalyzer* apollo::prediction::ObstaclesContainer::GetJunctionAnalyzer ( )

◆ GetObstacle()

Obstacle* apollo::prediction::ObstaclesContainer::GetObstacle ( const int  id)

Get obstacle pointer.

Parameters
ObstacleID
Returns
Obstacle pointer

◆ GetPerceptionObstacle()

const apollo::perception::PerceptionObstacle& apollo::prediction::ObstaclesContainer::GetPerceptionObstacle ( const int  id)

◆ GetSubmoduleOutput()

SubmoduleOutput apollo::prediction::ObstaclesContainer::GetSubmoduleOutput ( const size_t  history_size,
const apollo::cyber::Time frame_start_time 
)

◆ Insert()

void apollo::prediction::ObstaclesContainer::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.

◆ InsertFeatureProto()

void apollo::prediction::ObstaclesContainer::InsertFeatureProto ( const Feature &  feature)

Insert a feature proto message into the container.

Parameters
featureproto message

◆ InsertPerceptionObstacle()

void apollo::prediction::ObstaclesContainer::InsertPerceptionObstacle ( const perception::PerceptionObstacle &  perception_obstacle,
const double  timestamp 
)

Insert an perception obstacle.

Parameters
Perceptionobstacle Timestamp

◆ NumOfObstacles()

size_t apollo::prediction::ObstaclesContainer::NumOfObstacles ( )
inline

◆ SetConsideredObstacleIds()

void apollo::prediction::ObstaclesContainer::SetConsideredObstacleIds ( )

◆ timestamp()

double apollo::prediction::ObstaclesContainer::timestamp ( ) const

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