#include <VrMagicHandler_camhost.h>
Public Member Functions | |
void | connect () |
connects to ros-server-node, this function is blocking untill a connection is established | |
unsigned int | getPort () const |
waits for an imagerequest from ros | |
VrMagicHandler_camhost (unsigned int port_smartcam) | |
Constructor. | |
int | writeImage (ohm::ImageType &image) |
writes image to ros-server | |
virtual | ~VrMagicHandler_camhost () |
Destructor. | |
Private Attributes | |
OHM_HEADER_TYPE * | _imgHeader |
unsigned int | _port |
apps::TCP * | _tcpServer |
Definition at line 17 of file VrMagicHandler_camhost.h.
ohm::VrMagicHandler_camhost::VrMagicHandler_camhost | ( | unsigned int | port_smartcam | ) |
Constructor.
[in] | port | -> port of tcp-server on the smartcam |
Definition at line 13 of file VrMagicHandler_camhost.cpp.
ohm::VrMagicHandler_camhost::~VrMagicHandler_camhost | ( | ) | [virtual] |
Destructor.
Definition at line 22 of file VrMagicHandler_camhost.cpp.
void ohm::VrMagicHandler_camhost::connect | ( | ) |
connects to ros-server-node, this function is blocking untill a connection is established
[in,out] | void |
Definition at line 28 of file VrMagicHandler_camhost.cpp.
unsigned int ohm::VrMagicHandler_camhost::getPort | ( | ) | const |
waits for an imagerequest from ros
[in,out] | void |
Definition at line 74 of file VrMagicHandler_camhost.cpp.
int ohm::VrMagicHandler_camhost::writeImage | ( | ohm::ImageType & | image | ) |
writes image to ros-server
[in] | image | -> contains information and a pointer to data from the image |
Definition at line 33 of file VrMagicHandler_camhost.cpp.
Definition at line 70 of file VrMagicHandler_camhost.h.
unsigned int ohm::VrMagicHandler_camhost::_port [private] |
Definition at line 67 of file VrMagicHandler_camhost.h.
apps::TCP* ohm::VrMagicHandler_camhost::_tcpServer [private] |
Definition at line 68 of file VrMagicHandler_camhost.h.