Jafar
|
00001 00012 #ifndef HARDWARE_SENSOR_MOCAP_HPP_ 00013 #define HARDWARE_SENSOR_MOCAP_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 namespace jafar { 00023 namespace rtslam { 00024 namespace hardware { 00025 00026 00027 class HardwareSensorMocap: public HardwareSensorProprioAbstract 00028 { 00029 private: 00030 boost::thread *preloadTask_thread; 00031 void preloadTask(void); 00032 00033 std::string dump_path; 00034 double last_timestamp; 00035 kernel::LoggerTask *loggerTask; 00036 00037 public: 00038 HardwareSensorMocap(kernel::VariableCondition<int> *condition, unsigned bufferSize, Mode mode = mOnline, std::string dump_path = ".", kernel::LoggerTask *loggerTask = NULL); 00039 00040 virtual void start(); 00041 virtual void stop(); 00042 virtual bool join(int timed_ms = -1); 00043 virtual double getLastTimestamp() { boost::unique_lock<boost::mutex> l(mutex_data); return last_timestamp; } 00044 00045 jblas::ind_array instantValues() { return jmath::ublasExtra::ia_set(1,7); } 00046 jblas::ind_array incrementValues() { return jmath::ublasExtra::ia_set(1,1); } 00047 }; 00048 00049 00050 }}} 00051 00052 #endif // HARDWARE_SENSOR_MOCAP_HPP_
Generated on Wed Oct 15 2014 00:37:26 for Jafar by doxygen 1.7.6.1 |