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

Method gotoFirstScan

octovis/src/ViewerGui.cpp:348–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346// == incremental graph generation =======================
347
348void ViewerGui::gotoFirstScan(){
349 if (m_scanGraph){
350 showInfo("Inserting first scan node into tree... ", true);
351 QApplication::setOverrideCursor(Qt::WaitCursor);
352
353 m_nextScanToAdd = m_scanGraph->begin();
354
355 // if (m_ocTree) delete m_ocTree;
356 // m_ocTree = new octomap::OcTree(m_octreeResolution);
357 OcTree* tree = new octomap::OcTree(m_octreeResolution);
358 this->addOctree(tree, DEFAULT_OCTREE_ID);
359
360 addNextScan();
361
362 QApplication::restoreOverrideCursor();
363 showOcTree();
364 }
365}
366
367void ViewerGui::addNextScan(){
368

Callers

nothing calls this directly

Calls 2

addOctreeMethod · 0.95
beginMethod · 0.45

Tested by

no test coverage detected