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... | |
gz::math::Angle | HorizontalScanMaxAngle () const |
Get the maximum angle for horizontal scan. More... | |
gz::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 gz::math::Angle &_max) |
Set the maximum angle for horizontal scan. More... | |
void | SetHorizontalScanMinAngle (const gz::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 gz::math::Angle &_max) |
Set the maximum angle for vertical scan. More... | |
void | SetVerticalScanMinAngle (const gz::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... | |
gz::math::Angle | VerticalScanMaxAngle () const |
Get the maximum angle for vertical scan. More... | |
gz::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::v9::Lidar::Lidar | ( | ) |
Default constructor.
|
noexcept |
Move constructor.
[in] | _lidar | Lidar to move. |
sdf::v9::Lidar::~Lidar | ( | ) |
Destructor.
sdf::ElementPtr sdf::v9::Lidar::Element | ( | ) | const |
gz::math::Angle sdf::v9::Lidar::HorizontalScanMaxAngle | ( | ) | const |
Get the maximum angle for horizontal scan.
gz::math::Angle sdf::v9::Lidar::HorizontalScanMinAngle | ( | ) | const |
Get the minimum angle for horizontal scan.
double sdf::v9::Lidar::HorizontalScanResolution | ( | ) | const |
Get the resolution for horizontal scan.
unsigned int sdf::v9::Lidar::HorizontalScanSamples | ( | ) | const |
Get the number of lidar rays horizontally to generate per laser sweep.
const Noise& sdf::v9::Lidar::LidarNoise | ( | ) | const |
Get the noise values for the lidar sensor.
Errors sdf::v9::Lidar::Load | ( | ElementPtr | _sdf | ) |
bool sdf::v9::Lidar::operator!= | ( | const Lidar & | _lidar | ) | const |
Assignment operator.
[in] | _lidar | The lidar to set values from. |
Move assignment operator.
[in] | _lidar | The lidar to set values from. |
bool sdf::v9::Lidar::operator== | ( | const Lidar & | _lidar | ) | const |
double sdf::v9::Lidar::RangeMax | ( | ) | const |
Get maximum distance for each lidar ray.
double sdf::v9::Lidar::RangeMin | ( | ) | const |
Get minimum distance for each lidar ray.
double sdf::v9::Lidar::RangeResolution | ( | ) | const |
Get linear resolution of each lidar ray.
void sdf::v9::Lidar::SetHorizontalScanMaxAngle | ( | const gz::math::Angle & | _max | ) |
Set the maximum angle for horizontal scan.
[in] | Maximum | angle for horizontal scan. |
void sdf::v9::Lidar::SetHorizontalScanMinAngle | ( | const gz::math::Angle & | _min | ) |
Set the minimum angle for horizontal scan.
[in] | Minimum | angle for horizontal scan. |
void sdf::v9::Lidar::SetHorizontalScanResolution | ( | double | _res | ) |
Set the resolution for horizontal scan.
[in] | Resolution | for horizontal scan. |
void sdf::v9::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::v9::Lidar::SetLidarNoise | ( | const Noise & | _noise | ) |
\biref Set the noise values for the lidar sensor.
[in] | _noise | Noise values for the lidar sensor. |
void sdf::v9::Lidar::SetRangeMax | ( | double | _max | ) |
Set maximum distance for each lidar ray.
[in] | Maximum | distance for each lidar ray. |
void sdf::v9::Lidar::SetRangeMin | ( | double | _min | ) |
Set minimum distance for each lidar ray.
[in] | Minimum | distance for each lidar ray. |
void sdf::v9::Lidar::SetRangeResolution | ( | double | _range | ) |
Set linear resolution of each lidar ray.
[in] | Linear | resolution for each lidar ray. |
void sdf::v9::Lidar::SetVerticalScanMaxAngle | ( | const gz::math::Angle & | _max | ) |
Set the maximum angle for vertical scan.
[in] | Maximum | angle for vertical scan. |
void sdf::v9::Lidar::SetVerticalScanMinAngle | ( | const gz::math::Angle & | _min | ) |
Set the minimum angle for vertical scan.
[in] | Minimum | angle for vertical scan. |
void sdf::v9::Lidar::SetVerticalScanResolution | ( | double | _res | ) |
Set the resolution for vertical scan.
[in] | Resolution | for vertical scan. |
void sdf::v9::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. |
gz::math::Angle sdf::v9::Lidar::VerticalScanMaxAngle | ( | ) | const |
Get the maximum angle for vertical scan.
gz::math::Angle sdf::v9::Lidar::VerticalScanMinAngle | ( | ) | const |
Get the minimum angle for vertical scan.
double sdf::v9::Lidar::VerticalScanResolution | ( | ) | const |
Get the resolution for vertical scan.
unsigned int sdf::v9::Lidar::VerticalScanSamples | ( | ) | const |
Get the number of lidar rays vertically to generate per laser sweep.