Apollo
6.0
Open source self driving car software
|
CAN receiver. More...
#include <can_receiver.h>
Public Member Functions | |
CanReceiver ()=default | |
Constructor. More... | |
virtual | ~CanReceiver ()=default |
Destructor. More... | |
common::ErrorCode | Init (CanClient *can_client, MessageManager< SensorType > *pt_manager, bool enable_log) |
Initialize by a CAN client, message manager. More... | |
bool | IsRunning () const |
Get the working status of this CAN receiver. To check if it is running. More... | |
::apollo::common::ErrorCode | Start () |
Start the CAN receiver. More... | |
void | Stop () |
Stop the CAN receiver. More... | |
CAN receiver.
|
default |
Constructor.
|
virtualdefault |
Destructor.
apollo::common::ErrorCode apollo::drivers::canbus::CanReceiver< SensorType >::Init | ( | CanClient * | can_client, |
MessageManager< SensorType > * | pt_manager, | ||
bool | enable_log | ||
) |
Initialize by a CAN client, message manager.
can_client | The CAN client to use for receiving messages. |
pt_manager | The message manager which can parse and get protocol data by message id. |
enable_log | If log the essential information during running. |
bool apollo::drivers::canbus::CanReceiver< SensorType >::IsRunning | ( | ) | const |
Get the working status of this CAN receiver. To check if it is running.
apollo::common::ErrorCode apollo::drivers::canbus::CanReceiver< SensorType >::Start | ( | ) |
Start the CAN receiver.
void apollo::drivers::canbus::CanReceiver< SensorType >::Stop | ( | void | ) |
Stop the CAN receiver.