|
Apollo 10.0
自动驾驶开放平台
|
CAN sender. 更多...
#include <can_sender.h>
Public 成员函数 | |
| CanSender ()=default | |
| Constructor. | |
| virtual | ~CanSender ()=default |
| Destructor. | |
| common::ErrorCode | Init (CanClient *can_client, MessageManager< SensorType > *pt_manager, bool enable_log) |
| Initialize by a CAN client based on its brand. | |
| void | AddMessage (uint32_t message_id, ProtocolData< SensorType > *protocol_data, bool init_with_one=false) |
| Add a message with its ID, protocol data. | |
| void | ClearMessage () |
| bool | IsMessageClear () |
| apollo::common::ErrorCode | Start () |
| Start the CAN sender. | |
| void | Update () |
| void | Update_Heartbeat () |
| void | Stop () |
| Stop the CAN sender. | |
| bool | IsRunning () const |
| Get the working status of this CAN sender. | |
| bool | enable_log () const |
| FRIEND_TEST (CanSenderTest, OneRunCase) | |
CAN sender.
在文件 can_sender.h 第 139 行定义.
|
default |
Constructor.
|
virtualdefault |
Destructor.
| void apollo::drivers::canbus::CanSender< SensorType >::AddMessage | ( | uint32_t | message_id, |
| ProtocolData< SensorType > * | protocol_data, | ||
| bool | init_with_one = false |
||
| ) |
Add a message with its ID, protocol data.
| message_id | The message ID. |
| protocol_data | A pointer of ProtocolData which contains the content to send. |
| init_with_one | If it is true, then initialize all bits in the protocol data as one. By default, it is false. |
在文件 can_sender.h 第 388 行定义.
| void apollo::drivers::canbus::CanSender< SensorType >::ClearMessage | ( | ) |
在文件 can_sender.h 第 428 行定义.
| bool apollo::drivers::canbus::CanSender< SensorType >::enable_log | ( | ) | const |
在文件 can_sender.h 第 462 行定义.
| apollo::drivers::canbus::CanSender< SensorType >::FRIEND_TEST | ( | CanSenderTest | , |
| OneRunCase | |||
| ) |
| common::ErrorCode apollo::drivers::canbus::CanSender< SensorType >::Init | ( | CanClient * | can_client, |
| MessageManager< SensorType > * | pt_manager, | ||
| bool | enable_log | ||
| ) |
Initialize by a CAN client based on its brand.
| can_client | The CAN client to use for sending messages. |
| enable_log | whether enable record the send can frame log |
在文件 can_sender.h 第 365 行定义.
| bool apollo::drivers::canbus::CanSender< SensorType >::IsMessageClear | ( | ) |
在文件 can_sender.h 第 433 行定义.
| bool apollo::drivers::canbus::CanSender< SensorType >::IsRunning | ( | ) | const |
Get the working status of this CAN sender.
To check if it is running.
在文件 can_sender.h 第 457 行定义.
| common::ErrorCode apollo::drivers::canbus::CanSender< SensorType >::Start | ( | ) |
Start the CAN sender.
在文件 can_sender.h 第 401 行定义.
| void apollo::drivers::canbus::CanSender< SensorType >::Stop | ( | ) |
Stop the CAN sender.
在文件 can_sender.h 第 441 行定义.
| void apollo::drivers::canbus::CanSender< SensorType >::Update | ( | ) |
在文件 can_sender.h 第 421 行定义.
| void apollo::drivers::canbus::CanSender< SensorType >::Update_Heartbeat | ( | ) |
在文件 can_sender.h 第 414 行定义.