pub struct PoseFrame { /* private fields */ }
Expand description
Holds information describing the motion and position of a device at a point in time.
Implementations§
Source§impl PoseFrame
impl PoseFrame
Sourcepub fn translation(&self) -> [f32; 3]
pub fn translation(&self) -> [f32; 3]
X, Y, Z values of translation, in meters (relative to initial position)
Sourcepub fn acceleration(&self) -> [f32; 3]
pub fn acceleration(&self) -> [f32; 3]
X, Y, Z values of acceleration, in meters/sec^2
Sourcepub fn rotation(&self) -> [f32; 4]
pub fn rotation(&self) -> [f32; 4]
Qi, Qj, Qk, Qr components of rotation as represented in quaternion rotation (relative to initial position)
Sourcepub fn angular_velocity(&self) -> [f32; 3]
pub fn angular_velocity(&self) -> [f32; 3]
X, Y, Z values of angular velocity, in radians/sec
Sourcepub fn angular_acceleration(&self) -> [f32; 3]
pub fn angular_acceleration(&self) -> [f32; 3]
X, Y, Z values of angular acceleration, in radians/sec^2
Sourcepub fn tracker_confidence(&self) -> Confidence
pub fn tracker_confidence(&self) -> Confidence
Pose confidence from Confidence::Failed
to Confidence::High
Sourcepub fn mapper_confidence(&self) -> Confidence
pub fn mapper_confidence(&self) -> Confidence
Pose map confidence from Confidence::Failed
to Confidence::High
Trait Implementations§
Source§impl FrameCategory for PoseFrame
impl FrameCategory for PoseFrame
Source§fn extension() -> Rs2Extension
fn extension() -> Rs2Extension
Rs2Extension
for the type implementing this trait.Source§fn kind() -> Rs2StreamKind
fn kind() -> Rs2StreamKind
Source§fn has_correct_kind(&self) -> bool
fn has_correct_kind(&self) -> bool
Source§impl FrameEx for PoseFrame
impl FrameEx for PoseFrame
Source§fn stream_profile(&self) -> &StreamProfile
fn stream_profile(&self) -> &StreamProfile
Source§fn timestamp_domain(&self) -> Rs2TimestampDomain
fn timestamp_domain(&self) -> Rs2TimestampDomain
Source§fn frame_number(&self) -> u64
fn frame_number(&self) -> u64
Source§fn metadata(&self, metadata_kind: Rs2FrameMetadata) -> Option<c_longlong>
fn metadata(&self, metadata_kind: Rs2FrameMetadata) -> Option<c_longlong>
Source§fn supports_metadata(&self, metadata_kind: Rs2FrameMetadata) -> bool
fn supports_metadata(&self, metadata_kind: Rs2FrameMetadata) -> bool
Source§impl TryFrom<NonNull<rs2_frame>> for PoseFrame
impl TryFrom<NonNull<rs2_frame>> for PoseFrame
Source§fn try_from(frame_ptr: NonNull<rs2_frame>) -> Result<Self, Self::Error>
fn try_from(frame_ptr: NonNull<rs2_frame>) -> Result<Self, Self::Error>
Attempt to construct a PoseFrame from the raw pointer to rs2_frame
All members of the PoseFrame
struct are validated and populated during this call.
§Errors
There are a number of errors that may occur if the data in the rs2_frame
is not valid, all
of type FrameConstructionError
.
See FrameConstructionError
documentation for more details.