46 G2O_ERROR(
"RawLaser::write() not implemented yet.");
52 double angle, fov, res, maxrange, acc;
54 is >> type >> angle >> fov >> res >> maxrange >> acc >> remission_mode;
59 LaserParameters(type, beams, angle, res, maxrange, acc, remission_mode);
61 for (
int i = 0; i < beams; i++) is >>
_ranges[i];
65 for (
int i = 0; i < beams; i++) is >>
_remissions[i];
86 for (
size_t i = 0; i <
_ranges.size(); ++i) {
90 points.push_back(
Vector2(std::cos(alpha) * r, std::sin(alpha) * r));
const std::vector< double > & ranges() const
the range measurements by the laser
std::vector< double > _remissions
std::vector< double > _ranges
void setLaserParams(const LaserParameters &laserParams)
const LaserParameters & laserParams() const
the parameters of the laser
Point2DVector cartesian() const
void setRanges(const std::vector< double > &ranges)
void setRemissions(const std::vector< double > &remissions)
virtual bool read(std::istream &is)
read the data from a stream
LaserParameters _laserParams
std::vector< Vector2 > Point2DVector
virtual bool write(std::ostream &os) const
write the data to a stream
const std::vector< double > & remissions() const
the remission measurements by the laser
data recorded by the robot
double _loggerTimestamp
timestamp when the measurement was recorded
std::string _hostname
name of the computer/robot generating the data
double _timestamp
timestamp when the measurement was generated
constexpr double cst(long double v)
constexpr double const_pi()
parameters for a 2D range finder