HLR  0.0.1
Public Member Functions | List of all members
HLR::PointCloud::ObjectInterpreter Class Reference

Class responsible for merging the world data from the Kinect and the LiDAR. More...

#include <ObjectInterpreter.hpp>

Collaboration diagram for HLR::PointCloud::ObjectInterpreter:

Public Member Functions

std::vector< Objectget_current_objects (const HLR::Vision::CupDetection &detected_cups, const pcl::PointCloud< pcl::PointXYZ > &point_cloud)
 Returns all the objects visible at this moment. More...
 
std::vector< Objectget_changed_objects (const HLR::Vision::CupDetection &detected_cups, const pcl::PointCloud< pcl::PointXYZ > &point_cloud)
 Returns all the objects visible at this moment that changed since last call of this function. More...
 
std::vector< Objectdetermine_speed (std::vector< Object > &objects, long milliseconds_since_epoch=-1)
 Calculates the speed of the objects in de list based on the middlepoint and given ID. More...
 

Detailed Description

Class responsible for merging the world data from the Kinect and the LiDAR.

Member Function Documentation

std::vector<Object> HLR::PointCloud::ObjectInterpreter::determine_speed ( std::vector< Object > &  objects,
long  milliseconds_since_epoch = -1 
)

Calculates the speed of the objects in de list based on the middlepoint and given ID.

Parameters
objectsThe objects that should get a speed.
milliseconds_since_epochIf equals -1 it uses the system time.
Returns
The same list of objects, but with the speed set.
std::vector<Object> HLR::PointCloud::ObjectInterpreter::get_changed_objects ( const HLR::Vision::CupDetection detected_cups,
const pcl::PointCloud< pcl::PointXYZ > &  point_cloud 
)

Returns all the objects visible at this moment that changed since last call of this function.

calls HLR::PointCloud::Object::operator!=(const Object& rhs) const on current_object and history.

Parameters
detected_cupsThe latest depth frame and coordinates of cups found.
point_cloudThe latest point cloud generated from the LiDAR.
Returns
vector of Object that changed
std::vector<Object> HLR::PointCloud::ObjectInterpreter::get_current_objects ( const HLR::Vision::CupDetection detected_cups,
const pcl::PointCloud< pcl::PointXYZ > &  point_cloud 
)

Returns all the objects visible at this moment.

Parameters
detected_cupsThe latest depth frame and coordinates of cups found.
point_cloudThe latest point cloud generated from the LiDAR.
Returns
All current objects.

The documentation for this class was generated from the following file: