35 RawLaser::RawLaser() :
37 _laserParams(0, 180, -
M_PI/2,
M_PI/180., 50.,0.1, 0)
48 cerr <<
"RawLaser::write() not implemented yet." << endl;
55 double angle, fov, res, maxrange, acc;
57 is >> type >> angle >> fov >> res >> maxrange >> acc >> remission_mode;
63 for (
int i=0; i<beams; i++)
68 for (
int i=0; i < beams; i++)
96 for (
size_t i = 0; i <
_ranges.size(); ++i) {
100 points.push_back(
Vector2D(cos(alpha) * r, sin(alpha) * r));
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
std::string _hostname
name of the computer/robot generating the data
std::vector< Vector2D, Eigen::aligned_allocator< Vector2D > > Point2DVector
virtual bool write(std::ostream &os) const
write the data to a stream
double _timestamp
timestamp when the measurement was generated
void setLaserParams(const LaserParameters &laserParams)
double _loggerTimestamp
timestamp when the measurement was recorded
std::vector< double > _ranges
const std::vector< double > & remissions() const
the remission measurements by the laser
void setRanges(const std::vector< double > &ranges)
const std::vector< double > & ranges() const
the range measurements by the laser
const LaserParameters & laserParams() const
the parameters of the laser
void setRemissions(const std::vector< double > &remissions)
LaserParameters _laserParams
virtual bool read(std::istream &is)
read the data from a stream
std::vector< double > _remissions
Point2DVector cartesian() const
data recorded by the robot
parameters for a 2D range finder