g2o
|
Raw laser measuerement. More...
#include <raw_laser.h>
Public Types | |
typedef std::vector< Vector2D, Eigen::aligned_allocator< Vector2D > > | Point2DVector |
Public Member Functions | |
RawLaser () | |
~RawLaser () | |
virtual bool | write (std::ostream &os) const |
write the data to a stream More... | |
virtual bool | read (std::istream &is) |
read the data from a stream More... | |
Point2DVector | cartesian () const |
const std::vector< double > & | ranges () const |
the range measurements by the laser More... | |
void | setRanges (const std::vector< double > &ranges) |
const std::vector< double > & | remissions () const |
the remission measurements by the laser More... | |
void | setRemissions (const std::vector< double > &remissions) |
const LaserParameters & | laserParams () const |
the parameters of the laser More... | |
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 () |
HyperGraphElement * | clone () const |
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 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 |
Raw laser measuerement.
A raw laser measuerement. The read/write function correspond to the format of CARMEN.
Definition at line 46 of file raw_laser.h.
typedef std::vector<Vector2D, Eigen::aligned_allocator<Vector2D> > g2o::RawLaser::Point2DVector |
Definition at line 48 of file raw_laser.h.
g2o::RawLaser::RawLaser | ( | ) |
Definition at line 35 of file raw_laser.cpp.
g2o::RawLaser::~RawLaser | ( | ) |
Definition at line 41 of file raw_laser.cpp.
RawLaser::Point2DVector g2o::RawLaser::cartesian | ( | ) | const |
computes a cartesian view of the beams (x,y).
Definition at line 93 of file raw_laser.cpp.
References _laserParams, _ranges, g2o::LaserParameters::angularStep, g2o::LaserParameters::firstBeamAngle, and g2o::LaserParameters::maxRange.
Referenced by g2o::RobotLaser::setOdomPose().
|
inline |
the parameters of the laser
Definition at line 72 of file raw_laser.h.
Referenced by g2o::Gm2dlIO::readGm2dl(), setLaserParams(), g2o::RobotLaser::setOdomPose(), and g2o::Gm2dlIO::updateLaserData().
|
inline |
the range measurements by the laser
Definition at line 64 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 52 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 68 of file raw_laser.h.
Referenced by setRemissions().
void g2o::RawLaser::setLaserParams | ( | const LaserParameters & | laserParams | ) |
Definition at line 88 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 78 of file raw_laser.cpp.
References _ranges, and ranges().
void g2o::RawLaser::setRemissions | ( | const std::vector< double > & | remissions | ) |
Definition at line 83 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 45 of file raw_laser.cpp.
|
protected |
Definition at line 78 of file raw_laser.h.
Referenced by cartesian(), g2o::RobotLaser::read(), read(), setLaserParams(), and g2o::RobotLaser::write().
|
protected |
Definition at line 76 of file raw_laser.h.
Referenced by cartesian(), g2o::RobotLaser::read(), read(), and setRanges().
|
protected |
Definition at line 77 of file raw_laser.h.
Referenced by g2o::RobotLaser::read(), read(), setRemissions(), and g2o::RobotLaser::write().