CameraInterface.hh
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CAMERAINTERFACE_HH
00028 #define CAMERAINTERFACE_HH
00029
00030 #include "GazeboInterface.hh"
00031
00032
00033 typedef struct gz_camera gz_camera_t;
00034
00035 class CameraInterface : public GazeboInterface
00036 {
00038 public: CameraInterface(player_devaddr_t addr, GazeboDriver *driver,
00039 ConfigFile *cf, int section);
00040
00042 public: virtual ~CameraInterface();
00043
00045 public: virtual int ProcessMessage(MessageQueue *respQueue,
00046 player_msghdr_t *hdr, void *data);
00047
00049 public: virtual void Update();
00050
00053 public: virtual void Subscribe();
00054
00057 public: virtual void Unsubscribe();
00058
00060 private: void SaveFrame(const char *filename);
00061
00062 private: gz_camera_t *iface;
00063
00065 private: char *gz_id;
00066
00068 private: double datatime;
00069
00071 private: player_camera_data_t data;
00072
00073
00074 private: int save;
00075 private: int frameno;
00076
00077 };
00078 #endif
Last updated 12 September 2005 21:38:45
|