Objects Class Reference

Contains the result of the object detection module. The detected objects are listed in object_list. More...

Functions

bool getObjectDataFromId (sl::ObjectData &objectData, int objectDataId)
 Function that look for a given object ID in the current object list and return the object associated if found and a status. More...
 

Attributes

sl::Timestamp timestamp
 Defines the timestamp corresponding to the frame acquisition. This value is especially useful for the async mode to synchronize the data. More...
 
std::vector< sl::ObjectDataobject_list
 The list of detected objects. More...
 
bool is_new
 Defined if the object list has already been retrieved or not. More...
 
bool is_tracked
 Defined if both the object tracking and the world orientation has been setup. More...
 

Detailed Description

Contains the result of the object detection module. The detected objects are listed in object_list.

Functions

◆ getObjectDataFromId()

bool getObjectDataFromId ( sl::ObjectData objectData,
int  objectDataId 
)

Function that look for a given object ID in the current object list and return the object associated if found and a status.

Parameters
objectData[out] : the object corresponding to the given ID if found
objectDataId[in] : the input object ID
Returns
True if found False otherwise

Variables

◆ timestamp

sl::Timestamp timestamp

Defines the timestamp corresponding to the frame acquisition. This value is especially useful for the async mode to synchronize the data.

◆ object_list

std::vector<sl::ObjectData> object_list

The list of detected objects.

◆ is_new

bool is_new

Defined if the object list has already been retrieved or not.

◆ is_tracked

bool is_tracked

Defined if both the object tracking and the world orientation has been setup.