Apollo 10.0
自动驾驶开放平台
apollo::third_party_perception::ThirdPartyPerception类 参考

#include <third_party_perception_base.h>

类 apollo::third_party_perception::ThirdPartyPerception 继承关系图:
apollo::third_party_perception::ThirdPartyPerception 的协作图:

Public 成员函数

 ThirdPartyPerception (apollo::cyber::Node *const node)
 
 ThirdPartyPerception ()=default
 
virtual ~ThirdPartyPerception ()=default
 
std::string Name () const
 
apollo::common::Status Init ()
 
apollo::common::Status Start ()
 
void Stop ()
 
void OnLocalization (const apollo::localization::LocalizationEstimate &message)
 
void OnChassis (const apollo::canbus::Chassis &message)
 
virtual bool Process (apollo::perception::PerceptionObstacles *const response)
 

Protected 属性

std::mutex third_party_perception_mutex_
 
apollo::localization::LocalizationEstimate localization_
 
apollo::canbus::Chassis chassis_
 
RadarObstacles current_radar_obstacles_
 
RadarObstacles last_radar_obstacles_
 
std::shared_ptr< apollo::cyber::Nodenode_ = nullptr
 
std::shared_ptr< apollo::cyber::Reader< apollo::localization::LocalizationEstimate > > localization_reader_ = nullptr
 
std::shared_ptr< apollo::cyber::Reader< apollo::canbus::Chassis > > chassis_reader_ = nullptr
 

详细描述

在文件 third_party_perception_base.h44 行定义.

构造及析构函数说明

◆ ThirdPartyPerception() [1/2]

apollo::third_party_perception::ThirdPartyPerception::ThirdPartyPerception ( apollo::cyber::Node *const  node)
explicit

在文件 third_party_perception_base.cc29 行定义.

30 : node_(node) {
31
34 FLAGS_localization_topic,
35 [this](
36 const std::shared_ptr<apollo::localization::LocalizationEstimate>
37 &localization) {
38 OnLocalization(*localization.get());
39 });
40
42 FLAGS_chassis_topic,
43 [this](const std::shared_ptr<apollo::canbus::Chassis> &chassis) {
44 OnChassis(*chassis.get());
45 });
46}
std::shared_ptr< apollo::cyber::Reader< apollo::canbus::Chassis > > chassis_reader_
std::shared_ptr< apollo::cyber::Reader< apollo::localization::LocalizationEstimate > > localization_reader_
void OnChassis(const apollo::canbus::Chassis &message)
void OnLocalization(const apollo::localization::LocalizationEstimate &message)

◆ ThirdPartyPerception() [2/2]

apollo::third_party_perception::ThirdPartyPerception::ThirdPartyPerception ( )
default

◆ ~ThirdPartyPerception()

virtual apollo::third_party_perception::ThirdPartyPerception::~ThirdPartyPerception ( )
virtualdefault

成员函数说明

◆ Init()

Status apollo::third_party_perception::ThirdPartyPerception::Init ( )

在文件 third_party_perception_base.cc52 行定义.

52 {
53 return Status::OK();
54}
static Status OK()
generate a success status.
Definition status.h:60

◆ Name()

std::string apollo::third_party_perception::ThirdPartyPerception::Name ( ) const

在文件 third_party_perception_base.cc48 行定义.

48 {
49 return FLAGS_third_party_perception_node_name;
50}

◆ OnChassis()

void apollo::third_party_perception::ThirdPartyPerception::OnChassis ( const apollo::canbus::Chassis message)

在文件 third_party_perception_base.cc60 行定义.

60 {
61 ADEBUG << "Received chassis data: run chassis callback.";
62 std::lock_guard<std::mutex> lock(third_party_perception_mutex_);
63 chassis_.CopyFrom(message);
64}
#define ADEBUG
Definition log.h:41

◆ OnLocalization()

void apollo::third_party_perception::ThirdPartyPerception::OnLocalization ( const apollo::localization::LocalizationEstimate message)

在文件 third_party_perception_base.cc66 行定义.

66 {
67 ADEBUG << "Received localization data: run localization callback.";
68 std::lock_guard<std::mutex> lock(third_party_perception_mutex_);
69 localization_.CopyFrom(message);
70}
apollo::localization::LocalizationEstimate localization_

◆ Process()

bool apollo::third_party_perception::ThirdPartyPerception::Process ( apollo::perception::PerceptionObstacles *const  response)
virtual

◆ Start()

Status apollo::third_party_perception::ThirdPartyPerception::Start ( )

在文件 third_party_perception_base.cc56 行定义.

56{ return Status::OK(); }

◆ Stop()

void apollo::third_party_perception::ThirdPartyPerception::Stop ( )

在文件 third_party_perception_base.cc58 行定义.

58{}

类成员变量说明

◆ chassis_

apollo::canbus::Chassis apollo::third_party_perception::ThirdPartyPerception::chassis_
protected

在文件 third_party_perception_base.h65 行定义.

◆ chassis_reader_

std::shared_ptr<apollo::cyber::Reader<apollo::canbus::Chassis> > apollo::third_party_perception::ThirdPartyPerception::chassis_reader_ = nullptr
protected

在文件 third_party_perception_base.h73 行定义.

◆ current_radar_obstacles_

RadarObstacles apollo::third_party_perception::ThirdPartyPerception::current_radar_obstacles_
protected

在文件 third_party_perception_base.h66 行定义.

◆ last_radar_obstacles_

RadarObstacles apollo::third_party_perception::ThirdPartyPerception::last_radar_obstacles_
protected

在文件 third_party_perception_base.h67 行定义.

◆ localization_

apollo::localization::LocalizationEstimate apollo::third_party_perception::ThirdPartyPerception::localization_
protected

在文件 third_party_perception_base.h64 行定义.

◆ localization_reader_

std::shared_ptr< apollo::cyber::Reader<apollo::localization::LocalizationEstimate> > apollo::third_party_perception::ThirdPartyPerception::localization_reader_ = nullptr
protected

在文件 third_party_perception_base.h71 行定义.

◆ node_

std::shared_ptr<apollo::cyber::Node> apollo::third_party_perception::ThirdPartyPerception::node_ = nullptr
protected

在文件 third_party_perception_base.h68 行定义.

◆ third_party_perception_mutex_

std::mutex apollo::third_party_perception::ThirdPartyPerception::third_party_perception_mutex_
protected

在文件 third_party_perception_base.h63 行定义.


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