pub struct CartesianPose {
pub position: Position3D,
pub orientation: Quaternion,
}Expand description
笛卡尔空间位姿(位置 + 姿态)
Fields§
§position: Position3D位置(米)
orientation: Quaternion姿态(四元数)
Implementations§
Source§impl CartesianPose
impl CartesianPose
Sourcepub fn from_position_euler(
x: f64,
y: f64,
z: f64,
roll: Rad,
pitch: Rad,
yaw: Rad,
) -> Self
pub fn from_position_euler( x: f64, y: f64, z: f64, roll: Rad, pitch: Rad, yaw: Rad, ) -> Self
从位置和欧拉角创建
Sourcepub fn from_position_quaternion(
position: Position3D,
orientation: Quaternion,
) -> Self
pub fn from_position_quaternion( position: Position3D, orientation: Quaternion, ) -> Self
从位置和四元数创建
Trait Implementations§
Source§impl Clone for CartesianPose
impl Clone for CartesianPose
Source§fn clone(&self) -> CartesianPose
fn clone(&self) -> CartesianPose
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CartesianPose
impl Debug for CartesianPose
Source§impl Display for CartesianPose
impl Display for CartesianPose
Source§impl PartialEq for CartesianPose
impl PartialEq for CartesianPose
impl Copy for CartesianPose
impl StructuralPartialEq for CartesianPose
Auto Trait Implementations§
impl Freeze for CartesianPose
impl RefUnwindSafe for CartesianPose
impl Send for CartesianPose
impl Sync for CartesianPose
impl Unpin for CartesianPose
impl UnwindSafe for CartesianPose
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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 more