slam_technique.cpp
Go to the documentation of this file.
2 
3 using namespace tuw;
4 
5 std::map<SLAMTechnique::Type, std::string> SLAMTechnique::TypeName_ = {
6  {EKF, "EKF"},
7 };
8 
10  reset_ ( true ),
11  type_ ( type ),
12  timestamp_last_update_() {
13 };
14 
16  reset_ = true;
17 }
18 
20  return type_;
21 }
22 
23 const std::string SLAMTechnique::getTypeName() const {
24  return TypeName_[ type_ ];
25 }
26 
27 const boost::posix_time::ptime& SLAMTechnique::time_last_update() const {
29 }
30 
31 bool SLAMTechnique::updateTimestamp ( const boost::posix_time::ptime& t ) {
32  if ( timestamp_last_update_.is_not_a_date_time() ) timestamp_last_update_ = t;
33  if ( timestamp_last_update_ < t ) {
35  timestamp_last_update_ = t;
36  return true;
37  } else {
38  return false;
39  }
40 }
const boost::posix_time::ptime & time_last_update() const
const std::string getTypeName() const
boost::posix_time::time_duration duration_last_update_
time of the last processed measurment
Definition: ekf_slam.h:8
bool updateTimestamp(const boost::posix_time::ptime &t)
static std::map< Type, std::string > TypeName_
boost::posix_time::ptime timestamp_last_update_
on true the system should be reseted on the next loop
Type getType() const
Type type_
time since the previous processed measurment
SLAMTechnique(Type type)


tuw_marker_slam
Author(s): Markus Macsek
autogenerated on Mon Jun 10 2019 15:39:09