hri.body.Body¶
- class hri.body.Body(id, tf_buffer, reference_frame)¶
Represents a detected body.
- __init__(id, tf_buffer, reference_frame)¶
Methods
__init__(id, tf_buffer, reference_frame)close()transform([from_frame])Returns a ROS TransformStamped of the body, from the from_frame reference basis.
Attributes
validReturns True if this body is still detected (and thus is valid).
idthe body ID
nsthe full namespace of the body
framethe body tf frame name
roithe face's region of interest (normalised between 0.
skeleton2dextracted 2D skeleton coordinate, using indices defined in hri_msgs/Skeleton2D object, if available