Objects Class Reference

Class containing the results of the object detection module. More...

Functions

bool getObjectDataFromId (sl::ObjectData &objectData, int objectDataId)
 Method that looks for a given object id in the current objects list. More...
 

Attributes

sl::Timestamp timestamp
 Timestamp corresponding to the frame acquisition. More...
 
std::vector< sl::ObjectDataobject_list
 Vector of detected objects. More...
 
bool is_new = false
 Whether object_list has already been retrieved or not. More...
 
bool is_tracked = false
 Whether both the object tracking and the world orientation has been setup. More...
 

Detailed Description

Class containing the results of the object detection module.

The detected objects are listed in object_list.

Functions

◆ getObjectDataFromId()

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

Method that looks for a given object id in the current objects list.

Parameters
objectData[out]: sl::ObjectData to fill if the search succeeded.
objectDataId[in]: Id of the sl::ObjectData 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.

◆ object_list

std::vector<sl::ObjectData> object_list

Vector of detected objects.

◆ is_new

bool is_new = false

Whether object_list has already been retrieved or not.

◆ is_tracked

bool is_tracked = false

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