Bodies Class Reference

Class containing the results of the body tracking module. More...

Functions

bool getBodyDataFromId (sl::BodyData &bodyData, int bodyDataId)
 Method that looks for a given body id in the current bodies list. More...
 

Attributes

sl::Timestamp timestamp
 Timestamp corresponding to the frame acquisition. More...
 
std::vector< sl::BodyDatabody_list
 Vector of detected bodies/persons. More...
 
bool is_new = false
 Whether body_list has already been retrieved or not. More...
 
bool is_tracked = false
 Whether both the body tracking and the world orientation has been setup. More...
 
sl::INFERENCE_PRECISION inference_precision_mode
 Status of the actual inference precision mode used to detect the bodies/persons. More...
 
BODY_FORMAT body_format
 Body format used in sl::BodyTrackingParameters.body_format parameter. More...
 

Detailed Description

Class containing the results of the body tracking module.

The detected bodies/persons are listed in body_list.

Functions

◆ getBodyDataFromId()

bool getBodyDataFromId ( sl::BodyData bodyData,
int  bodyDataId 
)

Method that looks for a given body id in the current bodies list.

Parameters
bodyData[out]: sl::BodyData to fill if the search succeeded.
bodyDataId[in]: Id of the sl::BodyData to search.
Returns
True if found, otherwise false.

Variables

◆ timestamp

sl::Timestamp timestamp

Timestamp corresponding to the frame acquisition.

This value is especially useful for the async mode to synchronize the data.

◆ body_list

std::vector<sl::BodyData> body_list

Vector of detected bodies/persons.

◆ is_new

bool is_new = false

Whether body_list has already been retrieved or not.

◆ is_tracked

bool is_tracked = false

Whether both the body tracking and the world orientation has been setup.

◆ inference_precision_mode

sl::INFERENCE_PRECISION inference_precision_mode

Status of the actual inference precision mode used to detect the bodies/persons.

Note
It depends on the GPU hardware support, the sl::BodyTrackingParameters.allow_reduced_precision_inference input parameter and the model support.

◆ body_format

BODY_FORMAT body_format

Body format used in sl::BodyTrackingParameters.body_format parameter.