pub struct HriDomain {
pub interaction_state: Option<InteractionState>,
pub tracked_humans: Option<Vec<TrackedHuman>>,
pub human_count: Option<u32>,
pub voice: Option<VoiceInteraction>,
pub handover: Option<Handover>,
pub social: Option<SocialNavigation>,
pub gestures: Option<Vec<DetectedGesture>>,
}Expand description
HRI domain containing human-robot interaction information.
Fields§
§interaction_state: Option<InteractionState>Current interaction state
tracked_humans: Option<Vec<TrackedHuman>>Tracked humans
human_count: Option<u32>Human count nearby
voice: Option<VoiceInteraction>Voice interaction
handover: Option<Handover>Handover operation
Social navigation
gestures: Option<Vec<DetectedGesture>>Gesture recognition
Implementations§
Source§impl HriDomain
impl HriDomain
Sourcepub fn new(state: InteractionState) -> Self
pub fn new(state: InteractionState) -> Self
Create with interaction state.
Sourcepub fn with_human(self, human: TrackedHuman) -> Self
pub fn with_human(self, human: TrackedHuman) -> Self
Add a tracked human.
Sourcepub fn with_voice(self, voice: VoiceInteraction) -> Self
pub fn with_voice(self, voice: VoiceInteraction) -> Self
Add voice interaction.
Sourcepub fn with_handover(self, handover: Handover) -> Self
pub fn with_handover(self, handover: Handover) -> Self
Add handover.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HriDomain
impl<'de> Deserialize<'de> for HriDomain
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
Auto Trait Implementations§
impl Freeze for HriDomain
impl RefUnwindSafe for HriDomain
impl Send for HriDomain
impl Sync for HriDomain
impl Unpin for HriDomain
impl UnwindSafe for HriDomain
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