namespace RobotNet10.Shared.Sensor; /// /// Range message (sensor_msgs/Range) /// Single range reading from an active ranger that emits energy and reports /// one range reading that is valid along an arc at the distance measured. /// public struct Range { /// /// Header with timestamp and frame ID /// public Header Header { get; set; } /// /// Radiation type constants /// public const byte RadiationTypeUltrasound = 0; public const byte RadiationTypeInfrared = 1; /// /// The type of radiation used by the sensor (RadiationType constants) /// public byte RadiationType { get; set; } /// /// The size of the arc that the distance reading is valid for (rad) /// public double FieldOfView { get; set; } /// /// Minimum range value (m) /// public double MinRange { get; set; } /// /// Maximum range value (m) /// public double MaxRange { get; set; } /// /// Range data (m) /// (Note: values < range_min or > range_max should be discarded) /// public double RangeValue { get; set; } /// /// Default constructor /// public Range() { Header = new Header(); RadiationType = RadiationTypeUltrasound; FieldOfView = 0.0; MinRange = 0.0; MaxRange = 0.0; RangeValue = 0.0; } }