MCPcopy Create free account
hub / github.com/OctoMap/octomap / addNode

Method addNode

octomap/src/ScanGraph.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178
179 ScanNode* ScanGraph::addNode(Pointcloud* scan, pose6d pose) {
180 if (scan != 0) {
181 nodes.push_back(new ScanNode(scan, pose, (unsigned int) nodes.size()));
182 return nodes.back();
183 }
184 else {
185 OCTOMAP_ERROR("scan is invalid.\n");
186 return NULL;
187 }
188 }
189
190
191 ScanEdge* ScanGraph::addEdge(ScanNode* first, ScanNode* second, pose6d constraint) {

Callers 3

mainFunction · 0.80
mainFunction · 0.80
openPointcloudMethod · 0.80

Calls 3

backMethod · 0.80
push_backMethod · 0.45
sizeMethod · 0.45

Tested by 2

mainFunction · 0.64
mainFunction · 0.64