g2o
Loading...
Searching...
No Matches
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
 
virtual bool write (std::ostream &os) const =0
 write the data to a stream
 
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 ()
 

Protected Attributes

double _timestamp
 timestamp when the measurement was generated
 
double _loggerTimestamp
 timestamp when the measurement was recorded
 
std::string _tag
 string tag (FLASER, ROBOTLASER, ODOM..) of the line in the log
 
std::string _hostname
 name of the computer/robot generating the data
 
- 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

◆ RobotData()

g2o::RobotData::RobotData ( )

Definition at line 31 of file robot_data.cpp.

32 : HyperGraph::Data(), _timestamp(-1.), _loggerTimestamp(-1.) {}
double _loggerTimestamp
timestamp when the measurement was recorded
Definition robot_data.h:60
double _timestamp
timestamp when the measurement was generated
Definition robot_data.h:59

◆ ~RobotData()

g2o::RobotData::~RobotData ( )
virtual

Definition at line 34 of file robot_data.cpp.

34{}

Member Function Documentation

◆ hostname()

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

Definition at line 55 of file robot_data.h.

55{ return _hostname; }
std::string _hostname
name of the computer/robot generating the data
Definition robot_data.h:63

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

◆ loggerTimestamp()

double g2o::RobotData::loggerTimestamp ( ) const
inline

Definition at line 49 of file robot_data.h.

49{ return _loggerTimestamp; }

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

◆ setHostname()

void g2o::RobotData::setHostname ( const std::string &  hostname)

Definition at line 42 of file robot_data.cpp.

42 {
44}
const std::string & hostname() const
Definition robot_data.h:55

References _hostname, and hostname().

◆ setLoggerTimestamp()

void g2o::RobotData::setLoggerTimestamp ( double  ts)

Definition at line 38 of file robot_data.cpp.

38{ _loggerTimestamp = ts; }

References _loggerTimestamp.

◆ setTag()

void g2o::RobotData::setTag ( const std::string &  tag)

Definition at line 40 of file robot_data.cpp.

40{ _tag = tag; }
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:52

References _tag, and tag().

◆ setTimestamp()

void g2o::RobotData::setTimestamp ( double  ts)

Definition at line 36 of file robot_data.cpp.

36{ _timestamp = ts; }

References _timestamp.

◆ tag()

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

Definition at line 52 of file robot_data.h.

52{ return _tag; }

Referenced by setTag().

◆ timestamp()

double g2o::RobotData::timestamp ( ) const
inline

Member Data Documentation

◆ _hostname

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::RawLaser::read(), g2o::RobotLaser::read(), g2o::VertexTag::read(), and setHostname().

◆ _loggerTimestamp

double g2o::RobotData::_loggerTimestamp
protected

timestamp when the measurement was recorded

Definition at line 60 of file robot_data.h.

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

◆ _tag

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().

◆ _timestamp

double g2o::RobotData::_timestamp
protected

timestamp when the measurement was generated

Definition at line 59 of file robot_data.h.

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


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