namespace RobotNet10.Shared.Sensor;
///
/// Image message (sensor_msgs/Image)
/// This message contains an uncompressed image
///
public struct Image
{
///
/// Header with timestamp and frame ID
///
public Header Header { get; set; }
///
/// Image height (rows)
///
public uint Height { get; set; }
///
/// Image width (columns)
///
public uint Width { get; set; }
///
/// Encoding of pixels -- channel meaning, ordering, size
///
public string Encoding { get; set; }
///
/// Is this data bigendian?
///
public byte IsBigendian { get; set; }
///
/// Full row length in bytes
///
public uint Step { get; set; }
///
/// Actual matrix data, size is (step * rows)
///
public byte[] Data { get; set; }
///
/// Default constructor
///
public Image()
{
Header = new Header();
Height = 0;
Width = 0;
Encoding = string.Empty;
IsBigendian = 0;
Step = 0;
Data = [];
}
}