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

#include <VrMagicHandler_camhost.h>

List of all members.

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

Detailed Description

Definition at line 17 of file VrMagicHandler_camhost.h.


Constructor & Destructor Documentation

ohm::VrMagicHandler_camhost::VrMagicHandler_camhost ( unsigned int  port_smartcam)

Constructor.

Parameters:
[in]port-> port of tcp-server on the smartcam

Definition at line 13 of file VrMagicHandler_camhost.cpp.

Destructor.

Definition at line 22 of file VrMagicHandler_camhost.cpp.


Member Function Documentation

connects to ros-server-node, this function is blocking untill a connection is established

Parameters:
[in,out]void
Returns:
void

Definition at line 28 of file VrMagicHandler_camhost.cpp.

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

waits for an imagerequest from ros

Parameters:
[in,out]void
Returns:
0 on succes -1 on connection error and -2 if trigger is not an image request

Definition at line 74 of file VrMagicHandler_camhost.cpp.

writes image to ros-server

Parameters:
[in]image-> contains information and a pointer to data from the image
Returns:
0 on succes and -1 on error

Definition at line 33 of file VrMagicHandler_camhost.cpp.


Member Data Documentation

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.

Definition at line 68 of file VrMagicHandler_camhost.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