Main Page
Namespaces
Classes
Files
File List
File Members
include
gmapping
sensor
sensor_range
rangesensor.h
Go to the documentation of this file.
1
#ifndef RANGESENSOR_H
2
#define RANGESENSOR_H
3
4
#include <vector>
5
#include <
gmapping/sensor/sensor_base/sensor.h
>
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
:
29
OrientedPoint
m_pose
;
30
std::vector<Beam>
m_beams
;
31
};
32
33
};
34
35
#endif
GMapping::RangeSensor::RangeSensor
RangeSensor(std::string name)
Definition:
rangesensor.cpp:5
point.h
GMapping::RangeSensor::beams
std::vector< Beam > & beams()
Definition:
rangesensor.h:24
GMapping::RangeSensor::m_beams
std::vector< Beam > m_beams
Definition:
rangesensor.h:30
GMapping::Sensor
Definition:
sensor.h:9
sensor.h
GMapping::RangeSensor::Beam::s
double s
Definition:
rangesensor.h:19
GMapping::RangeSensor::Beam
Definition:
rangesensor.h:15
GMapping::orientedpoint< double, double >
maxrange
double maxrange
Definition:
gfs2stream.cpp:22
GMapping::Configuration
Definition:
configuration.h:9
GMapping::RangeSensor::updateBeamsLookup
void updateBeamsLookup()
Definition:
rangesensor.cpp:22
GMapping::CarmenWrapper
Definition:
carmenwrapper.h:42
GMapping::RangeSensor::m_pose
OrientedPoint m_pose
Definition:
rangesensor.h:29
GMapping::RangeSensor::Beam::c
double c
Definition:
rangesensor.h:19
GMapping::CarmenConfiguration
Definition:
carmenconfiguration.h:13
GMapping
Definition:
carmenwrapper.h:40
GMapping::RangeSensor
Definition:
rangesensor.h:10
GMapping::RangeSensor::getPose
OrientedPoint getPose() const
Definition:
rangesensor.h:25
GMapping::RangeSensor::newFormat
bool newFormat
Definition:
rangesensor.h:27
GMapping::RangeSensor::Beam::maxRange
double maxRange
Definition:
rangesensor.h:18
GMapping::RangeSensor::Beam::pose
OrientedPoint pose
Definition:
rangesensor.h:16
GMapping::RangeSensor::beams
const std::vector< Beam > & beams() const
Definition:
rangesensor.h:23
GMapping::OrientedPoint
orientedpoint< double, double > OrientedPoint
Definition:
point.h:203
GMapping::RangeSensor::Beam::span
double span
Definition:
rangesensor.h:17
openslam_gmapping
Author(s): Giorgio Grisetti, Cyrill Stachniss, Wolfram Burgard
autogenerated on Mon Jun 10 2019 14:04:22