$search
00001 00005 #ifndef _THERMALVIS_EXTRACTOR_H_ 00006 #define _THERMALVIS_EXTRACTOR_H_ 00007 00008 #include "ros/ros.h" 00009 #include "sensor_msgs/Image.h" 00010 #include "sensor_msgs/CameraInfo.h" 00011 00012 #include <iostream> 00013 00014 // This class was based on code originally written by Hans Moorkens 00015 00016 using namespace std; 00017 00019 class extractor { 00020 00021 public: 00022 extractor(int skipFrames, int maxFrames); 00023 ~extractor(); 00024 00025 void extractBagFile(const string &bagFileName, const string &saveDirName); 00026 void cameraCallback(const sensor_msgs::Image::ConstPtr& imgMsg, 00027 const sensor_msgs::CameraInfo::ConstPtr& infoMsg 00028 ); 00029 00030 private: 00031 string resultsDir; 00032 FILE* dataFile; 00033 FILE* timeFile; 00034 int count; 00035 int filenum; 00036 double startTime; 00037 int skipFrames; 00038 int maxFrames; 00039 00040 }; 00041 #endif