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)
 
point3doperator[] (size_t i)
 
const point3doperator[] (size_t i) const
 
 Pointcloud ()
 
 Pointcloud (const Pointcloud &other)
 
 Pointcloud (Pointcloud *other)
 
void push_back (const point3d &p)
 
void push_back (const Pointcloud &other)
 Add points from other Pointcloud. More...
 
void push_back (float x, float y, float z)
 
void push_back (point3d *p)
 
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 57 of file Pointcloud.cpp.

◆ ~Pointcloud()

octomap::Pointcloud::~Pointcloud ( )

Definition at line 61 of file Pointcloud.cpp.

◆ Pointcloud() [2/3]

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

Definition at line 74 of file Pointcloud.cpp.

◆ Pointcloud() [3/3]

octomap::Pointcloud::Pointcloud ( Pointcloud other)

Definition at line 80 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 134 of file Pointcloud.cpp.

◆ clear()

void octomap::Pointcloud::clear ( )

Definition at line 65 of file Pointcloud.cpp.

◆ crop()

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

Crop Pointcloud to given bounding box.

Definition at line 162 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 93 of file Pointcloud.cpp.

◆ minDist()

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

Definition at line 194 of file Pointcloud.cpp.

◆ operator[]() [1/2]

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

Definition at line 110 of file Pointcloud.h.

◆ operator[]() [2/2]

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

Definition at line 109 of file Pointcloud.h.

◆ push_back() [1/4]

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

Definition at line 64 of file Pointcloud.h.

◆ push_back() [2/4]

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

Add points from other Pointcloud.

Definition at line 87 of file Pointcloud.cpp.

◆ push_back() [3/4]

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

Definition at line 61 of file Pointcloud.h.

◆ push_back() [4/4]

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

Definition at line 67 of file Pointcloud.h.

◆ read()

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

Definition at line 280 of file Pointcloud.cpp.

◆ readBinary()

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

Definition at line 296 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 126 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 210 of file Pointcloud.cpp.

◆ transform()

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

Apply transform to each point.

Definition at line 102 of file Pointcloud.cpp.

◆ transformAbsolute()

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

Apply transform to each point, undo previous transforms.

Definition at line 113 of file Pointcloud.cpp.

◆ writeBinary()

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

Definition at line 324 of file Pointcloud.cpp.

◆ writeVrml()

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

Export the Pointcloud to a VRML file.

Definition at line 233 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 Tue Dec 12 2023 03:39:41