pub struct TrackedHuman {
pub human_id: Option<String>,
pub position: Option<Position3D>,
pub distance_m: Option<f64>,
pub bearing_deg: Option<f64>,
pub velocity_mps: Option<f64>,
pub heading_deg: Option<f64>,
pub activity: Option<HumanActivity>,
pub looking_at_robot: Option<bool>,
pub confidence: Option<f64>,
pub first_detected: Option<DateTime<Utc>>,
pub is_interacting: Option<bool>,
}Expand description
Tracked human information.
Fields§
§human_id: Option<String>Human ID (tracking ID)
position: Option<Position3D>Position relative to robot
distance_m: Option<f64>Distance to robot (m)
bearing_deg: Option<f64>Bearing from robot (degrees)
velocity_mps: Option<f64>Velocity (m/s)
heading_deg: Option<f64>Heading (degrees)
activity: Option<HumanActivity>Detected activity
looking_at_robot: Option<bool>Whether human is looking at robot
confidence: Option<f64>Tracking confidence (0-1)
first_detected: Option<DateTime<Utc>>Time first detected
is_interacting: Option<bool>Whether this is the interacting human
Implementations§
Source§impl TrackedHuman
impl TrackedHuman
Sourcepub fn at_distance(human_id: impl Into<String>, distance_m: f64) -> Self
pub fn at_distance(human_id: impl Into<String>, distance_m: f64) -> Self
Create a tracked human at a distance.
Trait Implementations§
Source§impl Clone for TrackedHuman
impl Clone for TrackedHuman
Source§fn clone(&self) -> TrackedHuman
fn clone(&self) -> TrackedHuman
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 TrackedHuman
impl Debug for TrackedHuman
Source§impl Default for TrackedHuman
impl Default for TrackedHuman
Source§fn default() -> TrackedHuman
fn default() -> TrackedHuman
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrackedHuman
impl<'de> Deserialize<'de> for TrackedHuman
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TrackedHuman
impl Serialize for TrackedHuman
Auto Trait Implementations§
impl Freeze for TrackedHuman
impl RefUnwindSafe for TrackedHuman
impl Send for TrackedHuman
impl Sync for TrackedHuman
impl Unpin for TrackedHuman
impl UnwindSafe for TrackedHuman
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