Public Member Functions | Private Attributes
ohm::VrMagicHandler_roshost Class Reference

#include <VrMagicHandler_roshost.h>

List of all members.

Public Member Functions

void connect ()
 connects to vrmagic smartcam blocks until a connection is established
const std::string & getIp () const
 triggers vrmagic scmartcam for next image
unsigned int getPort () const
int readImage (ImageType &image)
 reads an image from the vrmagic smartcam, this function blocks untill an image is received
 VrMagicHandler_roshost (std::string ip_smartcam, unsigned int port_smartcam)
 Constructor.
virtual ~VrMagicHandler_roshost ()
 Destructor.

Private Attributes

unsigned int _currentDataSize
OHM_DATA_TYPE_imgData
OHM_HEADER_TYPE_imgHeader
std::string _ip
unsigned int _port
apps::TCP_tcpClient

Detailed Description

Definition at line 32 of file VrMagicHandler_roshost.h.


Constructor & Destructor Documentation

ohm::VrMagicHandler_roshost::VrMagicHandler_roshost ( std::string  ip_smartcam,
unsigned int  port_smartcam 
)

Constructor.

Parameters:
[in]ip_smartcam-> ip from vrmagic smartcam as std::string
[in]port_smartcam-> port from vrmagic smartcam as unsigned int

Definition at line 13 of file VrMagicHandler_roshost.cpp.

Destructor.

Definition at line 26 of file VrMagicHandler_roshost.cpp.


Member Function Documentation

connects to vrmagic smartcam blocks until a connection is established

Note:
if wrong ip or port is given the function will block endless the andvantage is, that the roshost must not restart if connection to the camera borkes(because of a cam restart e.g)
Parameters:
[in,out]void
Returns:
void

Definition at line 33 of file VrMagicHandler_roshost.cpp.

const std::string & ohm::VrMagicHandler_roshost::getIp ( ) const

triggers vrmagic scmartcam for next image

Parameters:
[in,out]void
Returns:
0 on succes -1 on connection error

Definition at line 88 of file VrMagicHandler_roshost.cpp.

unsigned int ohm::VrMagicHandler_roshost::getPort ( ) const

Definition at line 93 of file VrMagicHandler_roshost.cpp.

reads an image from the vrmagic smartcam, this function blocks untill an image is received

Parameters:
[out]image-> reference of an ImageType object
Returns:
todo

Definition at line 39 of file VrMagicHandler_roshost.cpp.


Member Data Documentation

Definition at line 94 of file VrMagicHandler_roshost.h.

Definition at line 93 of file VrMagicHandler_roshost.h.

Definition at line 92 of file VrMagicHandler_roshost.h.

std::string ohm::VrMagicHandler_roshost::_ip [private]

Definition at line 88 of file VrMagicHandler_roshost.h.

unsigned int ohm::VrMagicHandler_roshost::_port [private]

Definition at line 89 of file VrMagicHandler_roshost.h.

Definition at line 90 of file VrMagicHandler_roshost.h.


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


vrmagic_ros_bridge_server
Author(s): Michael Schmidpeter
autogenerated on Thu Aug 27 2015 15:40:40