pub struct CameraPose {
pub timestamp: f64,
pub x: f32,
pub y: f32,
pub z: f32,
pub qx: f32,
pub qy: f32,
pub qz: f32,
pub qw: f32,
}Expand description
A single camera pose at a point in time, in world coordinates. Supplied by the front-end’s SLAM source (ARKit, ARCore, ORB-SLAM3, etc).
Fields§
§timestamp: f64seconds, monotonic clock
x: f32meters, world frame
y: f32§z: f32§qx: f32orientation quaternion
qy: f32§qz: f32§qw: f32Trait Implementations§
Source§impl Clone for CameraPose
impl Clone for CameraPose
impl Copy for CameraPose
Source§impl Debug for CameraPose
impl Debug for CameraPose
Source§impl Default for CameraPose
impl Default for CameraPose
Source§impl<'de> Deserialize<'de> for CameraPosewhere
CameraPose: Default,
impl<'de> Deserialize<'de> for CameraPosewhere
CameraPose: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CameraPose
impl Message for CameraPose
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CameraPose
impl PartialEq for CameraPose
Source§impl Serialize for CameraPose
impl Serialize for CameraPose
impl StructuralPartialEq for CameraPose
Auto Trait Implementations§
impl Freeze for CameraPose
impl RefUnwindSafe for CameraPose
impl Send for CameraPose
impl Sync for CameraPose
impl Unpin for CameraPose
impl UnsafeUnpin for CameraPose
impl UnwindSafe for CameraPose
Blanket Implementations§
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
Mutably borrows from an owned value. Read more