00001 #ifndef _AMER_H_
00002 #define _AMER_H_
00003
00004 #include "facetsmap/FacetsGroupBase.hpp"
00005 #include "camera/cameraPinhole.hpp"
00006
00007 namespace jafar {
00008 namespace facetsmap {
00009 class Amer : public FacetsGroupBase {
00010 public:
00011 Amer(int id, int time) : FacetsGroupBase(time), m_id(id), m_countSeen(0), m_age(0)
00012 {
00013 }
00014 int countSeen() const { return m_countSeen; }
00015 void seenAgain() { m_countSeen++; }
00016 int age() const { return m_age; }
00017 void incAge() { m_age++; }
00018 inline int id() const { return m_id; }
00019 private:
00020 int m_id;
00021 int m_countSeen;
00022 int m_age;
00023 };
00024 class AmerObservation {
00025 public:
00026 AmerObservation(Amer* a, jafar::camera::StereoBench const& stereoBench_, const jblas::vec& obsv) : m_amer(a), m_observation(obsv)
00027 {
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 }
00038 inline int id() const {
00039 return m_amer->id();
00040 }
00041 inline const jblas::vec& observation() const {
00042 return m_observation;
00043 }
00044 private:
00045 Amer* m_amer;
00046 jblas::vec m_observation;
00047 };
00048 }
00049 }
00050
00051 #endif