#include <lidar_driver_factory.h>
|
| LidarDriverFactory (const apollo::drivers::lidar::config &config) |
|
void | RegisterLidarClients () |
| Register the lidar driver of all brands. This function call the Function apollo::common::util::Factory::Register() for all of the lidar. More...
|
|
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. The brand is set in the parameter. More...
|
|
bool | Register (const LidarParameter::LidarBrand &id, LidarDriver * creator) |
| Registers the class given by the creator function, linking it to id. Registration must happen prior to calling CreateObject. More...
|
|
bool | Contains (const LidarParameter::LidarBrand &id) |
|
bool | Unregister (const LidarParameter::LidarBrand &id) |
| Unregisters the class with the given identifier. More...
|
|
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. Need to register id before CreateObject is called. May return nullptr silently. More...
|
|
std::unique_ptr< LidarDriver > | CreateObject (const LidarParameter::LidarBrand &id, Args &&... args) |
| Creates and transfers membership of an object of type matching id. Need to register id before CreateObject is called. More...
|
|
◆ LidarDriverFactory()
apollo::drivers::lidar::LidarDriverFactory::LidarDriverFactory |
( |
const apollo::drivers::lidar::config & |
config | ) |
|
◆ CreateLidarDriver()
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.
- Parameters
-
parameter | The parameter to create the CAN client. |
- Returns
- A pointer to the created CAN client.
◆ RegisterLidarClients()
void apollo::drivers::lidar::LidarDriverFactory::RegisterLidarClients |
( |
| ) |
|
The documentation for this class was generated from the following file: