#include <ric_interface.h>
Public Member Functions | |
| void | connect (std::string port) |
| sensors_state | getSensorsState () |
| bool | isBoardAlive () |
| void | loop () |
| RicInterface () | |
| void | writeCmd (const protocol::actuator &actu_pkg, size_t size, protocol::Type type) |
Private Member Functions | |
| void | checkKeepAliveFromRic () |
| void | clearBuffer () |
| void | readAndHandlePkg () |
| void | sendKeepAlive () |
Private Attributes | |
| Communicator | comm_ |
| const int | GET_KA_TIMEOUT = 1500 |
| Timer | get_keepalive_timer_ |
| bool | got_keepalive_ = false |
| bool | is_board_alive_ = true |
| byte | pkg_buff_ [protocol::MAX_PKG_SIZE] |
| const int | SEND_KA_TIMEOUT = 300 |
| Timer | send_keepalive_timer_ |
| sensors_state | sensors_state_ |
Definition at line 18 of file ric_interface.h.
| ric_interface::RicInterface::RicInterface | ( | ) |
Definition at line 7 of file ric_interface.cpp.
|
private |
Definition at line 31 of file ric_interface.cpp.
|
private |
Definition at line 19 of file ric_interface.cpp.
| void ric_interface::RicInterface::connect | ( | std::string | port | ) |
Definition at line 14 of file ric_interface.cpp.
|
inline |
Definition at line 41 of file ric_interface.h.
|
inline |
Definition at line 40 of file ric_interface.h.
| void ric_interface::RicInterface::loop | ( | ) |
Definition at line 24 of file ric_interface.cpp.
|
private |
Definition at line 51 of file ric_interface.cpp.
|
private |
Definition at line 144 of file ric_interface.cpp.
| void ric_interface::RicInterface::writeCmd | ( | const protocol::actuator & | actu_pkg, |
| size_t | size, | ||
| protocol::Type | type | ||
| ) |
Definition at line 156 of file ric_interface.cpp.
|
private |
Definition at line 27 of file ric_interface.h.
|
private |
Definition at line 22 of file ric_interface.h.
|
private |
Definition at line 26 of file ric_interface.h.
|
private |
Definition at line 25 of file ric_interface.h.
|
private |
Definition at line 25 of file ric_interface.h.
|
private |
Definition at line 29 of file ric_interface.h.
|
private |
Definition at line 21 of file ric_interface.h.
|
private |
Definition at line 26 of file ric_interface.h.
|
private |
Definition at line 28 of file ric_interface.h.