HLR
0.0.1
|
A class for mapping the ROS::Object defined in msg/Object.msg. More...
#include <Object.hpp>
Public Types | |
using | Point = CGAL::Simple_cartesian< double >::Point_3 |
Data type specifying a point in 3D space. | |
using | Polyhedron = CGAL::Surface_mesh< Point > |
Data type specifying a polyhedron. | |
Public Member Functions | |
bool | operator== (const Object &rhs) const |
Compares each of the attributes for equality. More... | |
bool | operator!= (const Object &rhs) const |
Compares each of the attributes for inequality. More... | |
operator HLR::Object () const | |
Converts the booleans to the flag, and serializes the polyhedron. | |
Public Attributes | |
std::uint32_t | id |
Must be unique. | |
Polyhedron | polyhedron |
The polyhedron defining the Object. | |
std::optional< double > | speed |
The velocity in m/s at which the Object is moving the real world. | |
bool | is_cup |
Is true if Vision recognizes it as a cup. | |
bool | is_deleted |
Is true if the Object is not visible in the world anymore. More... | |
pcl::PointCloud< pcl::PointXYZ > | point_cloud |
PointCloud of the found object. | |
Point | middlepoint |
Contains middlepoint (x,y) of the complete object. | |
A class for mapping the ROS::Object defined in msg/Object.msg.
The ROS Object is mapped to this Object because the ROS Object works with bitflags. Because of this mapping the bitflag handling is done in one place in the code and code using Object don't need to handle bitflags.
bool HLR::PointCloud::Object::operator!= | ( | const Object & | rhs | ) | const |
Compares each of the attributes for inequality.
rhs | The Object to compare this one with. |
bool HLR::PointCloud::Object::operator== | ( | const Object & | rhs | ) | const |
Compares each of the attributes for equality.
rhs | The Object to compare this one with. |
bool HLR::PointCloud::Object::is_deleted |