Lidar contains information about a Lidar sensor. More...
#include <Lidar.hh>
Public Member Functions | |
Lidar () | |
Default constructor. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
ignition::math::Angle | HorizontalScanMaxAngle () const |
Get the maximum angle for horizontal scan. More... | |
ignition::math::Angle | HorizontalScanMinAngle () const |
Get the minimum angle for horizontal scan. More... | |
double | HorizontalScanResolution () const |
Get the resolution for horizontal scan. More... | |
unsigned int | HorizontalScanSamples () const |
Get the number of lidar rays horizontally to generate per laser sweep. More... | |
const Noise & | LidarNoise () const |
Get the noise values for the lidar sensor. More... | |
Errors | Load (ElementPtr _sdf) |
Load the lidar based on an element pointer. More... | |
bool | operator!= (const Lidar &_lidar) const |
Return true this Lidar object does not contain the same values as the passed in parameter. More... | |
bool | operator== (const Lidar &_lidar) const |
Return true if both Lidar objects contain the same values. More... | |
double | RangeMax () const |
Get maximum distance for each lidar ray. More... | |
double | RangeMin () const |
Get minimum distance for each lidar ray. More... | |
double | RangeResolution () const |
Get linear resolution of each lidar ray. More... | |
void | SetHorizontalScanMaxAngle (const ignition::math::Angle &_max) |
Set the maximum angle for horizontal scan. More... | |
void | SetHorizontalScanMinAngle (const ignition::math::Angle &_min) |
Set the minimum angle for horizontal scan. More... | |
void | SetHorizontalScanResolution (double _res) |
Set the resolution for horizontal scan. More... | |
void | SetHorizontalScanSamples (unsigned int _samples) |
Set the number of lidar rays horizontally to generate per laser sweep. More... | |
void | SetLidarNoise (const Noise &_noise) |
\biref Set the noise values for the lidar sensor. More... | |
void | SetRangeMax (double _max) |
Set maximum distance for each lidar ray. More... | |
void | SetRangeMin (double _min) |
Set minimum distance for each lidar ray. More... | |
void | SetRangeResolution (double _range) |
Set linear resolution of each lidar ray. More... | |
void | SetVerticalScanMaxAngle (const ignition::math::Angle &_max) |
Set the maximum angle for vertical scan. More... | |
void | SetVerticalScanMinAngle (const ignition::math::Angle &_min) |
Set the minimum angle for vertical scan. More... | |
void | SetVerticalScanResolution (double _res) |
Set the resolution for vertical scan. More... | |
void | SetVerticalScanSamples (unsigned int _samples) |
Set the number of lidar rays vertically to generate per laser sweep. More... | |
void | SetVisibilityMask (uint32_t _mask) |
Set the visibility mask of a lidar. More... | |
sdf::ElementPtr | ToElement () const |
Create and return an SDF element filled with data from this lidar. More... | |
ignition::math::Angle | VerticalScanMaxAngle () const |
Get the maximum angle for vertical scan. More... | |
ignition::math::Angle | VerticalScanMinAngle () const |
Get the minimum angle for vertical scan. More... | |
double | VerticalScanResolution () const |
Get the resolution for vertical scan. More... | |
unsigned int | VerticalScanSamples () const |
Get the number of lidar rays vertically to generate per laser sweep. More... | |
uint32_t | VisibilityMask () const |
Get the visibility mask of a lidar. More... | |
Lidar contains information about a Lidar sensor.
This sensor can be attached to a link. The Lidar sensor can be defined SDF XML using either the "ray" or "lidar" types. The "lidar" type is preffered as "ray" is considered legacy.
sdf::v12::Lidar::Lidar | ( | ) |
Default constructor.
sdf::ElementPtr sdf::v12::Lidar::Element | ( | ) | const |
ignition::math::Angle sdf::v12::Lidar::HorizontalScanMaxAngle | ( | ) | const |
Get the maximum angle for horizontal scan.
ignition::math::Angle sdf::v12::Lidar::HorizontalScanMinAngle | ( | ) | const |
Get the minimum angle for horizontal scan.
double sdf::v12::Lidar::HorizontalScanResolution | ( | ) | const |
Get the resolution for horizontal scan.
unsigned int sdf::v12::Lidar::HorizontalScanSamples | ( | ) | const |
Get the number of lidar rays horizontally to generate per laser sweep.
const Noise& sdf::v12::Lidar::LidarNoise | ( | ) | const |
Get the noise values for the lidar sensor.
Errors sdf::v12::Lidar::Load | ( | ElementPtr | _sdf | ) |
bool sdf::v12::Lidar::operator!= | ( | const Lidar & | _lidar | ) | const |
bool sdf::v12::Lidar::operator== | ( | const Lidar & | _lidar | ) | const |
double sdf::v12::Lidar::RangeMax | ( | ) | const |
Get maximum distance for each lidar ray.
double sdf::v12::Lidar::RangeMin | ( | ) | const |
Get minimum distance for each lidar ray.
double sdf::v12::Lidar::RangeResolution | ( | ) | const |
Get linear resolution of each lidar ray.
void sdf::v12::Lidar::SetHorizontalScanMaxAngle | ( | const ignition::math::Angle & | _max | ) |
Set the maximum angle for horizontal scan.
[in] | Maximum | angle for horizontal scan. |
void sdf::v12::Lidar::SetHorizontalScanMinAngle | ( | const ignition::math::Angle & | _min | ) |
Set the minimum angle for horizontal scan.
[in] | Minimum | angle for horizontal scan. |
void sdf::v12::Lidar::SetHorizontalScanResolution | ( | double | _res | ) |
Set the resolution for horizontal scan.
[in] | Resolution | for horizontal scan. |
void sdf::v12::Lidar::SetHorizontalScanSamples | ( | unsigned int | _samples | ) |
Set the number of lidar rays horizontally to generate per laser sweep.
[in] | Number | of lidar rays horizontally per laser sweep. |
void sdf::v12::Lidar::SetLidarNoise | ( | const Noise & | _noise | ) |
\biref Set the noise values for the lidar sensor.
[in] | _noise | Noise values for the lidar sensor. |
void sdf::v12::Lidar::SetRangeMax | ( | double | _max | ) |
Set maximum distance for each lidar ray.
[in] | Maximum | distance for each lidar ray. |
void sdf::v12::Lidar::SetRangeMin | ( | double | _min | ) |
Set minimum distance for each lidar ray.
[in] | Minimum | distance for each lidar ray. |
void sdf::v12::Lidar::SetRangeResolution | ( | double | _range | ) |
Set linear resolution of each lidar ray.
[in] | Linear | resolution for each lidar ray. |
void sdf::v12::Lidar::SetVerticalScanMaxAngle | ( | const ignition::math::Angle & | _max | ) |
Set the maximum angle for vertical scan.
[in] | Maximum | angle for vertical scan. |
void sdf::v12::Lidar::SetVerticalScanMinAngle | ( | const ignition::math::Angle & | _min | ) |
Set the minimum angle for vertical scan.
[in] | Minimum | angle for vertical scan. |
void sdf::v12::Lidar::SetVerticalScanResolution | ( | double | _res | ) |
Set the resolution for vertical scan.
[in] | Resolution | for vertical scan. |
void sdf::v12::Lidar::SetVerticalScanSamples | ( | unsigned int | _samples | ) |
Set the number of lidar rays vertically to generate per laser sweep.
[in] | Number | of lidar rays vertically per laser sweep. |
void sdf::v12::Lidar::SetVisibilityMask | ( | uint32_t | _mask | ) |
Set the visibility mask of a lidar.
[in] | _mask | visibility mask |
sdf::ElementPtr sdf::v12::Lidar::ToElement | ( | ) | const |
ignition::math::Angle sdf::v12::Lidar::VerticalScanMaxAngle | ( | ) | const |
Get the maximum angle for vertical scan.
ignition::math::Angle sdf::v12::Lidar::VerticalScanMinAngle | ( | ) | const |
Get the minimum angle for vertical scan.
double sdf::v12::Lidar::VerticalScanResolution | ( | ) | const |
Get the resolution for vertical scan.
unsigned int sdf::v12::Lidar::VerticalScanSamples | ( | ) | const |
Get the number of lidar rays vertically to generate per laser sweep.
uint32_t sdf::v12::Lidar::VisibilityMask | ( | ) | const |
Get the visibility mask of a lidar.