pub struct CameraRobotCalibration {
pub camera_to_robot: Mat4,
pub robot_to_camera: Mat4,
pub intrinsics: CameraIntrinsics,
pub residual_pixels: f64,
pub calibration_date: String,
}Expand description
Camera-to-robot extrinsic calibration (a rigid-body transform).
Fields§
§camera_to_robot: Mat4Transform from camera frame to robot base frame.
robot_to_camera: Mat4Transform from robot base frame to camera frame.
intrinsics: CameraIntrinsicsCamera intrinsics.
residual_pixels: f64Calibration residual (reprojection error in pixels).
calibration_date: StringCalibration date (ISO 8601 string, informational).
Implementations§
Source§impl CameraRobotCalibration
impl CameraRobotCalibration
Sourcepub fn identity(intrinsics: CameraIntrinsics) -> Self
pub fn identity(intrinsics: CameraIntrinsics) -> Self
Construct a calibration with identity transform.
Sourcepub fn camera_to_robot_point(&self, p: Vec3) -> Vec3
pub fn camera_to_robot_point(&self, p: Vec3) -> Vec3
Transform a 3-D point from camera frame to robot base frame.
Sourcepub fn robot_to_camera_point(&self, p: Vec3) -> Vec3
pub fn robot_to_camera_point(&self, p: Vec3) -> Vec3
Transform a 3-D point from robot base frame to camera frame.
Trait Implementations§
Source§impl Clone for CameraRobotCalibration
impl Clone for CameraRobotCalibration
Source§fn clone(&self) -> CameraRobotCalibration
fn clone(&self) -> CameraRobotCalibration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CameraRobotCalibration
impl RefUnwindSafe for CameraRobotCalibration
impl Send for CameraRobotCalibration
impl Sync for CameraRobotCalibration
impl Unpin for CameraRobotCalibration
impl UnsafeUnpin for CameraRobotCalibration
impl UnwindSafe for CameraRobotCalibration
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.