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