pub struct Pose {
pub x: f32,
pub y: f32,
pub theta: f32,
}Expand description
A planar pose in the world frame: position and heading.
§Examples
use pamoja_kit::Pose;
let start = Pose::origin();
assert_eq!((start.x, start.y, start.theta), (0.0, 0.0, 0.0));Fields§
§x: f32Position along the world x axis, in metres.
y: f32Position along the world y axis, in metres.
theta: f32Heading from the world x axis, in radians, in (-pi, pi], positive counter-clockwise.
Implementations§
Trait Implementations§
impl Copy for Pose
impl StructuralPartialEq for Pose
Auto Trait Implementations§
impl Freeze for Pose
impl RefUnwindSafe for Pose
impl Send for Pose
impl Sync for Pose
impl Unpin for Pose
impl UnsafeUnpin for Pose
impl UnwindSafe for Pose
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