Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
karto::LaserRangeFinder Class Reference

#include <Sensor.h>

Inheritance diagram for karto::LaserRangeFinder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

kt_double GetAngularResolution () const
kt_double GetMaximumAngle () const
kt_double GetMaximumRange () const
kt_double GetMinimumAngle () const
kt_double GetMinimumRange () const
kt_int32u GetNumberOfRangeReadings () const
const Vector2dList GetPointReadings (LocalizedLaserScan *pLocalizedLaserScan, CoordinateConverter *pCoordinateConverter, kt_bool ignoreThresholdPoints=true, kt_bool flipY=false) const
kt_double GetRangeThreshold () const
kt_int64s GetType ()
void SetAngularResolution (kt_double angularResolution)
void SetMaximumAngle (kt_double maximumAngle)
void SetMaximumRange (kt_double maximumRange)
void SetMinimumAngle (kt_double minimumAngle)
void SetMinimumRange (kt_double minimumRange)
void SetRangeThreshold (kt_double rangeThreshold)
virtual void Validate ()
virtual void Validate (SensorData *pSensorData)

Static Public Member Functions

static LaserRangeFinderCreateLaserRangeFinder (LaserRangeFinderType type, const Identifier &rName)

Private Member Functions

 KARTO_RTTI ()
 LaserRangeFinder (const Identifier &rName)
 LaserRangeFinder (const LaserRangeFinder &)
const LaserRangeFinderoperator= (const LaserRangeFinder &)
void Update ()

Private Attributes

kt_int32u m_NumberOfRangeReadings
Parameter< kt_double > * m_pAngularResolution
Parameter< kt_double > * m_pMaximumAngle
Parameter< kt_double > * m_pMaximumRange
Parameter< kt_double > * m_pMinimumAngle
Parameter< kt_double > * m_pMinimumRange
Parameter< kt_double > * m_pRangeThreshold
ParameterEnumm_pType

Detailed Description

The LaserRangeFinder defines a laser sensor that provides the pose offset position of a localized laser scan relative to the robot. The user can set an offset pose for the sensor relative to the robot coordinate system. If no value is provided by the user, the sensor is set to be at the origin of the robot coordinate system. The LaserRangeFinder contains parameters for physical laser sensor used by the mapper for scan matching. It also contains information about the maximum range of the sensor and provides a threshold for limiting the range of readings. The optimal value for the range threshold depends on the angular resolution of the scan and the desired map resolution. RangeThreshold should be set as large as possible while still providing "solid" coverage between consecutive range readings.

The following example code creates a LaserRangeFinder with default values for a Sick LMS100 laser

The following laser types are supported in CreateLaserRangeFinder

LaserRangeFinder_Sick_LMS100 LaserRangeFinder_Sick_LMS200 LaserRangeFinder_Sick_LMS291 LaserRangeFinder_Hokuyo_UTM_30LX LaserRangeFinder_Hokuyo_URG_04LX

Definition at line 247 of file Sensor.h.


Constructor & Destructor Documentation

Laser range finder with given name

Parameters:
rNamename

Definition at line 66 of file Sensor.cpp.


Member Function Documentation

Creates a laser range finder of the given type and name

Parameters:
typelaser type
rNamename of sensor
Returns:
laser range finder

Definition at line 229 of file Sensor.cpp.

Gets this range finder sensor's angular resolution

Returns:
angular resolution

Definition at line 359 of file Sensor.h.

Gets this range finder sensor's maximum angle

Returns:
maximum angle

Definition at line 339 of file Sensor.h.

Gets this range finder sensor's maximum range

Returns:
maximum range

Definition at line 284 of file Sensor.h.

Gets this range finder sensor's minimum angle

Returns:
minimum angle

Definition at line 319 of file Sensor.h.

Gets this range finder sensor's minimum range

Returns:
minimum range

Definition at line 264 of file Sensor.h.

Gets the number of range readings each localized range scan must contain to be a valid scan.

Returns:
number of range readings

Definition at line 383 of file Sensor.h.

const Vector2dList karto::LaserRangeFinder::GetPointReadings ( LocalizedLaserScan pLocalizedLaserScan,
CoordinateConverter pCoordinateConverter,
kt_bool  ignoreThresholdPoints = true,
kt_bool  flipY = false 
) const

Gets point readings (potentially scaling readings if given coordinate converter is not null)

Parameters:
pLocalizedLaserScanscan
pCoordinateConvertercoordinate converter
ignoreThresholdPointswhether to ignore points that exceed the range threshold
flipYwhether to flip the y-coordinate (useful for drawing applications with inverted y-coordinates)
Returns:
list of points from the given scan

Definition at line 93 of file Sensor.cpp.

Gets the range threshold

Returns:
range threshold

Definition at line 304 of file Sensor.h.

Gets this range finder sensor's laser type

Returns:
laser type of this range finder

Definition at line 374 of file Sensor.h.

Reimplemented from karto::Sensor.

const LaserRangeFinder& karto::LaserRangeFinder::operator= ( const LaserRangeFinder ) [private]

Sets this range finder sensor's angular resolution

Parameters:
angularResolutionnew angular resolution

Definition at line 138 of file Sensor.cpp.

void karto::LaserRangeFinder::SetMaximumAngle ( kt_double  maximumAngle) [inline]

Sets this range finder sensor's maximum angle

Parameters:
maximumAnglenew maximum angle

Definition at line 348 of file Sensor.h.

void karto::LaserRangeFinder::SetMaximumRange ( kt_double  maximumRange) [inline]

Sets this range finder sensor's maximum range

Parameters:
maximumRangenew maximum range

Definition at line 293 of file Sensor.h.

void karto::LaserRangeFinder::SetMinimumAngle ( kt_double  minimumAngle) [inline]

Sets this range finder sensor's minimum angle

Parameters:
minimumAnglenew minimum angle

Definition at line 328 of file Sensor.h.

void karto::LaserRangeFinder::SetMinimumRange ( kt_double  minimumRange) [inline]

Sets this range finder sensor's minimum range

Parameters:
minimumRangenew minimum range

Definition at line 273 of file Sensor.h.

Sets the range threshold

Parameters:
rangeThresholdnew range threshold

Definition at line 127 of file Sensor.cpp.

void karto::LaserRangeFinder::Update ( ) [inline, private]

Sets the number of range readings based on the minimum and maximum angles of the sensor and the angular resolution

Definition at line 428 of file Sensor.h.

Validates this sensor

Implements karto::Sensor.

Definition at line 192 of file Sensor.cpp.

void karto::LaserRangeFinder::Validate ( SensorData pSensorData) [virtual]

Validates sensor data

Parameters:
pSensorDatasensor data

Implements karto::Sensor.

Definition at line 212 of file Sensor.cpp.


Member Data Documentation

Definition at line 451 of file Sensor.h.

Definition at line 442 of file Sensor.h.

Definition at line 440 of file Sensor.h.

Definition at line 445 of file Sensor.h.

Definition at line 439 of file Sensor.h.

Definition at line 444 of file Sensor.h.

Definition at line 447 of file Sensor.h.

Definition at line 449 of file Sensor.h.


The documentation for this class was generated from the following files:


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Sun Apr 2 2017 03:53:09