Skip to content

Commit

Permalink
Run include-what-you-use on the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Windfisch committed Jul 23, 2019
1 parent 67b9606 commit 8d21f54
Show file tree
Hide file tree
Showing 25 changed files with 221 additions and 51 deletions.
6 changes: 5 additions & 1 deletion include/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@

#include<vector>

#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <cstddef>

#include "MapPoint.h"
#include "Thirdparty/DBoW2/DBoW2/BowVector.h"
#include "Thirdparty/DBoW2/DBoW2/FeatureVector.h"
#include "ORBVocabulary.h"
#include "KeyFrame.h"
#include "ORBextractor.h"

#include <opencv2/opencv.hpp>
namespace ORB_SLAM2 { class ORBextractor; }

namespace ORB_SLAM2
{
Expand Down
9 changes: 7 additions & 2 deletions include/KeyFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
#ifndef KEYFRAME_H
#define KEYFRAME_H

#include <stddef.h>
#include <opencv2/core.hpp>
#include <mutex>
#include <map>
#include <set>
#include <vector>

#include "MapPoint.h"
#include "Thirdparty/DBoW2/DBoW2/BowVector.h"
#include "Thirdparty/DBoW2/DBoW2/FeatureVector.h"
Expand All @@ -29,8 +36,6 @@
#include "Frame.h"
#include "KeyFrameDatabase.h"

#include <mutex>


namespace ORB_SLAM2
{
Expand Down
8 changes: 6 additions & 2 deletions include/LocalMapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,25 @@
#ifndef LOCALMAPPING_H
#define LOCALMAPPING_H

#include <opencv2/core.hpp>
#include <mutex>
#include <list>

#include "KeyFrame.h"
#include "Map.h"
#include "LoopClosing.h"
#include "Tracking.h"
#include "KeyFrameDatabase.h"

#include <mutex>


namespace ORB_SLAM2
{

class Tracking;
class LoopClosing;
class Map;
class KeyFrame;
class MapPoint;

class LocalMapping
{
Expand Down
19 changes: 15 additions & 4 deletions include/LoopClosing.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,35 @@
#ifndef LOOPCLOSING_H
#define LOOPCLOSING_H

#include <opencv2/core.hpp>
#include <thread>
#include <mutex>
#include <Eigen/Core>
#include <functional>
#include <list>
#include <map>
#include <set>
#include <utility>
#include <vector>

#include "KeyFrame.h"
#include "LocalMapping.h"
#include "Map.h"
#include "ORBVocabulary.h"
#include "Tracking.h"

#include "KeyFrameDatabase.h"

#include <thread>
#include <mutex>
#include "Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h"
#include "Thirdparty/g2o/g2o/types/sim3.h"

namespace ORB_SLAM2
{

class Tracking;
class LocalMapping;
class KeyFrameDatabase;
class KeyFrame;
class Map;
class MapPoint;


class LoopClosing
Expand Down
7 changes: 4 additions & 3 deletions include/Map.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
#ifndef MAP_H
#define MAP_H

#include "MapPoint.h"
#include "KeyFrame.h"
#include <set>

#include <mutex>
#include <vector>

#include "MapPoint.h"
#include "KeyFrame.h"



Expand Down
12 changes: 11 additions & 1 deletion include/Optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,28 @@
#ifndef OPTIMIZER_H
#define OPTIMIZER_H

#include <stddef.h>
#include <map>
#include <set>
#include <vector>

#include "Map.h"
#include "MapPoint.h"
#include "KeyFrame.h"
#include "LoopClosing.h"
#include "Frame.h"

#include "Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h"

namespace g2o { struct Sim3; }

namespace ORB_SLAM2
{

class LoopClosing;
class Frame;
class KeyFrame;
class Map;
class MapPoint;

class Optimizer
{
Expand Down
6 changes: 6 additions & 0 deletions include/PnPsolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,17 @@

#include <opencv2/core/core.hpp>
#include <opencv2/core/core_c.h>
#include <stddef.h>
#include <opencv2/core.hpp>
#include <vector>

#include "MapPoint.h"
#include "Frame.h"

namespace ORB_SLAM2
{
class Frame;
class MapPoint;

class PnPsolver {
public:
Expand Down
4 changes: 4 additions & 0 deletions include/Sim3Solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#define SIM3SOLVER_H

#include <opencv2/opencv.hpp>
#include <stddef.h>
#include <opencv2/core.hpp>
#include <vector>

#include "KeyFrame.h"
Expand All @@ -31,6 +33,8 @@

namespace ORB_SLAM2
{
class KeyFrame;
class MapPoint;

class Sim3Solver
{
Expand Down
5 changes: 3 additions & 2 deletions include/Viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
#ifndef VIEWER_H
#define VIEWER_H

#include <mutex>
#include <string>

#include "FrameDrawer.h"
#include "MapDrawer.h"
#include "Tracking.h"
#include "System.h"

#include <mutex>

namespace ORB_SLAM2
{

Expand Down
4 changes: 4 additions & 0 deletions src/Converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

#include "Converter.h" // IWYU pragma: associated

#include <Eigen/Core>
#include <Eigen/Geometry>
#include <algorithm>

namespace ORB_SLAM2
{

Expand Down
14 changes: 13 additions & 1 deletion src/Frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@
*/

#include "Frame.h" // IWYU pragma: associated

#include <ext/alloc_traits.h>
#include <ext/new_allocator.h>
#include <limits.h>
#include <math.h>
#include <opencv2/calib3d.hpp>
#include <thread>
#include <algorithm>
#include <memory>
#include <utility>

#include "Converter.h"
#include "ORBmatcher.h"
#include <thread>
#include "MapPoint.h"
#include "ORBextractor.h"

namespace ORB_SLAM2
{
Expand Down
11 changes: 8 additions & 3 deletions src/FrameDrawer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@
*/

#include "FrameDrawer.h" // IWYU pragma: associated
#include "Tracking.h"

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <memory>
#include <ostream>

#include "Tracking.h"
#include "Frame.h"
#include "Map.h"
#include "MapPoint.h"

#include<mutex>

Expand Down
11 changes: 8 additions & 3 deletions src/Initializer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@

#include "Initializer.h" // IWYU pragma: associated

#include "Thirdparty/DBoW2/DUtils/Random.h"
#include <ext/alloc_traits.h>
#include <algorithm>
#include <cmath>
#include <functional>
#include <memory>
#include <type_traits>

#include "Optimizer.h"
#include "ORBmatcher.h"
#include "Thirdparty/DBoW2/DUtils/Random.h"
#include "Frame.h"

#include<thread>

Expand Down
14 changes: 13 additions & 1 deletion src/KeyFrame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,20 @@
*/

#include "KeyFrame.h" // IWYU pragma: associated

#include <ext/alloc_traits.h>
#include <math.h>
#include <algorithm>
#include <list>
#include <memory>
#include <utility>

#include "Converter.h"
#include "ORBmatcher.h"
#include "Frame.h"
#include "KeyFrameDatabase.h"
#include "Map.h"
#include "MapPoint.h"

#include<mutex>

namespace ORB_SLAM2
Expand Down
8 changes: 8 additions & 0 deletions src/KeyFrameDatabase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@

#include "KeyFrameDatabase.h" // IWYU pragma: associated

#include <algorithm>
#include <iosfwd>
#include <map>
#include <memory>
#include <set>
#include <utility>

#include "KeyFrame.h"
#include "Thirdparty/DBoW2/DBoW2/BowVector.h"
#include "Frame.h"

#include<mutex>

Expand Down
16 changes: 14 additions & 2 deletions src/LocalMapping.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,23 @@
*/

#include "LocalMapping.h" // IWYU pragma: associated

#include <unistd.h>
#include <math.h>
#include <stddef.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <memory>
#include <utility>
#include <vector>

#include "LoopClosing.h"
#include "ORBmatcher.h"
#include "Optimizer.h"

#include <unistd.h>
#include "KeyFrame.h"
#include "Map.h"
#include "MapPoint.h"

#include<mutex>

Expand Down
19 changes: 15 additions & 4 deletions src/LoopClosing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,26 @@

#include "LoopClosing.h" // IWYU pragma: associated

#include "Sim3Solver.h"
#include <unistd.h>
#include <ext/alloc_traits.h>
#include <stddef.h>
#include <Eigen/Geometry>
#include <algorithm>
#include <iostream>
#include <memory>

#include "Sim3Solver.h"
#include "Converter.h"

#include "Optimizer.h"

#include "ORBmatcher.h"
#include "KeyFrame.h"
#include "KeyFrameDatabase.h"
#include "LocalMapping.h"
#include "Map.h"
#include "MapPoint.h"

namespace DBoW2 { class BowVector; }

#include <unistd.h>
#include<mutex>
#include<thread>

Expand Down
3 changes: 3 additions & 0 deletions src/Map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

#include "Map.h" // IWYU pragma: associated

#include "KeyFrame.h"
#include "MapPoint.h"

#include<mutex>

namespace ORB_SLAM2
Expand Down
Loading

0 comments on commit 8d21f54

Please sign in to comment.