pub struct TransformTree {
pub edges: HashMap<TransformId, TransformEdge>,
pub frames: HashMap<FrameId, FrameInfo>,
/* private fields */
}Fields§
§edges: HashMap<TransformId, TransformEdge>§frames: HashMap<FrameId, FrameInfo>Implementations§
Source§impl TransformTree
impl TransformTree
pub fn new( edges: Vec<TransformEdge>, frames: Vec<FrameInfo>, ) -> Result<Self, Error>
pub fn is_empty(&self) -> bool
pub fn edges(&self) -> &HashMap<TransformId, TransformEdge>
pub fn frames(&self) -> &HashMap<FrameId, FrameInfo>
pub fn insert_edge(&mut self, edge: TransformEdge)
pub fn root_frames(&self) -> HashSet<FrameId>
pub fn child_frames(&self) -> HashSet<FrameId>
Source§impl TransformTree
impl TransformTree
pub fn get_frame_ids(&self) -> HashSet<FrameId>
pub fn contains_frame(&self, frame_id: &FrameId) -> bool
pub fn contains_transform(&self, transform_id: &TransformId) -> bool
pub fn remove_transform(&mut self, transform_id: &TransformId)
Source§impl TransformTree
impl TransformTree
pub fn static_snapshot_at( &self, timestamp: DateTime<Utc>, ) -> Result<TransformTree, Error>
pub fn get_transform_at_time( &self, transform_id: &TransformId, timestamp: DateTime<Utc>, ) -> Result<Transform, Error>
pub fn get_static_transform( &self, transform_id: &TransformId, ) -> Result<Transform, Error>
Sourcepub fn compute_timed_transforms_for_all_samples(
&self,
transform_id: &TransformId,
) -> Result<Vec<TimedTransform>, Error>
pub fn compute_timed_transforms_for_all_samples( &self, transform_id: &TransformId, ) -> Result<Vec<TimedTransform>, Error>
Computes transforms at all dynamic sample timestamps along a transform path.
This method identifies all dynamic transforms in the path from the parent frame to the
child frame specified by transform_id, collects all their sample timestamps, and
computes the complete transform at each of those timestamps.
Sourcepub fn is_transform_path_static(
&self,
transform_id: &TransformId,
) -> Result<bool, Error>
pub fn is_transform_path_static( &self, transform_id: &TransformId, ) -> Result<bool, Error>
Checks if a transform path contains only static transforms.
This method determines whether the entire path from the parent frame to the
child frame specified by transform_id consists exclusively of static transforms,
with no dynamic (time-varying) transforms.
Trait Implementations§
Source§impl Clone for TransformTree
impl Clone for TransformTree
Source§fn clone(&self) -> TransformTree
fn clone(&self) -> TransformTree
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransformTree
impl Debug for TransformTree
Source§impl Default for TransformTree
impl Default for TransformTree
Source§fn default() -> TransformTree
fn default() -> TransformTree
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransformTree
impl RefUnwindSafe for TransformTree
impl Send for TransformTree
impl Sync for TransformTree
impl Unpin for TransformTree
impl UnwindSafe for TransformTree
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
Converts
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>
Converts
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> Pointable for T
impl<T> Pointable for T
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.