pub type Pose = Isometry3<f64>;Expand description
Pose is used a pose of the robot tcp. It contains both Cartesian position and rotation quaternion
extern crate nalgebra as na;
use na::{Isometry3, Translation3, UnitQuaternion, Vector3};
type Pose = Isometry3<f64>;
let translation = Translation3::new(1.0, 0.0, 0.0);
// The quaternion should be normalized to represent a valid rotation.
let rotation = UnitQuaternion::from_quaternion(na::Quaternion::new(1.0, 0.0, 0.0, 1.0).normalize());
let transform = Pose::from_parts(translation, rotation);Aliased Type§
#[repr(C)]pub struct Pose {
pub rotation: Unit<Quaternion<f64>>,
pub translation: Translation<f64, 3>,
}Fields§
§rotation: Unit<Quaternion<f64>>The pure rotational part of this isometry.
translation: Translation<f64, 3>The pure translational part of this isometry.