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