|
g2o
|
Raw laser measuerement. More...
#include <raw_laser.h>


Public Types | |
| using | Point2DVector = std::vector< Vector2 > |
Public Member Functions | |
| RawLaser () | |
| ~RawLaser () | |
| virtual bool | write (std::ostream &os) const |
| write the data to a stream | |
| virtual bool | read (std::istream &is) |
| read the data from a stream | |
| Point2DVector | cartesian () const |
| const std::vector< double > & | ranges () const |
| the range measurements by the laser | |
| void | setRanges (const std::vector< double > &ranges) |
| const std::vector< double > & | remissions () const |
| the remission measurements by the laser | |
| void | setRemissions (const std::vector< double > &remissions) |
| const LaserParameters & | laserParams () const |
| the parameters of the laser | |
| void | setLaserParams (const LaserParameters &laserParams) |
Public Member Functions inherited from g2o::RobotData | |
| 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 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 | |
| std::vector< double > | _ranges |
| std::vector< double > | _remissions |
| LaserParameters | _laserParams |
Protected Attributes inherited from g2o::RobotData | |
| 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 |
Raw laser measuerement.
A raw laser measuerement. The read/write function correspond to the format of CARMEN.
Definition at line 45 of file raw_laser.h.
| using g2o::RawLaser::Point2DVector = std::vector<Vector2> |
Definition at line 47 of file raw_laser.h.
| g2o::RawLaser::RawLaser | ( | ) |
Definition at line 37 of file raw_laser.cpp.
| g2o::RawLaser::~RawLaser | ( | ) |
Definition at line 42 of file raw_laser.cpp.
| RawLaser::Point2DVector g2o::RawLaser::cartesian | ( | ) | const |
computes a cartesian view of the beams (x,y).
Definition at line 84 of file raw_laser.cpp.
References _laserParams, _ranges, g2o::LaserParameters::angularStep, g2o::LaserParameters::firstBeamAngle, and g2o::LaserParameters::minRange.
|
inline |
the parameters of the laser
Definition at line 71 of file raw_laser.h.
Referenced by g2o::Gm2dlIO::readGm2dl(), setLaserParams(), and g2o::Gm2dlIO::updateLaserData().
|
inline |
the range measurements by the laser
Definition at line 63 of file raw_laser.h.
Referenced by setRanges(), and g2o::RobotLaser::write().
|
virtual |
read the data from a stream
Implements g2o::HyperGraph::Data.
Reimplemented in g2o::RobotLaser.
Definition at line 50 of file raw_laser.cpp.
References g2o::RobotData::_hostname, _laserParams, g2o::RobotData::_loggerTimestamp, _ranges, _remissions, and g2o::RobotData::_timestamp.
|
inline |
the remission measurements by the laser
Definition at line 67 of file raw_laser.h.
Referenced by setRemissions().
| void g2o::RawLaser::setLaserParams | ( | const LaserParameters & | laserParams | ) |
Definition at line 80 of file raw_laser.cpp.
References _laserParams, and laserParams().
Referenced by g2o::Gm2dlIO::updateLaserData().
| void g2o::RawLaser::setRanges | ( | const std::vector< double > & | ranges | ) |
Definition at line 74 of file raw_laser.cpp.
| void g2o::RawLaser::setRemissions | ( | const std::vector< double > & | remissions | ) |
Definition at line 76 of file raw_laser.cpp.
References _remissions, and remissions().
|
virtual |
write the data to a stream
Implements g2o::HyperGraph::Data.
Reimplemented in g2o::RobotLaser.
Definition at line 44 of file raw_laser.cpp.
References G2O_ERROR.
|
protected |
Definition at line 77 of file raw_laser.h.
Referenced by cartesian(), read(), g2o::RobotLaser::read(), setLaserParams(), and g2o::RobotLaser::write().
|
protected |
Definition at line 75 of file raw_laser.h.
Referenced by cartesian(), read(), g2o::RobotLaser::read(), and setRanges().
|
protected |
Definition at line 76 of file raw_laser.h.
Referenced by read(), g2o::RobotLaser::read(), setRemissions(), and g2o::RobotLaser::write().