rangesensor.h
Go to the documentation of this file.
1 #ifndef RANGESENSOR_H
2 #define RANGESENSOR_H
3 
4 #include <vector>
6 #include <gmapping/utils/point.h>
7 
8 namespace GMapping{
9 
10 class RangeSensor: public Sensor{
11  friend class Configuration;
12  friend class CarmenConfiguration;
13  friend class CarmenWrapper;
14  public:
15  struct Beam{
16  OrientedPoint pose; //pose relative to the center of the sensor
17  double span; //spam=0 indicates a line-like beam
18  double maxRange; //maximum range of the sensor
19  double s,c; //sinus and cosinus of the beam (optimization);
20  };
21  RangeSensor(std::string name);
22  RangeSensor(std::string name, unsigned int beams, double res, const OrientedPoint& position=OrientedPoint(0,0,0), double span=0, double maxrange=89.0);
23  inline const std::vector<Beam>& beams() const {return m_beams;}
24  inline std::vector<Beam>& beams() {return m_beams;}
25  inline OrientedPoint getPose() const {return m_pose;}
26  void updateBeamsLookup();
27  bool newFormat;
28  protected:
30  std::vector<Beam> m_beams;
31 };
32 
33 };
34 
35 #endif
RangeSensor(std::string name)
Definition: rangesensor.cpp:5
std::vector< Beam > & beams()
Definition: rangesensor.h:24
std::vector< Beam > m_beams
Definition: rangesensor.h:30
double maxrange
Definition: gfs2stream.cpp:22
OrientedPoint m_pose
Definition: rangesensor.h:29
OrientedPoint getPose() const
Definition: rangesensor.h:25
const std::vector< Beam > & beams() const
Definition: rangesensor.h:23
orientedpoint< double, double > OrientedPoint
Definition: point.h:203


openslam_gmapping
Author(s): Giorgio Grisetti, Cyrill Stachniss, Wolfram Burgard
autogenerated on Mon Jun 10 2019 14:04:22