octomap
1.9.7
|
A collection of 3D coordinates (point3d), which are regarded as endpoints of a 3D laser scan. More...
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 |
Returns a copy of the ith point in point cloud. Use operator[] for direct access to point reference. More... | |
void | minDist (double thres) |
point3d & | operator[] (size_t i) |
const point3d & | operator[] (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 |
A collection of 3D coordinates (point3d), which are regarded as endpoints of a 3D laser scan.
typedef point3d_collection::const_iterator octomap::Pointcloud::const_iterator |
typedef point3d_collection::iterator octomap::Pointcloud::iterator |
octomap::Pointcloud::Pointcloud | ( | ) |
octomap::Pointcloud::~Pointcloud | ( | ) |
References clear().
octomap::Pointcloud::Pointcloud | ( | const Pointcloud & | other | ) |
octomap::Pointcloud::Pointcloud | ( | Pointcloud * | other | ) |
|
inline |
References points.
Referenced by calcBBX(), crop(), minDist(), Pointcloud(), push_back(), subSampleRandom(), and writeBinary().
|
inline |
References points.
Calculate bounding box of Pointcloud.
void octomap::Pointcloud::clear | ( | ) |
References points.
Referenced by crop(), minDist(), and ~Pointcloud().
Crop Pointcloud to given bounding box.
References begin(), clear(), end(), and push_back().
Referenced by octomap::ScanGraph::crop().
|
inline |
References points.
Referenced by calcBBX(), crop(), minDist(), Pointcloud(), push_back(), subSampleRandom(), and writeBinary().
|
inline |
References points.
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.
References OCTOMAP_WARNING, and points.
void octomap::Pointcloud::minDist | ( | double | thres | ) |
References begin(), clear(), end(), and push_back().
void octomap::Pointcloud::push_back | ( | const Pointcloud & | other | ) |
Add points from other Pointcloud.
|
inline |
References points.
Referenced by octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::computeDiscreteUpdate(), crop(), octomap::MapNode< TREETYPE >::generatePointcloud(), main(), minDist(), read(), readBinary(), octomap::ScanGraph::readPlainASCII(), subSampleRandom(), and octomap::MapCollection< MAPNODE >::writePointcloud().
std::istream & octomap::Pointcloud::read | ( | std::istream & | s | ) |
References push_back().
std::istream & octomap::Pointcloud::readBinary | ( | std::istream & | s | ) |
References OCTOMAP_DEBUG, OCTOMAP_ERROR, points, push_back(), octomath::Vector3::readBinary(), and size().
Referenced by octomap::ScanNode::readBinary().
|
inline |
References points, and size().
Referenced by octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::computeDiscreteUpdate().
void octomap::Pointcloud::rotate | ( | double | roll, |
double | pitch, | ||
double | yaw | ||
) |
Rotate each point in pointcloud.
References points.
|
inline |
References points.
Referenced by octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::computeDiscreteUpdate(), octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::computeUpdate(), octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::insertPointCloudRays(), main(), readBinary(), octomap::ScanGraph::readPlainASCII(), reserve(), subSampleRandom(), and writeBinary().
void octomap::Pointcloud::subSampleRandom | ( | unsigned int | num_samples, |
Pointcloud & | sample_cloud | ||
) |
References begin(), end(), push_back(), and size().
void octomap::Pointcloud::transform | ( | pose6d | transform | ) |
Apply transform to each point.
References current_inv_transform, and points.
Referenced by octomap::ScanGraph::crop(), octomap::OccupancyOcTreeBase< OcTreeNodeStamped >::insertPointCloud(), main(), and transformAbsolute().
void octomap::Pointcloud::transformAbsolute | ( | pose6d | transform | ) |
Apply transform to each point, undo previous transforms.
References current_inv_transform, points, transform(), and octomath::Pose6D::transform().
Referenced by octomap::ScanGraph::crop().
std::ostream & octomap::Pointcloud::writeBinary | ( | std::ostream & | s | ) | const |
References begin(), end(), OCTOMAP_DEBUG, OCTOMAP_ERROR, and size().
Referenced by octomap::ScanNode::writeBinary().
void octomap::Pointcloud::writeVrml | ( | std::string | filename | ) |
Export the Pointcloud to a VRML file.
References OCTOMAP_DEBUG_STR, and points.
Referenced by octomap::MapCollection< MAPNODE >::writePointcloud().
|
protected |
Referenced by transform(), and transformAbsolute().
|
protected |
Referenced by back(), begin(), clear(), end(), getPoint(), operator[](), Pointcloud(), push_back(), readBinary(), reserve(), rotate(), size(), transform(), transformAbsolute(), and writeVrml().