00001
00002
00003 #ifndef _REC_ROBOTINO_COM_COMPACTBHA_H_
00004 #define _REC_ROBOTINO_COM_COMPACTBHA_H_
00005
00006 #include "rec/robotino/com/Actor.h"
00007
00008 #include <vector>
00009
00010 namespace rec
00011 {
00012 namespace robotino
00013 {
00014 namespace com
00015 {
00016 class CompactBHAImpl;
00017
00021 class
00022 #ifdef WIN32
00023 # ifdef rec_robotino_com_EXPORTS
00024 __declspec(dllexport)
00025 # endif
00026 # ifdef rec_robotino_com2_EXPORTS
00027 __declspec(dllexport)
00028 # endif
00029 # ifdef rec_robotino_com3_EXPORTS
00030 __declspec(dllexport)
00031 # endif
00032 #else
00033 # ifndef SWIG
00034 __attribute__ ((visibility ("default")))
00035 # endif
00036 #endif
00037 CompactBHA : public Actor
00038 {
00039 public:
00040 CompactBHA();
00041
00042 virtual ~CompactBHA();
00043
00050 void setComId( const ComId& id );
00051
00057 void connectToServer();
00058
00064 void disconnectFromServer();
00065
00071 void setAddress( const std::string& address );
00072
00073 std::string address() const;
00074
00075 bool isConnected() const;
00076
00077 void setPressures( const std::vector<float>& pressures );
00078
00079 virtual void readingsCallback( const std::vector<float>& pressures );
00080
00081 virtual void error( const std::string& message );
00082
00083 virtual void log( const std::string& message );
00084
00085 virtual void connected();
00086
00087 virtual void disconnected();
00088
00089 private:
00090 CompactBHAImpl* _impl;
00091 };
00092 }
00093 }
00094 }
00095
00096 #endif //_REC_ROBOTINO_COM_COMPACTBHA_H_