g2o
Loading...
Searching...
No Matches
g2o::RobotData Class Reference

data recorded by the robot More...

#include <robot_data.h>

Inheritance diagram for g2o::RobotData:
Collaboration diagram for g2o::RobotData:

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 Data * next () const
Data * next ()
void setNext (Data *next_)
DataContainer * dataContainer ()
const DataContainer * dataContainer () 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.

class G2O_CORE_API Data
Definition hyper_graph.h:72
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

References _loggerTimestamp, _timestamp, and g2o::HyperGraph::Data::Data().

Referenced by g2o::RawLaser::RawLaser(), g2o::VertexEllipse::VertexEllipse(), and g2o::VertexTag::VertexTag().

◆ ~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

References _hostname.

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; }

References _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; }

References _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 hostname(), 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 loggerTimestamp(), g2o::RawLaser::read(), g2o::RobotLaser::read(), g2o::VertexTag::read(), RobotData(), 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(), and tag().

◆ _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(), RobotData(), setTimestamp(), and timestamp().


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