Apollo 10.0
自动驾驶开放平台
|
The class which defines a fake CAN client which inherits CanClient. 更多...
#include <fake_can_client.h>
Public 成员函数 | |
bool | Init (const CANCardParameter ¶m) override |
Initialize the fake CAN client by specified CAN card parameters. | |
virtual | ~FakeCanClient ()=default |
Destructor | |
apollo::common::ErrorCode | Start () override |
Start the fake CAN client. | |
void | Stop () override |
Stop the fake CAN client. | |
apollo::common::ErrorCode | Send (const std::vector< CanFrame > &frames, int32_t *const frame_num) override |
Send messages | |
apollo::common::ErrorCode | Receive (std::vector< CanFrame > *frames, int32_t *const frame_num) override |
Receive messages | |
std::string | GetErrorString (const int32_t status) override |
Get the error string. | |
![]() | |
CanClient ()=default | |
Constructor | |
virtual | ~CanClient ()=default |
Destructor | |
virtual apollo::common::ErrorCode | SendSingleFrame (const std::vector< CanFrame > &frames) |
Send a single message. | |
额外继承的成员函数 | |
![]() | |
bool | is_started_ = false |
The CAN client is started. | |
The class which defines a fake CAN client which inherits CanClient.
This fake CAN client is used for testing.
在文件 fake_can_client.h 第 45 行定义.
|
virtualdefault |
Destructor
|
overridevirtual |
Get the error string.
status | The status to get the error string. |
实现了 apollo::drivers::canbus::CanClient.
在文件 fake_can_client.cc 第 76 行定义.
|
overridevirtual |
Initialize the fake CAN client by specified CAN card parameters.
parameter | CAN card parameters to initialize the CAN client. |
实现了 apollo::drivers::canbus::CanClient.
在文件 fake_can_client.cc 第 29 行定义.
|
overridevirtual |
Receive messages
frames | The messages to receive. |
frame_num | The amount of messages to receive. |
实现了 apollo::drivers::canbus::CanClient.
在文件 fake_can_client.cc 第 55 行定义.
|
overridevirtual |
Send messages
frames | The messages to send. |
frame_num | The amount of messages to send. |
实现了 apollo::drivers::canbus::CanClient.
在文件 fake_can_client.cc 第 35 行定义.
|
overridevirtual |
Start the fake CAN client.
实现了 apollo::drivers::canbus::CanClient.
在文件 fake_can_client.cc 第 31 行定义.
|
overridevirtual |
Stop the fake CAN client.
实现了 apollo::drivers::canbus::CanClient.
在文件 fake_can_client.cc 第 33 行定义.