$search
Class representing ShapeCluster shapes. More...
#include <shape_cluster.h>
Public Types | |
typedef boost::shared_ptr < const ShapeCluster > | ConstPtr |
ConstShapeCluster pointer. | |
typedef boost::shared_ptr < ShapeCluster > | Ptr |
ShapeCluster pointer. | |
Public Member Functions | |
void | computeAttributes () |
Compute attributes of ShapeCluster. | |
void | getMergeCandidates (const std::vector< ShapeCluster::Ptr > &sc_vec, std::vector< int > &intersections) const |
Check for merge candidates. | |
bool | hasSimilarParametersWith (ShapeCluster::Ptr sc) const |
Check for similar ShapeCluster parameters. | |
void | insert (Shape::Ptr shape) |
void | merge (std::vector< ShapeCluster::Ptr > &sc_vec) |
Merging of ShapeClusters. | |
ShapeCluster () | |
Constructor of ShapeCluster object. | |
void | transform2tf (const Eigen::Affine3f &trafo) |
Transform ShapeCluster to target frame. | |
Public Attributes | |
Eigen::Vector3f | scale |
A vector, containing the scale. | |
std::list< Shape::Ptr > | shapes |
List with shapes. | |
Private Attributes | |
float | d_ |
Class representing ShapeCluster shapes.
Definition at line 71 of file shape_cluster.h.
typedef boost::shared_ptr<const ShapeCluster> cob_3d_mapping::ShapeCluster::ConstPtr |
ConstShapeCluster pointer.
Const Boost shared pointer to ShapeCluster.
Definition at line 85 of file shape_cluster.h.
typedef boost::shared_ptr<ShapeCluster> cob_3d_mapping::ShapeCluster::Ptr |
ShapeCluster pointer.
Boost shared pointer to ShapeCluster.
Reimplemented from cob_3d_mapping::Shape.
Definition at line 78 of file shape_cluster.h.
cob_3d_mapping::ShapeCluster::ShapeCluster | ( | ) | [inline] |
Constructor of ShapeCluster object.
Definition at line 92 of file shape_cluster.h.
void cob_3d_mapping::ShapeCluster::computeAttributes | ( | ) |
Compute attributes of ShapeCluster.
Definition at line 63 of file shape_cluster.cpp.
void cob_3d_mapping::ShapeCluster::getMergeCandidates | ( | const std::vector< ShapeCluster::Ptr > & | sc_vec, | |
std::vector< int > & | intersections | |||
) | const |
Check for merge candidates.
[in] | sc_vec | Vector of ShapeClusters, that are checked. |
[out] | intersections | Vector with indices of merge candidates. |
Definition at line 84 of file shape_cluster.cpp.
bool cob_3d_mapping::ShapeCluster::hasSimilarParametersWith | ( | ShapeCluster::Ptr | sc | ) | const [inline] |
Check for similar ShapeCluster parameters.
Check is performed based on merge settings of ShapeClusters.
[in] | poly | ShapeCluster, whose parameters are compared to this ShapeCluster. |
Definition at line 142 of file shape_cluster.h.
void cob_3d_mapping::ShapeCluster::insert | ( | Shape::Ptr | shape | ) |
@brief Insert shape to ShapeCluster.
Definition at line 109 of file shape_cluster.cpp.
void cob_3d_mapping::ShapeCluster::merge | ( | std::vector< ShapeCluster::Ptr > & | sc_vec | ) |
Merging of ShapeClusters.
Complete merge process for this polygon with a vector of merge candidates. Merging is performed relative to an average ShapeCluster.
[in] | poly_vec | Vector with merge candidate ShapeClusters |
Definition at line 96 of file shape_cluster.cpp.
void cob_3d_mapping::ShapeCluster::transform2tf | ( | const Eigen::Affine3f & | trafo | ) | [virtual] |
Transform ShapeCluster to target frame.
[in] | trafo | Transformation from source frame to target frame. |
Implements cob_3d_mapping::Shape.
Definition at line 78 of file shape_cluster.cpp.
float cob_3d_mapping::ShapeCluster::d_ [private] |
Definition at line 157 of file shape_cluster.h.
Eigen::Vector3f cob_3d_mapping::ShapeCluster::scale |
A vector, containing the scale.
Definition at line 154 of file shape_cluster.h.
std::list<Shape::Ptr> cob_3d_mapping::ShapeCluster::shapes |
List with shapes.
Definition at line 150 of file shape_cluster.h.