pub struct PointData {
pub data_frame: DataFrame,
}
Expand description
Wrapper around the data frame with type-safe columns.
Fields§
§data_frame: DataFrame
Implementations§
Source§impl PointData
impl PointData
pub fn get_x_values(&self) -> &Float64Chunked
pub fn get_y_values(&self) -> &Float64Chunked
pub fn get_z_values(&self) -> &Float64Chunked
pub fn get_id_values(&self) -> Result<&UInt64Chunked, Error>
pub fn get_frame_id_values(&self) -> Result<&CategoricalChunked, Error>
pub fn get_timestamp_sec_values(&self) -> Result<&Int64Chunked, Error>
pub fn get_timestamp_nanosec_values(&self) -> Result<&UInt32Chunked, Error>
pub fn get_intensity_values(&self) -> Result<&Float32Chunked, Error>
pub fn get_sensor_translation_x_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_sensor_translation_y_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_sensor_translation_z_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_sensor_rotation_i_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_sensor_rotation_j_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_sensor_rotation_k_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_sensor_rotation_w_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_color_red_values(&self) -> Result<&UInt16Chunked, Error>
pub fn get_color_green_values(&self) -> Result<&UInt16Chunked, Error>
pub fn get_color_blue_values(&self) -> Result<&UInt16Chunked, Error>
pub fn get_spherical_azimuth_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_spherical_elevation_values(&self) -> Result<&Float64Chunked, Error>
pub fn get_spherical_range_values(&self) -> Result<&Float64Chunked, Error>
Source§impl PointData
impl PointData
pub fn contains_id_column(&self) -> bool
pub fn contains_frame_id_column(&self) -> bool
pub fn contains_timestamp_sec_column(&self) -> bool
pub fn contains_timestamp_nanosec_column(&self) -> bool
pub fn contains_intensity_column(&self) -> bool
pub fn contains_sensor_translation_x_column(&self) -> bool
pub fn contains_sensor_translation_y_column(&self) -> bool
pub fn contains_sensor_translation_z_column(&self) -> bool
pub fn contains_sensor_rotation_i_column(&self) -> bool
pub fn contains_sensor_rotation_j_column(&self) -> bool
pub fn contains_sensor_rotation_k_column(&self) -> bool
pub fn contains_sensor_rotation_w_column(&self) -> bool
pub fn contains_color_red_column(&self) -> bool
pub fn contains_color_green_column(&self) -> bool
pub fn contains_color_blue_column(&self) -> bool
pub fn contains_spherical_azimuth_column(&self) -> bool
pub fn contains_spherical_elevation_column(&self) -> bool
pub fn contains_spherical_range_column(&self) -> bool
pub fn contains_octant_index_level_column(&self) -> bool
pub fn contains_octant_index_x_column(&self) -> bool
pub fn contains_octant_index_y_column(&self) -> bool
pub fn contains_octant_index_z_column(&self) -> bool
Source§impl PointData
impl PointData
pub fn contains_timestamps(&self) -> bool
pub fn contains_sensor_translation(&self) -> bool
pub fn contains_sensor_rotation(&self) -> bool
pub fn contains_sensor_pose(&self) -> bool
pub fn contains_colors(&self) -> bool
pub fn contains_octant_indices(&self) -> bool
Source§impl PointData
impl PointData
Sourcepub fn get_all_points(&self) -> Vec<Point3<f64>> ⓘ
pub fn get_all_points(&self) -> Vec<Point3<f64>> ⓘ
Returns all points as a vector in the local coordinate frame.
pub fn get_all_frame_ids(&self) -> Result<Vec<FrameId>, Error>
pub fn get_all_timestamps(&self) -> Result<Vec<DateTime<Utc>>, Error>
Sourcepub fn get_all_sensor_translations(&self) -> Result<Vec<Point3<f64>>, Error>
pub fn get_all_sensor_translations(&self) -> Result<Vec<Point3<f64>>, Error>
Returns all sensor translations as points in the local coordinate frame.
Sourcepub fn get_all_sensor_rotations(
&self,
) -> Result<Vec<UnitQuaternion<f64>>, Error>
pub fn get_all_sensor_rotations( &self, ) -> Result<Vec<UnitQuaternion<f64>>, Error>
Returns all sensor rotations as quaternions in the local coordinate frame.
Sourcepub fn get_all_sensor_poses(&self) -> Result<Vec<Isometry3<f64>>, Error>
pub fn get_all_sensor_poses(&self) -> Result<Vec<Isometry3<f64>>, Error>
Returns all sensor rotations as quaternions in the local coordinate frame.
pub fn get_all_colors(&self) -> Result<Vec<Srgb<u16>>, Error>
pub fn get_all_spherical_points( &self, ) -> Result<Vec<SphericalPoint3<f64>>, Error>
Source§impl PointData
impl PointData
pub fn get_distinct_frame_ids(&self) -> Result<HashSet<FrameId>, Error>
pub fn get_timestamp_min(&self) -> Result<Option<DateTime<Utc>>, Error>
pub fn get_timestamp_max(&self) -> Result<Option<DateTime<Utc>>, Error>
pub fn get_median_time(&self) -> Result<DateTime<Utc>, Error>
Sourcepub fn get_axis_aligned_bounding_box(&self) -> AxisAlignedBoundingBox
pub fn get_axis_aligned_bounding_box(&self) -> AxisAlignedBoundingBox
Returns the AABB.
Sourcepub fn get_local_min(&self) -> Point3<f64>
pub fn get_local_min(&self) -> Point3<f64>
Returns the minimum point of the AABB.
Sourcepub fn get_local_max(&self) -> Point3<f64>
pub fn get_local_max(&self) -> Point3<f64>
Returns the maximum point of the AABB.
Sourcepub fn get_local_center(&self) -> Point3<f64>
pub fn get_local_center(&self) -> Point3<f64>
Returns the center point of the AABB.
Sourcepub fn get_local_sensor_translation_min(&self) -> Result<Point3<f64>, Error>
pub fn get_local_sensor_translation_min(&self) -> Result<Point3<f64>, Error>
Returns the minimum sensor translation point of the AABB.
Sourcepub fn get_local_sensor_translation_max(&self) -> Result<Point3<f64>, Error>
pub fn get_local_sensor_translation_max(&self) -> Result<Point3<f64>, Error>
Returns the maximum sensor translation point of the AABB.
pub fn get_id_min(&self) -> Result<Option<u64>, Error>
pub fn get_id_max(&self) -> Result<Option<u64>, Error>
pub fn get_intensity_min(&self) -> Result<Option<f32>, Error>
pub fn get_intensity_max(&self) -> Result<Option<f32>, Error>
pub fn derive_convex_hull(&self) -> Option<ConvexPolyhedron>
Source§impl PointData
impl PointData
Sourcepub fn add_sequential_id(&mut self) -> Result<(), Error>
pub fn add_sequential_id(&mut self) -> Result<(), Error>
Adds a sequentially increasing id column, if no column exists.
Sourcepub fn derive_spherical_points(&mut self) -> Result<(), Error>
pub fn derive_spherical_points(&mut self) -> Result<(), Error>
Derives spherical points.
Sourcepub fn add_i64_column(
&mut self,
name: &str,
values: Vec<i64>,
) -> Result<(), Error>
pub fn add_i64_column( &mut self, name: &str, values: Vec<i64>, ) -> Result<(), Error>
Add a new column to this DataFrame or replace an existing one.
Sourcepub fn add_u32_column(
&mut self,
name: &str,
values: Vec<u32>,
) -> Result<(), Error>
pub fn add_u32_column( &mut self, name: &str, values: Vec<u32>, ) -> Result<(), Error>
Add a new column to this DataFrame or replace an existing one.
Sourcepub fn add_f32_column(
&mut self,
name: &str,
values: Vec<f32>,
) -> Result<(), Error>
pub fn add_f32_column( &mut self, name: &str, values: Vec<f32>, ) -> Result<(), Error>
Add a new column to this DataFrame or replace an existing one.
Source§impl PointData
impl PointData
pub fn update_points_in_place( &mut self, points: Vec<Point3<f64>>, ) -> Result<(), Error>
pub fn update_sensor_translations_in_place( &mut self, sensor_translations: Vec<Point3<f64>>, ) -> Result<(), Error>
pub fn update_sensor_rotations_in_place( &mut self, sensor_rotations: Vec<UnitQuaternion<f64>>, ) -> Result<(), Error>
pub fn update_sensor_poses_in_place( &mut self, sensor_poses: Vec<Isometry3<f64>>, ) -> Result<(), Error>
pub fn add_spherical_points( &mut self, spherical_points: Vec<SphericalPoint3<f64>>, ) -> Result<(), Error>
pub fn add_octant_indices( &mut self, octant_indices: Vec<OctantIndex>, ) -> Result<(), Error>
pub fn add_unique_frame_id(&mut self, frame_id: FrameId) -> Result<(), Error>
pub fn add_frame_ids(&mut self, frame_ids: Vec<FrameId>) -> Result<(), Error>
pub fn add_unique_sensor_translation( &mut self, sensor_translation: Point3<f64>, ) -> Result<(), Error>
pub fn add_sensor_translations( &mut self, sensor_translations: Vec<Point3<f64>>, ) -> Result<(), Error>
pub fn add_unique_sensor_rotation( &mut self, sensor_rotation: UnitQuaternion<f64>, ) -> Result<(), Error>
pub fn add_sensor_rotations( &mut self, sensor_rotations: Vec<UnitQuaternion<f64>>, ) -> Result<(), Error>
pub fn add_unique_sensor_pose( &mut self, sensor_pose: Isometry3<f64>, ) -> Result<(), Error>
pub fn add_sensor_poses( &mut self, sensor_poses: Vec<Isometry3<f64>>, ) -> Result<(), Error>
pub fn add_unique_color(&mut self, color: Srgb<u16>) -> Result<(), Error>
pub fn add_colors(&mut self, colors: Vec<Srgb<u16>>) -> Result<(), Error>
pub fn filter_by_row_indices( &self, row_indices: HashSet<usize>, ) -> Result<PointData, Error>
pub fn filter_by_boolean_mask( &self, boolean_mask: &BooleanChunked, ) -> Result<PointData, Error>
pub fn filter_by_bounds( &self, bound_min: Point3<f64>, bound_max: Point3<f64>, ) -> Result<Option<PointData>, Error>
pub fn filter_by_beam_length( &self, beam_length_min: f64, beam_length_max: f64, ) -> Result<Option<PointData>, Error>
pub fn filter_by_x_min(&self, x_min: f64) -> Result<Option<PointData>, Error>
pub fn filter_by_x_max(&self, x_max: f64) -> Result<Option<PointData>, Error>
pub fn filter_by_y_min(&self, y_min: f64) -> Result<Option<PointData>, Error>
pub fn filter_by_y_max(&self, y_max: f64) -> Result<Option<PointData>, Error>
pub fn filter_by_z_min(&self, z_min: f64) -> Result<Option<PointData>, Error>
pub fn filter_by_z_max(&self, z_max: f64) -> Result<Option<PointData>, Error>
pub fn filter_by_spherical_range_min( &self, spherical_range_min: f64, ) -> Result<Option<PointData>, Error>
pub fn filter_by_spherical_range_max( &self, spherical_range_max: f64, ) -> Result<Option<PointData>, Error>
pub fn filter_by_octant_index( &self, index: OctantIndex, ) -> Result<Option<PointData>, Error>
Trait Implementations§
impl StructuralPartialEq for PointData
Auto Trait Implementations§
impl !Freeze for PointData
impl !RefUnwindSafe for PointData
impl Send for PointData
impl Sync for PointData
impl Unpin for PointData
impl !UnwindSafe for PointData
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters
when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self
into C
, using the provided parameters.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle
.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other
into Self
, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T
.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters
when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self
into C
, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self
into T
, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors
fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds
error is returned which contains
the unclamped color. Read more