Go to the documentation of this file.
34 #ifndef OCTOMAP_SCANGRAPH_H
35 #define OCTOMAP_SCANGRAPH_H
64 return (
id == other.
id);
98 std::ostream&
writeASCII(std::ostream &s)
const;
151 bool edgeExists(
unsigned int first_id,
unsigned int second_id);
193 bool writeBinary(
const std::string& filename)
const;
void clear()
Clears all nodes and edges, and will delete the corresponding objects.
pose6d pose
6D pose from which the scan was performed
ScanNode(Pointcloud *_scan, pose6d _pose, unsigned int _id)
std::istream & readPoseASCII(std::istream &s)
edge_iterator edges_begin()
std::istream & readEdgesASCII(std::istream &s)
std::ostream & writePoseASCII(std::ostream &s) const
std::ostream & writeBinary(std::ostream &s) const
const_edge_iterator edges_begin() const
std::vector< ScanEdge * > getOutEdges(ScanNode *node)
bool edgeExists(unsigned int first_id, unsigned int second_id)
std::ostream & writeEdgesASCII(std::ostream &s) const
std::vector< ScanNode * >::const_iterator const_iterator
std::istream & readPlainASCII(std::istream &s)
This class represents a three-dimensional vector.
std::vector< ScanNode * > nodes
size_t getNumPoints(unsigned int max_id=-1) const
std::ostream & writeNodePosesASCII(std::ostream &s) const
const_iterator end() const
void exportDot(std::string filename)
void connectPrevious()
Connect previously added ScanNode to the one before that.
const_iterator begin() const
ScanNode * getNodeByID(unsigned int id)
will return NULL if node was not found
std::istream & readBinary(std::istream &s)
ScanEdge(ScanNode *_first, ScanNode *_second, pose6d _constraint)
std::istream & readBinary(std::istream &s, ScanGraph &graph)
edge_iterator edges_end()
bool operator==(const ScanEdge &other) const
std::istream & readASCII(std::istream &s, ScanGraph &graph)
std::vector< ScanEdge * > getInEdges(ScanNode *node)
const_edge_iterator edges_end() const
bool operator==(const ScanNode &other) const
std::vector< ScanEdge * >::const_iterator const_edge_iterator
ScanNode * addNode(Pointcloud *scan, pose6d pose)
ScanEdge * addEdge(ScanNode *first, ScanNode *second, pose6d constraint)
std::ostream & writeBinary(std::ostream &s) const
std::ostream & writeBinary(std::ostream &s) const
void transformScans()
Transform every scan according to its pose.
std::istream & readNodePosesASCII(std::istream &s)
std::vector< ScanEdge * > edges
std::ostream & writeASCII(std::ostream &s) const
This class represents a tree-dimensional pose of an object.
void cropEachScan(point3d lowerBound, point3d upperBound)
Cut Pointclouds to given BBX in local coords.
std::vector< ScanNode * >::iterator iterator
std::vector< unsigned int > getNeighborIDs(unsigned int id)
void crop(point3d lowerBound, point3d upperBound)
Cut graph (all containing Pointclouds) to given BBX in global coords.
std::istream & readBinary(std::ifstream &s)
std::vector< ScanEdge * >::iterator edge_iterator
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Tue Dec 12 2023 03:39:40