Public Types | Public Member Functions | Protected Attributes | List of all members
octomap::Pointcloud Class Reference

#include <Pointcloud.h>

Public Types

typedef point3d_collection::const_iterator const_iterator
 
typedef point3d_collection::iterator iterator
 

Public Member Functions

point3d back ()
 
iterator begin ()
 
const_iterator begin () const
 
void calcBBX (point3d &lowerBound, point3d &upperBound) const
 Calculate bounding box of Pointcloud. More...
 
void clear ()
 
void crop (point3d lowerBound, point3d upperBound)
 Crop Pointcloud to given bounding box. More...
 
iterator end ()
 
const_iterator end () const
 
point3d getPoint (unsigned int i) const
 
void minDist (double thres)
 
const point3doperator[] (size_t i) const
 
point3doperator[] (size_t i)
 
 Pointcloud ()
 
 Pointcloud (const Pointcloud &other)
 
 Pointcloud (Pointcloud *other)
 
void push_back (float x, float y, float z)
 
void push_back (const point3d &p)
 
void push_back (point3d *p)
 
void push_back (const Pointcloud &other)
 Add points from other Pointcloud. More...
 
std::istream & read (std::istream &s)
 
std::istream & readBinary (std::istream &s)
 
void reserve (size_t size)
 
void rotate (double roll, double pitch, double yaw)
 Rotate each point in pointcloud. More...
 
size_t size () const
 
void subSampleRandom (unsigned int num_samples, Pointcloud &sample_cloud)
 
void transform (pose6d transform)
 Apply transform to each point. More...
 
void transformAbsolute (pose6d transform)
 Apply transform to each point, undo previous transforms. More...
 
std::ostream & writeBinary (std::ostream &s) const
 
void writeVrml (std::string filename)
 Export the Pointcloud to a VRML file. More...
 
 ~Pointcloud ()
 

Protected Attributes

pose6d current_inv_transform
 
point3d_collection points
 

Detailed Description

A collection of 3D coordinates (point3d), which are regarded as endpoints of a 3D laser scan.

Definition at line 47 of file Pointcloud.h.

Member Typedef Documentation

◆ const_iterator

typedef point3d_collection::const_iterator octomap::Pointcloud::const_iterator

Definition at line 99 of file Pointcloud.h.

◆ iterator

typedef point3d_collection::iterator octomap::Pointcloud::iterator

Definition at line 98 of file Pointcloud.h.

Constructor & Destructor Documentation

◆ Pointcloud() [1/3]

octomap::Pointcloud::Pointcloud ( )

Definition at line 54 of file Pointcloud.cpp.

◆ ~Pointcloud()

octomap::Pointcloud::~Pointcloud ( )

Definition at line 58 of file Pointcloud.cpp.

◆ Pointcloud() [2/3]

octomap::Pointcloud::Pointcloud ( const Pointcloud other)

Definition at line 71 of file Pointcloud.cpp.

◆ Pointcloud() [3/3]

octomap::Pointcloud::Pointcloud ( Pointcloud other)

Definition at line 77 of file Pointcloud.cpp.

Member Function Documentation

◆ back()

point3d octomap::Pointcloud::back ( )
inline

Definition at line 104 of file Pointcloud.h.

◆ begin() [1/2]

iterator octomap::Pointcloud::begin ( )
inline

Definition at line 100 of file Pointcloud.h.

◆ begin() [2/2]

const_iterator octomap::Pointcloud::begin ( ) const
inline

Definition at line 102 of file Pointcloud.h.

◆ calcBBX()

void octomap::Pointcloud::calcBBX ( point3d lowerBound,
point3d upperBound 
) const

Calculate bounding box of Pointcloud.

Definition at line 131 of file Pointcloud.cpp.

◆ clear()

void octomap::Pointcloud::clear ( )

Definition at line 62 of file Pointcloud.cpp.

◆ crop()

void octomap::Pointcloud::crop ( point3d  lowerBound,
point3d  upperBound 
)

Crop Pointcloud to given bounding box.

Definition at line 159 of file Pointcloud.cpp.

◆ end() [1/2]

iterator octomap::Pointcloud::end ( )
inline

Definition at line 101 of file Pointcloud.h.

◆ end() [2/2]

const_iterator octomap::Pointcloud::end ( ) const
inline

Definition at line 103 of file Pointcloud.h.

◆ getPoint()

point3d octomap::Pointcloud::getPoint ( unsigned int  i) const

Returns a copy of the ith point in point cloud. Use operator[] for direct access to point reference.

Definition at line 90 of file Pointcloud.cpp.

◆ minDist()

void octomap::Pointcloud::minDist ( double  thres)

Definition at line 191 of file Pointcloud.cpp.

◆ operator[]() [1/2]

const point3d& octomap::Pointcloud::operator[] ( size_t  i) const
inline

Definition at line 109 of file Pointcloud.h.

◆ operator[]() [2/2]

point3d& octomap::Pointcloud::operator[] ( size_t  i)
inline

Definition at line 110 of file Pointcloud.h.

◆ push_back() [1/4]

void octomap::Pointcloud::push_back ( float  x,
float  y,
float  z 
)
inline

Definition at line 61 of file Pointcloud.h.

◆ push_back() [2/4]

void octomap::Pointcloud::push_back ( const point3d p)
inline

Definition at line 64 of file Pointcloud.h.

◆ push_back() [3/4]

void octomap::Pointcloud::push_back ( point3d p)
inline

Definition at line 67 of file Pointcloud.h.

◆ push_back() [4/4]

void octomap::Pointcloud::push_back ( const Pointcloud other)

Add points from other Pointcloud.

Definition at line 84 of file Pointcloud.cpp.

◆ read()

std::istream & octomap::Pointcloud::read ( std::istream &  s)

Definition at line 271 of file Pointcloud.cpp.

◆ readBinary()

std::istream & octomap::Pointcloud::readBinary ( std::istream &  s)

Definition at line 287 of file Pointcloud.cpp.

◆ reserve()

void octomap::Pointcloud::reserve ( size_t  size)
inline

Definition at line 59 of file Pointcloud.h.

◆ rotate()

void octomap::Pointcloud::rotate ( double  roll,
double  pitch,
double  yaw 
)

Rotate each point in pointcloud.

Definition at line 123 of file Pointcloud.cpp.

◆ size()

size_t octomap::Pointcloud::size ( ) const
inline

Definition at line 57 of file Pointcloud.h.

◆ subSampleRandom()

void octomap::Pointcloud::subSampleRandom ( unsigned int  num_samples,
Pointcloud sample_cloud 
)

Definition at line 207 of file Pointcloud.cpp.

◆ transform()

void octomap::Pointcloud::transform ( pose6d  transform)

Apply transform to each point.

Definition at line 99 of file Pointcloud.cpp.

◆ transformAbsolute()

void octomap::Pointcloud::transformAbsolute ( pose6d  transform)

Apply transform to each point, undo previous transforms.

Definition at line 110 of file Pointcloud.cpp.

◆ writeBinary()

std::ostream & octomap::Pointcloud::writeBinary ( std::ostream &  s) const

Definition at line 315 of file Pointcloud.cpp.

◆ writeVrml()

void octomap::Pointcloud::writeVrml ( std::string  filename)

Export the Pointcloud to a VRML file.

Definition at line 224 of file Pointcloud.cpp.

Member Data Documentation

◆ current_inv_transform

pose6d octomap::Pointcloud::current_inv_transform
protected

Definition at line 119 of file Pointcloud.h.

◆ points

point3d_collection octomap::Pointcloud::points
protected

Definition at line 120 of file Pointcloud.h.


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


octomap
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Mon Feb 28 2022 22:58:06