Go to the documentation of this file.00001
00012 #ifndef SENSORPINHOLE_HPP_
00013 #define SENSORPINHOLE_HPP_
00014
00015 #include "image/Image.hpp"
00016 #include "rtslam/rtSlam.hpp"
00017
00018 #include "rtslam/sensorAbstract.hpp"
00019 #include "rtslam/gaussian.hpp"
00020 #include "rtslam/sensorImageParameters.hpp"
00021 #include <iostream>
00022
00023 namespace jafar {
00024 namespace rtslam {
00025
00026 class SensorPinhole;
00027 typedef boost::shared_ptr<SensorPinhole> pinhole_ptr_t;
00028
00029
00035 class SensorPinhole: public SensorExteroAbstract {
00036
00037 public:
00038
00044 SensorPinhole(const robot_ptr_t & _robPtr, filtered_obj_t inFilter = UNFILTERED, int extraStateFilterSize = 0);
00045
00046 ~SensorPinhole(){}
00047
00048 SensorImageParameters params;
00049
00050 void setup(const size_t id, const string & name, const int _width, const int _height, const vec7 & pose, const vec7 & std, const jblas::vec2 & _s, const vec4 & k, const vec & d, const vec & c);
00051
00052 virtual std::string typeName() const {
00053 return "Pin-hole-camera";
00054 }
00055
00056 static size_t size(void) {
00057 return 7;
00058 }
00059
00060 int acquireRaw();
00061
00062 raw_ptr_t getRaw() ;
00063
00064 };
00065
00066 }
00067 }
00068
00069 #endif