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

valid

Returns True if this body is still detected (and thus is valid).

id

the body ID

ns

the full namespace of the body

frame

the body tf frame name

roi

the face's region of interest (normalised between 0.

skeleton2d

extracted 2D skeleton coordinate, using indices defined in hri_msgs/Skeleton2D object, if available