28#include "modules/common_msgs/basic_msgs/error_code.pb.h"
79 int32_t *
const frame_num)
override;
89 int32_t *
const frame_num)
override;
98 int32_t send_counter_ = 0;
99 int32_t recv_counter_ = 0;
100 std::stringstream frame_info_;
Defines the CanFrame struct and CanClient interface.
The class which defines the CAN client to send and receive message.
The class which defines a fake CAN client which inherits CanClient.
apollo::common::ErrorCode Receive(std::vector< CanFrame > *frames, int32_t *const frame_num) override
Receive messages
virtual ~FakeCanClient()=default
Destructor
apollo::common::ErrorCode Send(const std::vector< CanFrame > &frames, int32_t *const frame_num) override
Send messages
std::string GetErrorString(const int32_t status) override
Get the error string.
apollo::common::ErrorCode Start() override
Start the fake CAN client.
void Stop() override
Stop the fake CAN client.
bool Init(const CANCardParameter ¶m) override
Initialize the fake CAN client by specified CAN card parameters.