#include <RmpTransport.h>
Public Types | |
typedef std::shared_ptr < RmpTransport > | Ptr |
Public Member Functions | |
virtual bool | Receive (Bytes &rData, size_t size)=0 |
virtual bool | Send (uint16_t commandId, uint32_t value1, uint32_t value2)=0 |
virtual | ~RmpTransport () |
This class is an abstract base class. It represents a communication transport between a host and a Rmp.
Definition at line 52 of file RmpTransport.h.
typedef std::shared_ptr<RmpTransport> segway::RmpTransport::Ptr |
Definition at line 55 of file RmpTransport.h.
virtual segway::RmpTransport::~RmpTransport | ( | ) | [inline, virtual] |
Destructor
Definition at line 60 of file RmpTransport.h.
virtual bool segway::RmpTransport::Receive | ( | Bytes & | rData, |
size_t | size | ||
) | [pure virtual] |
Receive response from rmp
rData | response |
size | expected size of data to receive [in byte] |
Implemented in segway::RmpUdp, and segway::RmpUsb.
virtual bool segway::RmpTransport::Send | ( | uint16_t | commandId, |
uint32_t | value1, | ||
uint32_t | value2 | ||
) | [pure virtual] |
Send command to rmp
commandId | command id |
value1 | first value |
value2 | second value |
Implemented in segway::RmpUdp, and segway::RmpUsb.