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

#include <RmpUsb.h>

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

List of all members.

Classes

class  Impl

Public Member Functions

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

Private Attributes

std::unique_ptr< Implm_pImpl

Detailed Description

This class implements a usb interface to a Segway rmp.

Definition at line 52 of file RmpUsb.h.


Constructor & Destructor Documentation

segway::RmpUsb::RmpUsb ( const std::string &  rDevicePort)

Constructor

Parameters:
rDevicePortdevice port

Definition at line 73 of file RmpUsb.cpp.

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

Destructor

Definition at line 77 of file RmpUsb.cpp.


Member Function Documentation

bool segway::RmpUsb::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 104 of file RmpUsb.cpp.

bool segway::RmpUsb::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 80 of file RmpUsb.cpp.


Member Data Documentation

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

Definition at line 93 of file RmpUsb.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