Classes | Public Member Functions | Private Attributes
segway::RmpUdp Class Reference

#include <RmpUdp.h>

Inheritance diagram for segway::RmpUdp:
Inheritance graph
[legend]

List of all members.

Classes

class  Impl

Public Member Functions

virtual bool Receive (Bytes &rData, size_t size)
 RmpUdp (const std::string &rIpAddress, uint16_t portNumber)
virtual bool Send (uint16_t commandId, uint32_t value1, uint32_t value2)
virtual ~RmpUdp ()

Private Attributes

std::unique_ptr< Implm_pImpl

Detailed Description

This class implements a udp interface to a Segway rmp.

Definition at line 52 of file RmpUdp.h.


Constructor & Destructor Documentation

segway::RmpUdp::RmpUdp ( const std::string &  rIpAddress,
uint16_t  portNumber 
)

Constructor

Parameters:
rIpAddressip address of the rmp
portNumberport number of the rmp

Definition at line 78 of file RmpUdp.cpp.

segway::RmpUdp::~RmpUdp ( ) [virtual]

Destructor

Definition at line 85 of file RmpUdp.cpp.


Member Function Documentation

bool segway::RmpUdp::Receive ( Bytes rData,
size_t  size 
) [virtual]

Receive response from rmp

Parameters:
rDataresponse
sizeexpected size of data to receive [in byte]
Returns:
wether the data were properly received

Implements segway::RmpTransport.

Definition at line 112 of file RmpUdp.cpp.

bool segway::RmpUdp::Send ( uint16_t  commandId,
uint32_t  value1,
uint32_t  value2 
) [virtual]

Send command to rmp

Parameters:
commandIdcommand id
value1first value
value2second value
Returns:
wether the command was properly sent

Implements segway::RmpTransport.

Definition at line 88 of file RmpUdp.cpp.


Member Data Documentation

std::unique_ptr<Impl> segway::RmpUdp::m_pImpl [private]

Definition at line 94 of file RmpUdp.h.


The documentation for this class was generated from the following files:


rmp_base
Author(s):
autogenerated on Wed Aug 26 2015 16:24:40