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

#include <third_party_perception_smartereye.h>

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

Public 成员函数

 ThirdPartyPerceptionSmartereye (apollo::cyber::Node *const node)
 
 ThirdPartyPerceptionSmartereye ()=default
 
 ~ThirdPartyPerceptionSmartereye ()=default
 
void OnSmartereye (const apollo::drivers::SmartereyeObstacles &message)
 
void OnSmartereyeLanemark (const apollo::drivers::SmartereyeLanemark &)
 
bool Process (apollo::perception::PerceptionObstacles *const response) override
 
- Public 成员函数 继承自 apollo::third_party_perception::ThirdPartyPerception
 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)
 

额外继承的成员函数

- Protected 属性 继承自 apollo::third_party_perception::ThirdPartyPerception
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_smartereye.h35 行定义.

构造及析构函数说明

◆ ThirdPartyPerceptionSmartereye() [1/2]

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

在文件 third_party_perception_smartereye.cc30 行定义.

32 smartereye_obstacles_reader_ =
34 FLAGS_smartereye_obstacles_topic,
35 [this](const std::shared_ptr<
37 OnSmartereye(*message.get());
38 });
39 smartereye_lanemark_reader_ =
41 FLAGS_smartereye_lanemark_topic,
42 [this](const std::shared_ptr<
44 OnSmartereyeLanemark(*message.get());
45 });
46}
void OnSmartereye(const apollo::drivers::SmartereyeObstacles &message)

◆ ThirdPartyPerceptionSmartereye() [2/2]

apollo::third_party_perception::ThirdPartyPerceptionSmartereye::ThirdPartyPerceptionSmartereye ( )
default

◆ ~ThirdPartyPerceptionSmartereye()

apollo::third_party_perception::ThirdPartyPerceptionSmartereye::~ThirdPartyPerceptionSmartereye ( )
default

成员函数说明

◆ OnSmartereye()

void apollo::third_party_perception::ThirdPartyPerceptionSmartereye::OnSmartereye ( const apollo::drivers::SmartereyeObstacles message)

在文件 third_party_perception_smartereye.cc48 行定义.

49 {
50 ADEBUG << "Received smartereye data: run smartereye callback.";
51 std::lock_guard<std::mutex> lock(third_party_perception_mutex_);
53 message, smartereye_lanemark_, localization_, chassis_);
54}
apollo::localization::LocalizationEstimate localization_
#define ADEBUG
Definition log.h:41
apollo::perception::PerceptionObstacles SmartereyeToPerceptionObstacles(const apollo::drivers::SmartereyeObstacles &smartereye_obstacles, const apollo::drivers::SmartereyeLanemark &smartereye_lanemark, const apollo::localization::LocalizationEstimate &localization, const apollo::canbus::Chassis &chassis)

◆ OnSmartereyeLanemark()

void apollo::third_party_perception::ThirdPartyPerceptionSmartereye::OnSmartereyeLanemark ( const apollo::drivers::SmartereyeLanemark message)

在文件 third_party_perception_smartereye.cc56 行定义.

57 {
58 ADEBUG << "Received smartereye data: run smartereye callback.";
59 std::lock_guard<std::mutex> lock(third_party_perception_mutex_);
60 smartereye_lanemark_.CopyFrom(message);
61}

◆ Process()

bool apollo::third_party_perception::ThirdPartyPerceptionSmartereye::Process ( apollo::perception::PerceptionObstacles *const  response)
overridevirtual

重载 apollo::third_party_perception::ThirdPartyPerception .

在文件 third_party_perception_smartereye.cc63 行定义.

64 {
65 ADEBUG << "Timer is triggered: publish PerceptionObstacles";
66 CHECK_NOTNULL(response);
67
68 std::lock_guard<std::mutex> lock(third_party_perception_mutex_);
69
70 *response = eye_obstacles_;
71
72 common::util::FillHeader(FLAGS_third_party_perception_node_name, response);
73
74 eye_obstacles_.Clear();
75 return true;
76}

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