pub struct ExternalPose { /* private fields */ }Expand description
External pose interface
Provides functionality to send external position and pose data from motion capture systems or other external tracking sources to the Crazyflie’s onboard state estimator.
Implementations§
Source§impl ExternalPose
impl ExternalPose
Sourcepub async fn send_external_position(&self, pos: [f32; 3]) -> Result<()>
pub async fn send_external_position(&self, pos: [f32; 3]) -> Result<()>
Send external position (x, y, z) to the Crazyflie
Updates the Crazyflie’s position estimate with 3D position data.
§Arguments
pos- Position array [x, y, z] in meters
Sourcepub async fn send_external_pose(
&self,
pos: [f32; 3],
quat: [f32; 4],
) -> Result<()>
pub async fn send_external_pose( &self, pos: [f32; 3], quat: [f32; 4], ) -> Result<()>
Send external pose (position + quaternion) to the Crazyflie
Updates the Crazyflie’s position estimate with full 6DOF pose data. Includes both position and orientation.
§Arguments
pos- Position array [x, y, z] in metersquat- Quaternion array [qx, qy, qz, qw]
Auto Trait Implementations§
impl Freeze for ExternalPose
impl RefUnwindSafe for ExternalPose
impl Send for ExternalPose
impl Sync for ExternalPose
impl Unpin for ExternalPose
impl UnsafeUnpin for ExternalPose
impl UnwindSafe for ExternalPose
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