Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
hardwareSensorOdomRmp400Genom.hpp
Go to the documentation of this file.
00001 
00012 #ifndef HARDWARE_SENSOR_ODOMRMP400GENOM_HPP_
00013 #define HARDWARE_SENSOR_ODOMRMP400GENOM_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 HardwareSensorOdomRmp400Genom: 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     jblas::vec4 calib; 
00046     jblas::vec prev_reading;
00047     double time_stopped;
00048     bool status400poster;
00049 
00050     void filterOdom(jblas::vec & reading);
00051     
00052   public:
00053     HardwareSensorOdomRmp400Genom(kernel::VariableCondition<int> *condition, unsigned bufferSize,
00054       Mode mode = mOnline, std::string dump_path = ".", kernel::LoggerTask *loggerTask = NULL);
00055     void setCalib(jblas::vec4 calib) { this->calib = calib; }
00056 
00057     virtual void start();
00058     virtual void stop();
00059     virtual bool join(int timed_ms = -1);
00060     virtual double getLastTimestamp() { boost::unique_lock<boost::mutex> l(mutex_data); return last_timestamp; }
00061     
00062     jblas::ind_array instantValues() { return jmath::ublasExtra::ia_set(1,2); }
00063     jblas::ind_array incrementValues() { return jmath::ublasExtra::ia_set(1,1); }
00064 };
00065 
00066 
00067 }}}
00068 
00069 #endif // HARDWARE_SENSOR_GPSGENOM_HPP_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:26 for Jafar by doxygen 1.7.6.1
LAAS-CNRS