MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / getKeyFrame

Method getKeyFrame

src/dvins/pose_graph/src/pose_graph.cpp:289–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289KeyFrame* PoseGraph::getKeyFrame(int index)
290{
291// unique_lock<mutex> lock(m_keyframelist);
292 list<KeyFrame*>::iterator it = keyframelist.begin();
293 for (; it != keyframelist.end(); it++)
294 {
295 if((*it)->index == index)
296 break;
297 }
298 if (it != keyframelist.end())
299 return *it;
300 else
301 return NULL;
302}
303
304int PoseGraph::detectLoop(KeyFrame* keyframe, int frame_index)
305{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected