Jafar
|
00001 00012 #ifndef HARDWARE_SENSOR_GPSGENOM_HPP_ 00013 #define HARDWARE_SENSOR_GPSGENOM_HPP_ 00014 00015 #include <stdlib.h> 00016 #include <unistd.h> 00017 00018 #include <jafarConfig.h> 00019 #include "kernel/jafarMacro.hpp" 00020 #include "rtslam/hardwareSensorAbstract.hpp" 00021 00022 #ifdef HAVE_POSTERLIB 00023 #include "posterLib.h" 00024 #endif 00025 00026 00027 namespace jafar { 00028 namespace rtslam { 00029 namespace hardware { 00030 00031 00032 class HardwareSensorGpsGenom: public HardwareSensorProprioAbstract 00033 { 00034 private: 00035 boost::thread *preloadTask_thread; 00036 void preloadTask(void); 00037 00038 #ifdef HAVE_POSTERLIB 00039 POSTER_ID posterId; 00040 #endif 00041 std::string dump_path; 00042 double last_timestamp; 00043 kernel::LoggerTask *loggerTask; 00044 00045 public: 00046 HardwareSensorGpsGenom(kernel::VariableCondition<int> *condition, unsigned bufferSize, Mode mode = mOnline, std::string dump_path = ".", kernel::LoggerTask *loggerTask = NULL); 00047 00048 virtual void start(); 00049 virtual void stop(); 00050 virtual bool join(int timed_ms = -1); 00051 virtual double getLastTimestamp() { boost::unique_lock<boost::mutex> l(mutex_data); return last_timestamp; } 00052 00053 jblas::ind_array instantValues() { return jmath::ublasExtra::ia_set(1,7); } 00054 jblas::ind_array incrementValues() { return jmath::ublasExtra::ia_set(1,1); } 00055 }; 00056 00057 00058 }}} 00059 00060 #endif // HARDWARE_SENSOR_GPSGENOM_HPP_
Generated on Wed Oct 15 2014 00:37:26 for Jafar by doxygen 1.7.6.1 |