MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/SOAR / FloatUp

Method FloatUp

src/simulator/local_sensing/include/ikd-Tree/ikd_Tree.cpp:1399–1411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397}
1398
1399void MANUAL_HEAP::FloatUp(int heap_index){
1400 int ancestor = (heap_index-1)/2;
1401 PointType_CMP tmp = heap[heap_index];
1402 while (heap_index > 0){
1403 if (heap[ancestor] < tmp){
1404 heap[heap_index] = heap[ancestor];
1405 heap_index = ancestor;
1406 ancestor = (heap_index-1)/2;
1407 } else break;
1408 }
1409 heap[heap_index] = tmp;
1410 return;
1411}
1412
1413// manual queue
1414void MANUAL_Q::clear(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected