Apollo 10.0
自动驾驶开放平台
|
CAN receiver. 更多...
#include <can_receiver.h>
Public 成员函数 | |
CanReceiver ()=default | |
Constructor. | |
virtual | ~CanReceiver ()=default |
Destructor. | |
common::ErrorCode | Init (CanClient *can_client, MessageManager< SensorType > *pt_manager, bool enable_log) |
Initialize by a CAN client, message manager. | |
bool | IsRunning () const |
Get the working status of this CAN receiver. | |
bool | IsFinishRecvOnce () const |
Get the receive status in once receive buf. | |
::apollo::common::ErrorCode | Start () |
Start the CAN receiver. | |
void | Stop () |
Stop the CAN receiver. | |
CAN receiver.
在文件 can_receiver.h 第 54 行定义.
|
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. |
在文件 can_receiver.h 第 122 行定义.
bool apollo::drivers::canbus::CanReceiver< SensorType >::IsFinishRecvOnce | ( | ) | const |
Get the receive status in once receive buf.
To check if it is running.
在文件 can_receiver.h 第 203 行定义.
bool apollo::drivers::canbus::CanReceiver< SensorType >::IsRunning | ( | ) | const |
Get the working status of this CAN receiver.
To check if it is running.
在文件 can_receiver.h 第 198 行定义.
apollo::common::ErrorCode apollo::drivers::canbus::CanReceiver< SensorType >::Start | ( | ) |
Start the CAN receiver.
在文件 can_receiver.h 第 209 行定义.
void apollo::drivers::canbus::CanReceiver< SensorType >::Stop | ( | ) |
Stop the CAN receiver.
在文件 can_receiver.h 第 220 行定义.