Apollo 11.0
自动驾驶开放平台
apollo::perception::trafficlight::BaseTLPreprocessor类 参考abstract

#include <base_tl_preprocessor.h>

类 apollo::perception::trafficlight::BaseTLPreprocessor 继承关系图:
apollo::perception::trafficlight::BaseTLPreprocessor 的协作图:

Public 成员函数

 BaseTLPreprocessor ()=default
 Construct a new base trafficlight preprocessor object.
 
virtual ~BaseTLPreprocessor ()=default
 Destroy the base trafficlight preprocessor object.
 
virtual bool Init (const TrafficLightPreprocessorInitOptions &options)=0
 Traffic light preprocessing initialization parameters.
 
virtual std::string Name () const =0
 returns the name of the preprocessing plugin.
 
virtual bool UpdateCameraSelection (const camera::CarPose &pose, const TLPreprocessorOption &option, std::vector< base::TrafficLightPtr > *lights)=0
 Select the appropriate camera for preprocessing according to the position of the vehicle and the position of the traffic light.
 
virtual bool SyncInformation (const double ts, const std::string &camera_name)=0
 Determine whether the selected camera is available and synchronize timestamp information.
 
virtual bool UpdateLightsProjection (const camera::CarPose &pose, const TLPreprocessorOption &option, const std::string &camera_name, std::vector< base::TrafficLightPtr > *lights)=0
 Update the traffic light projection status and determine whether the projection exceeds the boundary range.
 
virtual bool SetCameraWorkingFlag (const std::string &camera_name, bool is_working)=0
 Set the camera working flag object.
 
virtual bool GetCameraWorkingFlag (const std::string &camera_name, bool *is_working) const =0
 Get the camera working flag object.
 
virtual const std::vector< std::string > & GetCameraNamesByDescendingFocalLen () const =0
 Get the camera names by descending focal len object.
 

详细描述

在文件 base_tl_preprocessor.h 第 42 行定义.

构造及析构函数说明

◆ BaseTLPreprocessor()

apollo::perception::trafficlight::BaseTLPreprocessor::BaseTLPreprocessor ( )
default

Construct a new base trafficlight preprocessor object.

◆ ~BaseTLPreprocessor()

virtual apollo::perception::trafficlight::BaseTLPreprocessor::~BaseTLPreprocessor ( )
virtualdefault

Destroy the base trafficlight preprocessor object.

成员函数说明

◆ GetCameraNamesByDescendingFocalLen()

virtual const std::vector< std::string > & apollo::perception::trafficlight::BaseTLPreprocessor::GetCameraNamesByDescendingFocalLen ( ) const
pure virtual

Get the camera names by descending focal len object.

返回
const std::vector<std::string>&

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ GetCameraWorkingFlag()

virtual bool apollo::perception::trafficlight::BaseTLPreprocessor::GetCameraWorkingFlag ( const std::string &  camera_name,
bool *  is_working 
) const
pure virtual

Get the camera working flag object.

参数
camera_name
is_working
返回
true
false

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ Init()

virtual bool apollo::perception::trafficlight::BaseTLPreprocessor::Init ( const TrafficLightPreprocessorInitOptions &  options)
pure virtual

Traffic light preprocessing initialization parameters.

参数
options
返回
true
false

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ Name()

virtual std::string apollo::perception::trafficlight::BaseTLPreprocessor::Name ( ) const
pure virtual

returns the name of the preprocessing plugin.

返回
std::string

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ SetCameraWorkingFlag()

virtual bool apollo::perception::trafficlight::BaseTLPreprocessor::SetCameraWorkingFlag ( const std::string &  camera_name,
bool  is_working 
)
pure virtual

Set the camera working flag object.

参数
camera_name
is_working
返回
true
false

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ SyncInformation()

virtual bool apollo::perception::trafficlight::BaseTLPreprocessor::SyncInformation ( const double  ts,
const std::string &  camera_name 
)
pure virtual

Determine whether the selected camera is available and synchronize timestamp information.

参数
ts
camera_name
返回
true
false

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ UpdateCameraSelection()

virtual bool apollo::perception::trafficlight::BaseTLPreprocessor::UpdateCameraSelection ( const camera::CarPose &  pose,
const TLPreprocessorOption &  option,
std::vector< base::TrafficLightPtr > *  lights 
)
pure virtual

Select the appropriate camera for preprocessing according to the position of the vehicle and the position of the traffic light.

参数
pose
option
lights
返回
true
false

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.

◆ UpdateLightsProjection()

virtual bool apollo::perception::trafficlight::BaseTLPreprocessor::UpdateLightsProjection ( const camera::CarPose &  pose,
const TLPreprocessorOption &  option,
const std::string &  camera_name,
std::vector< base::TrafficLightPtr > *  lights 
)
pure virtual

Update the traffic light projection status and determine whether the projection exceeds the boundary range.

参数
pose
option
camera_name
lights
返回
true
false

在 apollo::perception::trafficlight::TLPreprocessor 内被实现.


该类的文档由以下文件生成: