Lidar contains information about a Lidar sensor. More...
#include <Lidar.hh>
Public Member Functions | |
Lidar () | |
Default constructor. More... | |
Lidar (const Lidar &_lidar) | |
Copy constructor. More... | |
Lidar (Lidar &&_lidar) noexcept | |
Move constructor. More... | |
~Lidar () | |
Destructor. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
math::Angle | HorizontalScanMaxAngle () const |
Get the maximum angle for horizontal scan. More... | |
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... | |
Lidar & | operator= (const Lidar &_lidar) |
Assignment operator. More... | |
Lidar & | operator= (Lidar &&_lidar) noexcept |
Move assignment operator. 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 math::Angle &_max) |
Set the maximum angle for horizontal scan. More... | |
void | SetHorizontalScanMinAngle (const 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) |
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 math::Angle &_max) |
Set the maximum angle for vertical scan. More... | |
void | SetVerticalScanMinAngle (const 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... | |
math::Angle | VerticalScanMaxAngle () const |
Get the maximum angle for vertical scan. More... | |
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... | |
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::v8::Lidar::Lidar | ( | ) |
Default constructor.
|
noexcept |
Move constructor.
[in] | _lidar | Lidar to move. |
sdf::v8::Lidar::~Lidar | ( | ) |
Destructor.
sdf::ElementPtr sdf::v8::Lidar::Element | ( | ) | const |
math::Angle sdf::v8::Lidar::HorizontalScanMaxAngle | ( | ) | const |
Get the maximum angle for horizontal scan.
math::Angle sdf::v8::Lidar::HorizontalScanMinAngle | ( | ) | const |
Get the minimum angle for horizontal scan.
double sdf::v8::Lidar::HorizontalScanResolution | ( | ) | const |
Get the resolution for horizontal scan.
unsigned int sdf::v8::Lidar::HorizontalScanSamples | ( | ) | const |
Get the number of lidar rays horizontally to generate per laser sweep.
const Noise& sdf::v8::Lidar::LidarNoise | ( | ) | const |
Get the noise values for the lidar sensor.
Errors sdf::v8::Lidar::Load | ( | ElementPtr | _sdf | ) |
bool sdf::v8::Lidar::operator!= | ( | const Lidar & | _lidar | ) | const |
Return true this Lidar object does not contain the same values as the passed in parameter.
Assignment operator.
[in] | _lidar | The lidar to set values from. |
Move assignment operator.
[in] | _lidar | The lidar to set values from. |
bool sdf::v8::Lidar::operator== | ( | const Lidar & | _lidar | ) | const |
Return true if both Lidar objects contain the same values.
double sdf::v8::Lidar::RangeMax | ( | ) | const |
Get maximum distance for each lidar ray.
double sdf::v8::Lidar::RangeMin | ( | ) | const |
Get minimum distance for each lidar ray.
double sdf::v8::Lidar::RangeResolution | ( | ) | const |
Get linear resolution of each lidar ray.
void sdf::v8::Lidar::SetHorizontalScanMaxAngle | ( | const math::Angle & | _max | ) |
Set the maximum angle for horizontal scan.
[in] | Maximum | angle for horizontal scan. |
void sdf::v8::Lidar::SetHorizontalScanMinAngle | ( | const math::Angle & | _min | ) |
Set the minimum angle for horizontal scan.
[in] | Minimum | angle for horizontal scan. |
void sdf::v8::Lidar::SetHorizontalScanResolution | ( | double | _res | ) |
Set the resolution for horizontal scan.
[in] | Resolution | for horizontal scan. |
void sdf::v8::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::v8::Lidar::SetLidarNoise | ( | const Noise & | _noise | ) |
Set the noise values for the lidar sensor.
[in] | _noise | Noise values for the lidar sensor. |
void sdf::v8::Lidar::SetRangeMax | ( | double | _max | ) |
Set maximum distance for each lidar ray.
[in] | Maximum | distance for each lidar ray. |
void sdf::v8::Lidar::SetRangeMin | ( | double | _min | ) |
Set minimum distance for each lidar ray.
[in] | Minimum | distance for each lidar ray. |
void sdf::v8::Lidar::SetRangeResolution | ( | double | _range | ) |
Set linear resolution of each lidar ray.
[in] | Linear | resolution for each lidar ray. |
void sdf::v8::Lidar::SetVerticalScanMaxAngle | ( | const math::Angle & | _max | ) |
Set the maximum angle for vertical scan.
[in] | Maximum | angle for vertical scan. |
void sdf::v8::Lidar::SetVerticalScanMinAngle | ( | const math::Angle & | _min | ) |
Set the minimum angle for vertical scan.
[in] | Minimum | angle for vertical scan. |
void sdf::v8::Lidar::SetVerticalScanResolution | ( | double | _res | ) |
Set the resolution for vertical scan.
[in] | Resolution | for vertical scan. |
void sdf::v8::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. |
math::Angle sdf::v8::Lidar::VerticalScanMaxAngle | ( | ) | const |
Get the maximum angle for vertical scan.
math::Angle sdf::v8::Lidar::VerticalScanMinAngle | ( | ) | const |
Get the minimum angle for vertical scan.
double sdf::v8::Lidar::VerticalScanResolution | ( | ) | const |
Get the resolution for vertical scan.
unsigned int sdf::v8::Lidar::VerticalScanSamples | ( | ) | const |
Get the number of lidar rays vertically to generate per laser sweep.