map.h

来自「this is software for visual SLAM」· C头文件 代码 · 共 45 行

H
45
字号
// -*- c++ -*-// Copyright 2008 Isis Innovation Limited//// This header declares the Map class.// This is pretty light-weight: All it contains is// a vector of MapPoints and a vector of KeyFrames.//// N.b. since I don't do proper thread safety,// everything is stored as lists of pointers,// and map points are not erased if they are bad:// they are moved to the trash list. That way// old pointers which other threads are using are not // invalidated!#ifndef __MAP_H#define __MAP_H#include <vector>#include <TooN/se3.h>#include <cvd/image.h>struct MapPoint;struct KeyFrame;struct Map{  Map();  inline bool IsGood() {return bGood;}  void Reset();    void MoveBadPointsToTrash();  void EmptyTrash();    std::vector<MapPoint*> vpPoints;  std::vector<MapPoint*> vpPointsTrash;  std::vector<KeyFrame*> vpKeyFrames;  bool bGood;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?