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. | |
using | Vector = CGAL::Simple_cartesian< double >::Vector_3 |
Date type specifying a (physics) vector. | |
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< Vector > | speed |
The velocity in m/s at which the Object is moving the real world. More... | |
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. | |
Point | centerpoint |
The centerpoint of the object. More... | |
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. |
Point HLR::PointCloud::Object::centerpoint |
The centerpoint of the object.
The centerpoint is interpolated between two or more points.
bool HLR::PointCloud::Object::is_deleted |
std::optional<Vector> HLR::PointCloud::Object::speed |
The velocity in m/s at which the Object is moving the real world.
x, y and z will be set for the speed, hx, hy, hz and hw will be ignored.