25 #include <unordered_map> 61 std::unique_ptr<CanClient>
CreateCANClient(
const CANCardParameter ¶meter);
CanClientFactory inherites apollo::common::util::Factory.
Definition: can_client_factory.h:44
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Defines the CanFrame struct and CanClient interface.
std::unique_ptr< CanClient > CreateCANClient(const CANCardParameter ¶meter)
Create a pointer to a specified brand of CAN client. The brand is set in the parameter.
Implements a Factory design pattern with Register and Create methods.
Definition: factory.h:60
#define DECLARE_SINGLETON(classname)
Definition: macros.h:52
Defines the Factory class.
void RegisterCanClients()
Register the CAN clients of all brands. This function call the Function apollo::common::util::Factory...