26namespace third_party_perception {
32 smartereye_obstacles_reader_ =
34 FLAGS_smartereye_obstacles_topic,
35 [
this](
const std::shared_ptr<
39 smartereye_lanemark_reader_ =
41 FLAGS_smartereye_lanemark_topic,
42 [
this](
const std::shared_ptr<
50 ADEBUG <<
"Received smartereye data: run smartereye callback.";
58 ADEBUG <<
"Received smartereye data: run smartereye callback.";
60 smartereye_lanemark_.CopyFrom(message);
65 ADEBUG <<
"Timer is triggered: publish PerceptionObstacles";
66 CHECK_NOTNULL(response);
70 *response = eye_obstacles_;
72 common::util::FillHeader(FLAGS_third_party_perception_node_name, response);
74 eye_obstacles_.Clear();
Node is the fundamental building block of Cyber RT.
void OnSmartereyeLanemark(const apollo::drivers::SmartereyeLanemark &)
bool Process(apollo::perception::PerceptionObstacles *const response) override
ThirdPartyPerceptionSmartereye()=default
void OnSmartereye(const apollo::drivers::SmartereyeObstacles &message)
apollo::canbus::Chassis chassis_
std::mutex third_party_perception_mutex_
std::shared_ptr< apollo::cyber::Node > node_
apollo::localization::LocalizationEstimate localization_
Some string util functions.
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)