hri.hri.HRIListener¶
- class hri.hri.HRIListener(reference_frame='base_link')¶
Main entry point to pyhri.
- __init__(reference_frame='base_link')¶
Methods
__init__([reference_frame])close()on_body(callback)Registers a callback function, to be invoked everytime a new body is detected.
on_body_lost(callback)Registers a callback function, to be invoked everytime a previously tracked body is lost (eg, not detected anymore)
on_face(callback)Registers a callback function, to be invoked everytime a new face is detected.
on_face_lost(callback)Registers a callback function, to be invoked everytime a previously tracked face is lost (eg, not detected anymore).
on_person(callback)Registers a callback function, to be invoked everytime a new person is detected.
on_person_lost(callback)Registers a callback function, to be invoked everytime a person is lost.
on_tracked_person(callback)Registers a callback function, to be invoked everytime a new person is detected and actively tracked (eg, currently seen).
on_tracked_person_lost(callback)Registers a callback function, to be invoked everytime a previously tracked person is lost.
on_voice(callback)Registers a callback function, to be invoked everytime a new voice is detected.
on_voice_lost(callback)Registers a callback function, to be invoked everytime a previously tracked voice is lost (eg, not detected anymore)
set_reference_frame(frame)Sets the reference frame from which the TF transformations of the persons will be returned (via Person::transform()).
Attributes
bodiesReturns the list of all currently tracked bodies, mapped to their ID.
facesReturns the list of all currently tracked faces, mapped to their ID.
known_personsReturns the list of all known persons, whether or not they are currently actively detected (eg, seen).
tracked_personsReturns the list of currently detected persons, mapped to their IDs
voicesReturns the list of all currently 'tracked' voices, mapped to their ID.