key.h
Go to the documentation of this file.
00001 
00059 /*
00060  * key.h
00061  *
00062  *  Created on: 29.05.2012
00063  *      Author: josh
00064  */
00065 
00066 #ifndef SCP_KEY_H_
00067 #define SCP_KEY_H_
00068 
00069 #include "object.h"
00070 
00071 namespace Slam_CurvedPolygon
00072 {
00073   template<typename _DOF6>
00074   class KEY
00075   {
00076     typedef typename Slam_CurvedPolygon::Object<_DOF6> OBJECT;
00077     typename OBJECT::Ptr obj_;
00078   public:
00079     typedef unsigned int TYPE;
00080     typedef std::vector<TYPE> KEYS;
00081 
00082     KEY(typename OBJECT::Ptr obj)
00083     {
00084       obj_ = obj;
00085     }
00086 
00087     KEYS getKeys() {
00088       KEYS r;
00089 
00090       if(!obj_)
00091         return r;
00092 
00093       for(size_t i=0; i<obj_->getData().getScore().size(); i++)
00094         r.push_back( obj_->getData().getScore()[i].ID );
00095       return r;
00096     }
00097   };
00098 }
00099 
00100 
00101 
00102 #endif /* KEY_H_ */


cob_3d_mapping_slam
Author(s): Joshua Hampp
autogenerated on Wed Aug 26 2015 11:04:51