g2o
Public Member Functions | Protected Attributes | List of all members
g2o::RobotData Class Reference

data recorded by the robot More...

#include <robot_data.h>

Inheritance diagram for g2o::RobotData:
Inheritance graph
[legend]
Collaboration diagram for g2o::RobotData:
Collaboration graph
[legend]

Public Member Functions

 RobotData ()
 
virtual ~RobotData ()
 
double timestamp () const
 
void setTimestamp (double ts)
 
double loggerTimestamp () const
 
void setLoggerTimestamp (double ts)
 
const std::string & tag () const
 
void setTag (const std::string &tag)
 
const std::string & hostname () const
 
void setHostname (const std::string &hostname)
 
- Public Member Functions inherited from g2o::HyperGraph::Data
 Data ()
 
 ~Data ()
 
virtual bool read (std::istream &is)=0
 read the data from a stream More...
 
virtual bool write (std::ostream &os) const =0
 write the data to a stream More...
 
virtual HyperGraph::HyperGraphElementType elementType () const
 
const Datanext () const
 
Datanext ()
 
void setNext (Data *next_)
 
DataContainerdataContainer ()
 
const DataContainerdataContainer () const
 
void setDataContainer (DataContainer *dataContainer_)
 
- Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()
 
HyperGraphElementclone () const
 

Protected Attributes

double _timestamp
 timestamp when the measurement was generated More...
 
double _loggerTimestamp
 timestamp when the measurement was recorded More...
 
std::string _tag
 string tag (FLASER, ROBOTLASER, ODOM..) of the line in the log More...
 
std::string _hostname
 name of the computer/robot generating the data More...
 
- Protected Attributes inherited from g2o::HyperGraph::Data
Data_next
 
DataContainer_dataContainer
 

Detailed Description

data recorded by the robot

Definition at line 41 of file robot_data.h.

Constructor & Destructor Documentation

g2o::RobotData::RobotData ( )

Definition at line 31 of file robot_data.cpp.

31  :
33  _timestamp(-1.), _loggerTimestamp(-1.)
34  {
35  }
double _timestamp
timestamp when the measurement was generated
Definition: robot_data.h:60
double _loggerTimestamp
timestamp when the measurement was recorded
Definition: robot_data.h:61
class G2O_CORE_API Data
Definition: hyper_graph.h:76
g2o::RobotData::~RobotData ( )
virtual

Definition at line 37 of file robot_data.cpp.

38  {
39  }

Member Function Documentation

const std::string& g2o::RobotData::hostname ( ) const
inline

Definition at line 56 of file robot_data.h.

Referenced by setHostname(), g2o::VertexTag::write(), and g2o::RobotLaser::write().

56 { return _hostname;}
std::string _hostname
name of the computer/robot generating the data
Definition: robot_data.h:63
double g2o::RobotData::loggerTimestamp ( ) const
inline

Definition at line 50 of file robot_data.h.

Referenced by g2o::RobotLaser::write(), and g2o::VertexTag::write().

50 { return _loggerTimestamp;}
double _loggerTimestamp
timestamp when the measurement was recorded
Definition: robot_data.h:61
void g2o::RobotData::setHostname ( const std::string &  hostname)

Definition at line 56 of file robot_data.cpp.

References _hostname, and hostname().

57  {
59  }
std::string _hostname
name of the computer/robot generating the data
Definition: robot_data.h:63
const std::string & hostname() const
Definition: robot_data.h:56
void g2o::RobotData::setLoggerTimestamp ( double  ts)

Definition at line 46 of file robot_data.cpp.

References _loggerTimestamp.

47  {
48  _loggerTimestamp = ts;
49  }
double _loggerTimestamp
timestamp when the measurement was recorded
Definition: robot_data.h:61
void g2o::RobotData::setTag ( const std::string &  tag)

Definition at line 51 of file robot_data.cpp.

References _tag, and tag().

52  {
53  _tag = tag;
54  }
std::string _tag
string tag (FLASER, ROBOTLASER, ODOM..) of the line in the log
Definition: robot_data.h:62
const std::string & tag() const
Definition: robot_data.h:53
void g2o::RobotData::setTimestamp ( double  ts)

Definition at line 41 of file robot_data.cpp.

References _timestamp.

42  {
43  _timestamp = ts;
44  }
double _timestamp
timestamp when the measurement was generated
Definition: robot_data.h:60
const std::string& g2o::RobotData::tag ( ) const
inline

Definition at line 53 of file robot_data.h.

Referenced by setTag().

53 { return _tag;}
std::string _tag
string tag (FLASER, ROBOTLASER, ODOM..) of the line in the log
Definition: robot_data.h:62
double g2o::RobotData::timestamp ( ) const
inline

Definition at line 47 of file robot_data.h.

Referenced by g2o::DataQueue::add(), g2o::addOdometryCalibLinksDifferential(), main(), g2o::VertexTag::write(), and g2o::RobotLaser::write().

47 { return _timestamp;}
double _timestamp
timestamp when the measurement was generated
Definition: robot_data.h:60

Member Data Documentation

std::string g2o::RobotData::_hostname
protected

name of the computer/robot generating the data

Definition at line 63 of file robot_data.h.

Referenced by g2o::RobotLaser::read(), g2o::VertexTag::read(), g2o::RawLaser::read(), and setHostname().

double g2o::RobotData::_loggerTimestamp
protected

timestamp when the measurement was recorded

Definition at line 61 of file robot_data.h.

Referenced by g2o::RobotLaser::read(), g2o::VertexTag::read(), g2o::RawLaser::read(), and setLoggerTimestamp().

std::string g2o::RobotData::_tag
protected

string tag (FLASER, ROBOTLASER, ODOM..) of the line in the log

Definition at line 62 of file robot_data.h.

Referenced by setTag().

double g2o::RobotData::_timestamp
protected

timestamp when the measurement was generated

Definition at line 60 of file robot_data.h.

Referenced by g2o::RobotLaser::read(), g2o::VertexTag::read(), g2o::RawLaser::read(), and setTimestamp().


The documentation for this class was generated from the following files: