Struct ar_drivers::mad_gaze::MadGazeGlow
source · pub struct MadGazeGlow { /* private fields */ }
Expand description
The main structure representing a connected Mad Gaze Glow glasses
Implementations§
source§impl MadGazeGlow
impl MadGazeGlow
Trait Implementations§
source§impl ARGlasses for MadGazeGlow
impl ARGlasses for MadGazeGlow
source§fn read_event(&mut self) -> Result<GlassesEvent, Error>
fn read_event(&mut self) -> Result<GlassesEvent, Error>
Get a single sensor event. Blocks.
source§fn get_display_mode(&mut self) -> Result<DisplayMode, Error>
fn get_display_mode(&mut self) -> Result<DisplayMode, Error>
Get the display mode of the glasses. See
DisplayMode
source§fn set_display_mode(&mut self, display_mode: DisplayMode) -> Result<(), Error>
fn set_display_mode(&mut self, display_mode: DisplayMode) -> Result<(), Error>
Set the display mode of the glasses. See
DisplayMode
source§fn display_fov(&self) -> f32
fn display_fov(&self) -> f32
Field of view of the display along the horizontal axis, in radians
source§fn imu_to_display_matrix(&self, side: Side, ipd: f32) -> Isometry3<f64>
fn imu_to_display_matrix(&self, side: Side, ipd: f32) -> Isometry3<f64>
Transformation from IMU frame to display frame, at the specified
IPD (interpupillary distance). The
ipd
parameter is in meters.
A typical value is 0.07.source§fn display_delay(&self) -> u64
fn display_delay(&self) -> u64
The additional delay (in usecs) of the glasses’ display from getting the data
on DisplayPort. This is not really an absolute value, but more of
a relative measure between different glasses.
In the future this may depend on the current display mode.
Auto Trait Implementations§
impl !RefUnwindSafe for MadGazeGlow
impl Send for MadGazeGlow
impl !Sync for MadGazeGlow
impl Unpin for MadGazeGlow
impl !UnwindSafe for MadGazeGlow
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.