HLR
0.0.1
|
Class responsible for merging the world data from the Kinect and the LiDAR. More...
#include <ObjectInterpreter.hpp>
Public Member Functions | |
std::vector< Object > | get_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< Object > | 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. More... | |
std::vector< Object > | 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. More... | |
Class responsible for merging the world data from the Kinect and the LiDAR.
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.
objects | The objects that should get a speed. |
milliseconds_since_epoch | If equals -1 it uses the system time. |
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.
detected_cups | The latest depth frame and coordinates of cups found. |
point_cloud | The latest point cloud generated from the LiDAR. |
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.
detected_cups | The latest depth frame and coordinates of cups found. |
point_cloud | The latest point cloud generated from the LiDAR. |