#include <VrMagicHandler_roshost.h>
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 |
Definition at line 32 of file VrMagicHandler_roshost.h.
ohm::VrMagicHandler_roshost::VrMagicHandler_roshost | ( | std::string | ip_smartcam, |
unsigned int | port_smartcam | ||
) |
Constructor.
[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.
ohm::VrMagicHandler_roshost::~VrMagicHandler_roshost | ( | ) | [virtual] |
Destructor.
Definition at line 26 of file VrMagicHandler_roshost.cpp.
void ohm::VrMagicHandler_roshost::connect | ( | ) |
connects to vrmagic smartcam blocks until a connection is established
[in,out] | void |
Definition at line 33 of file VrMagicHandler_roshost.cpp.
const std::string & ohm::VrMagicHandler_roshost::getIp | ( | ) | const |
triggers vrmagic scmartcam for next image
[in,out] | void |
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.
int ohm::VrMagicHandler_roshost::readImage | ( | ImageType & | image | ) |
reads an image from the vrmagic smartcam, this function blocks untill an image is received
[out] | image | -> reference of an ImageType object |
Definition at line 39 of file VrMagicHandler_roshost.cpp.
unsigned int ohm::VrMagicHandler_roshost::_currentDataSize [private] |
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.
apps::TCP* ohm::VrMagicHandler_roshost::_tcpClient [private] |
Definition at line 90 of file VrMagicHandler_roshost.h.