#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 point3d & | operator[] (size_t i) const |
point3d & | operator[] (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 |
A collection of 3D coordinates (point3d), which are regarded as endpoints of a 3D laser scan.
Definition at line 47 of file Pointcloud.h.
typedef point3d_collection::const_iterator octomap::Pointcloud::const_iterator |
Definition at line 99 of file Pointcloud.h.
typedef point3d_collection::iterator octomap::Pointcloud::iterator |
Definition at line 98 of file Pointcloud.h.
octomap::Pointcloud::Pointcloud | ( | ) |
Definition at line 54 of file Pointcloud.cpp.
octomap::Pointcloud::~Pointcloud | ( | ) |
Definition at line 58 of file Pointcloud.cpp.
octomap::Pointcloud::Pointcloud | ( | const Pointcloud & | other | ) |
Definition at line 71 of file Pointcloud.cpp.
octomap::Pointcloud::Pointcloud | ( | Pointcloud * | other | ) |
Definition at line 77 of file Pointcloud.cpp.
|
inline |
Definition at line 104 of file Pointcloud.h.
|
inline |
Definition at line 100 of file Pointcloud.h.
|
inline |
Definition at line 102 of file Pointcloud.h.
Calculate bounding box of Pointcloud.
Definition at line 131 of file Pointcloud.cpp.
void octomap::Pointcloud::clear | ( | ) |
Definition at line 62 of file Pointcloud.cpp.
Crop Pointcloud to given bounding box.
Definition at line 159 of file Pointcloud.cpp.
|
inline |
Definition at line 101 of file Pointcloud.h.
|
inline |
Definition at line 103 of file Pointcloud.h.
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.
void octomap::Pointcloud::minDist | ( | double | thres | ) |
Definition at line 191 of file Pointcloud.cpp.
|
inline |
Definition at line 109 of file Pointcloud.h.
|
inline |
Definition at line 110 of file Pointcloud.h.
|
inline |
Definition at line 61 of file Pointcloud.h.
|
inline |
Definition at line 64 of file Pointcloud.h.
|
inline |
Definition at line 67 of file Pointcloud.h.
void octomap::Pointcloud::push_back | ( | const Pointcloud & | other | ) |
Add points from other Pointcloud.
Definition at line 84 of file Pointcloud.cpp.
std::istream & octomap::Pointcloud::read | ( | std::istream & | s | ) |
Definition at line 271 of file Pointcloud.cpp.
std::istream & octomap::Pointcloud::readBinary | ( | std::istream & | s | ) |
Definition at line 287 of file Pointcloud.cpp.
|
inline |
Definition at line 59 of file Pointcloud.h.
void octomap::Pointcloud::rotate | ( | double | roll, |
double | pitch, | ||
double | yaw | ||
) |
Rotate each point in pointcloud.
Definition at line 123 of file Pointcloud.cpp.
|
inline |
Definition at line 57 of file Pointcloud.h.
void octomap::Pointcloud::subSampleRandom | ( | unsigned int | num_samples, |
Pointcloud & | sample_cloud | ||
) |
Definition at line 207 of file Pointcloud.cpp.
void octomap::Pointcloud::transform | ( | pose6d | transform | ) |
Apply transform to each point.
Definition at line 99 of file Pointcloud.cpp.
void octomap::Pointcloud::transformAbsolute | ( | pose6d | transform | ) |
Apply transform to each point, undo previous transforms.
Definition at line 110 of file Pointcloud.cpp.
std::ostream & octomap::Pointcloud::writeBinary | ( | std::ostream & | s | ) | const |
Definition at line 315 of file Pointcloud.cpp.
void octomap::Pointcloud::writeVrml | ( | std::string | filename | ) |
Export the Pointcloud to a VRML file.
Definition at line 224 of file Pointcloud.cpp.
|
protected |
Definition at line 119 of file Pointcloud.h.
|
protected |
Definition at line 120 of file Pointcloud.h.