VrMagicHandler_roshost.h
Go to the documentation of this file.
00001 
00023 #ifndef VRMAGICHANDLERROSHOST_H_
00024 #define VRMAGICHANDLERROSHOST_H_
00025 
00026 #include "../../include/VrMagicHandler_base.h"
00027 #include "../TCP/TCP.h"
00028 
00029 namespace ohm
00030 {
00031 
00032 class VrMagicHandler_roshost
00033 {
00034 public: //functions
00035 
00042     VrMagicHandler_roshost(std::string ip_smartcam, unsigned int port_smartcam);
00043 
00048     virtual ~VrMagicHandler_roshost();
00049 
00061     void connect();
00062 
00071     int readImage(ImageType& image);
00072 
00080 //    int triggerImage();
00081 
00082     const std::string& getIp() const;
00083     unsigned int getPort() const;
00084 
00085 private: //functions
00086 
00087 private: //dataelements
00088     std::string _ip;
00089     unsigned int _port;
00090     apps::TCP* _tcpClient;
00091 
00092     OHM_HEADER_TYPE* _imgHeader;
00093     OHM_DATA_TYPE* _imgData;
00094     unsigned int _currentDataSize;
00095 };
00096 
00097 } /* namespace ohm */
00098 
00099 #endif /* VRMAGICHANDLERROSHOST_H_ */


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