Apollo 10.0
自动驾驶开放平台
|
#include <lidar_driver_factory.h>
Public 成员函数 | |
LidarDriverFactory (const apollo::drivers::lidar::config &config) | |
void | RegisterLidarClients () |
Register the lidar driver of all brands. | |
std::unique_ptr< LidarDriver > | CreateLidarDriver (const std::shared_ptr<::apollo::cyber::Node > &node, const apollo::drivers::lidar::config ¶meter) |
Create a pointer to a specified brand of lidar. | |
![]() | |
bool | Register (const LidarParameter::LidarBrand &id, LidarDriver * creator) |
Registers the class given by the creator function, linking it to id. | |
bool | Contains (const LidarParameter::LidarBrand &id) |
bool | Unregister (const LidarParameter::LidarBrand &id) |
Unregisters the class with the given identifier | |
void | Clear () |
bool | Empty () const |
std::unique_ptr< LidarDriver > | CreateObjectOrNull (const LidarParameter::LidarBrand &id, Args &&... args) |
Creates and transfers membership of an object of type matching id. | |
std::unique_ptr< LidarDriver > | CreateObject (const LidarParameter::LidarBrand &id, Args &&... args) |
Creates and transfers membership of an object of type matching id. | |
在文件 lidar_driver_factory.h 第 45 行定义.
apollo::drivers::lidar::LidarDriverFactory::LidarDriverFactory | ( | const apollo::drivers::lidar::config & | config | ) |
在文件 lidar_driver_factory.cc 第 27 行定义.
std::unique_ptr< LidarDriver > apollo::drivers::lidar::LidarDriverFactory::CreateLidarDriver | ( | const std::shared_ptr<::apollo::cyber::Node > & | node, |
const apollo::drivers::lidar::config & | parameter | ||
) |
Create a pointer to a specified brand of lidar.
The brand is set in the parameter.
parameter | The parameter to create the CAN client. |
在文件 lidar_driver_factory.cc 第 50 行定义.
void apollo::drivers::lidar::LidarDriverFactory::RegisterLidarClients | ( | ) |
Register the lidar driver of all brands.
This function call the Function apollo::common::util::Factory::Register() for all of the lidar.
在文件 lidar_driver_factory.cc 第 30 行定义.