Public Types | Public Member Functions | Public Attributes
cob_3d_mapping::Shape Class Reference

Class, representing Shape objects. More...

#include <shape.h>

Inheritance diagram for cob_3d_mapping::Shape:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::shared_ptr< ShapePtr
 Shape Pointer.

Public Member Functions

double computeDistanceFromViewpoint ()
 Compute the distance of the shape from the view point (0,0,0)
 Shape ()
 Constructor of shape object.
virtual void transform (const Eigen::Affine3f &trafo)=0
 Transform shape to target frame.
virtual ~Shape ()
 Destructor of shape.

Public Attributes

std::vector< float > color_
unsigned int frame_stamp_
unsigned int id_
unsigned int merged_
unsigned int merged_limit_
Eigen::Affine3f pose_

Detailed Description

Class, representing Shape objects.

Note:
Base class for Cylinder and Polygon classes

Definition at line 78 of file shape.h.


Member Typedef Documentation

typedef boost::shared_ptr<Shape> cob_3d_mapping::Shape::Ptr

Shape Pointer.

Boost shared pointer to shape object.

Reimplemented in cob_3d_mapping::Polygon, and cob_3d_mapping::Cylinder.

Definition at line 86 of file shape.h.


Constructor & Destructor Documentation

Constructor of shape object.

Definition at line 91 of file shape.h.

virtual cob_3d_mapping::Shape::~Shape ( ) [inline, virtual]

Destructor of shape.

Definition at line 103 of file shape.h.


Member Function Documentation

Compute the distance of the shape from the view point (0,0,0)

Returns:
The distance.

Definition at line 116 of file shape.h.

virtual void cob_3d_mapping::Shape::transform ( const Eigen::Affine3f &  trafo) [pure virtual]

Transform shape to target frame.

Parameters:
[in]trafoTransformatuon, which is applied.

Implemented in cob_3d_mapping::Polygon.


Member Data Documentation

std::vector<float> cob_3d_mapping::Shape::color_

Color of shape as RGB vector.

Definition at line 124 of file shape.h.

Frame, shape was created or merged the last time.

Definition at line 121 of file shape.h.

ID of shape.

Definition at line 118 of file shape.h.

Number of times, shape has been merged.

Definition at line 119 of file shape.h.

Limit for merge counter

Definition at line 120 of file shape.h.

The pose of the shape. Transforms points into the shape coordinate system.

Definition at line 123 of file shape.h.


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


cob_3d_mapping_common
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:02:19