Skip to content

Commit

Permalink
clippy shorter type docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Sieh committed Aug 30, 2024
1 parent cecc670 commit 52005e6
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions rpcl2/src/points.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Predefined point types commonly used in ROS.
use crate::{LayoutDescription, LayoutField, PointConvertible, RPCL2Point};

/// A packed RGB color encoding as used in ROS tools.
/// Packed RGB color encoding as used in ROS tools.
#[derive(Clone, Copy)]
#[repr(C, align(4))]
pub union RGB {
Expand Down Expand Up @@ -103,8 +103,7 @@ impl From<f32> for RGB {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates.
/// 3D point with x, y, z coordinates, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZ {
Expand Down Expand Up @@ -171,8 +170,7 @@ unsafe impl PointConvertible<3> for PointXYZ {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates and an intensity value.
/// 3D point with x, y, z coordinates and an intensity value, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZI {
Expand Down Expand Up @@ -232,8 +230,7 @@ unsafe impl PointConvertible<4> for PointXYZI {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates and a label.
/// 3D point with x, y, z coordinates and a label, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZL {
Expand Down Expand Up @@ -293,8 +290,7 @@ unsafe impl PointConvertible<4> for PointXYZL {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates and an RGB color value.
/// 3D point with x, y, z coordinates and an RGB color value, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZRGB {
Expand Down Expand Up @@ -371,8 +367,7 @@ unsafe impl PointConvertible<4> for PointXYZRGB {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates and an RGBA color value.
/// 3D point with x, y, z coordinates and an RGBA color value, commonly used in ROS with PCL.
/// The alpha channel is commonly used as padding but this crate uses every channel and no padding.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
Expand Down Expand Up @@ -455,8 +450,7 @@ unsafe impl PointConvertible<5> for PointXYZRGBA {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates, an RGB color value and a normal vector.
/// 3D point with x, y, z coordinates, an RGB color value and a normal vector, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZRGBNormal {
Expand Down Expand Up @@ -561,8 +555,7 @@ unsafe impl PointConvertible<7> for PointXYZRGBNormal {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates, an intensity value and a normal vector.
/// 3D point with x, y, z coordinates, an intensity value and a normal vector, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZINormal {
Expand Down Expand Up @@ -652,8 +645,7 @@ unsafe impl PointConvertible<7> for PointXYZINormal {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates and a label.
/// 3D point with x, y, z coordinates and a label, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZRGBL {
Expand Down Expand Up @@ -741,8 +733,7 @@ unsafe impl PointConvertible<5> for PointXYZRGBL {
}
}

/// Predefined point type commonly used in ROS with PCL.
/// This is a 3D point with x, y, z coordinates and a normal vector.
/// 3D point with x, y, z coordinates and a normal vector, commonly used in ROS with PCL.
#[derive(Clone, Debug, PartialEq, Copy, Default)]
#[repr(C, align(16))]
pub struct PointXYZNormal {
Expand Down

0 comments on commit 52005e6

Please sign in to comment.