Skip to content

Commit

Permalink
Removed a bunch of extra includes in the header files. Also removed s…
Browse files Browse the repository at this point in the history
…ome forward declarations that were no longer needed.
  • Loading branch information
Edwinem committed Oct 10, 2018
1 parent 0d4e98b commit 97ac076
Show file tree
Hide file tree
Showing 29 changed files with 9 additions and 43 deletions.
3 changes: 1 addition & 2 deletions g2o/apps/g2o_hierarchical/edge_creator.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@
#ifndef G2O_EDGE_CREATOR_
#define G2O_EDGE_CREATOR_

#include "g2o/core/sparse_optimizer.h"
#include <Eigen/Core>
#include <vector>

#include "g2o/core/sparse_optimizer.h"
#include "g2o_hierarchical_api.h"

namespace g2o {
Expand Down
1 change: 0 additions & 1 deletion g2o/apps/g2o_hierarchical/edge_labeler.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define G2O_EDGE_LABELER_

#include "g2o/core/sparse_optimizer.h"
#include <Eigen/Core>

#include "g2o_hierarchical_api.h"

Expand Down
2 changes: 1 addition & 1 deletion g2o/apps/g2o_hierarchical/edge_types_cost_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#define G2O_EDGE_TYPES_COST_FUNCTION_

#include <string>
#include "g2o/core/sparse_optimizer.h"
#include "g2o/core/hyper_dijkstra.h"
#include "g2o/core/optimizable_graph.h"

namespace g2o {

Expand Down
1 change: 1 addition & 0 deletions g2o/apps/g2o_simulator/simulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <string>
#include <set>
#include <list>
#include "g2o/config.h"
#include "g2o/types/slam3d/types_slam3d.h"
#include "g2o/stuff/sampler.h"
Expand Down
1 change: 0 additions & 1 deletion g2o/core/estimate_propagator.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "g2o_core_api.h"

#include <map>
#include <set>
#include <limits>

#include <unordered_map>
Expand Down
2 changes: 0 additions & 2 deletions g2o/core/factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define G2O_FACTORY_H

#include "g2o/config.h"
#include "g2o/stuff/misc.h"
#include "hyper_graph.h"
#include "creators.h"

Expand All @@ -41,7 +40,6 @@

namespace g2o {

class AbstractHyperGraphElementCreator;

/**
* \brief create vertices and edges based on TAGs in, for example, a file
Expand Down
2 changes: 0 additions & 2 deletions g2o/core/hyper_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
#ifndef G2O_AIS_HYPER_GRAPH_HH
#define G2O_AIS_HYPER_GRAPH_HH

#include <map>
#include <set>
#include <bitset>
#include <cassert>
#include <vector>
#include <limits>
#include <cstddef>

#include <unordered_map>
Expand Down
1 change: 1 addition & 0 deletions g2o/core/hyper_graph_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@


#include <iostream>
#include <list>

namespace g2o {
using namespace std;
Expand Down
1 change: 0 additions & 1 deletion g2o/core/hyper_graph_action.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#include <typeinfo>
#include <iosfwd>
#include <set>
#include <string>
#include <iostream>

Expand Down
2 changes: 0 additions & 2 deletions g2o/core/marginal_covariance_cholesky.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#ifndef G2O_MARGINAL_COVARIANCE_CHOLESKY_H
#define G2O_MARGINAL_COVARIANCE_CHOLESKY_H

#include "optimizable_graph.h"
#include "sparse_block_matrix.h"

#include <cassert>
#include <vector>

#include <unordered_map>
Expand Down
4 changes: 0 additions & 4 deletions g2o/core/optimizable_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

#include <set>
#include <iostream>
#include <list>
#include <limits>
#include <cmath>
#include <typeinfo>

#include "openmp_mutex.h"
Expand All @@ -47,7 +44,6 @@ namespace g2o {

class HyperGraphAction;
struct OptimizationAlgorithmProperty;
class Cache;
class CacheContainer;
class RobustKernel;

Expand Down
3 changes: 0 additions & 3 deletions g2o/core/optimization_algorithm_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
#define G2O_OPTMIZATION_ALGORITHM_PROPERTY_H

#include "g2o/config.h"
#include "g2o/stuff/misc.h"
#include "optimization_algorithm_property.h"

#include <list>
#include <iostream>
#include <typeinfo>

#include "g2o_core_api.h"

Expand All @@ -44,7 +42,6 @@ namespace g2o {

// forward decl
class G2O_CORE_API OptimizationAlgorithm;
class G2O_CORE_API SparseOptimizer;

/**
* \brief base for allocating an optimization algorithm
Expand Down
1 change: 0 additions & 1 deletion g2o/core/robust_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define G2O_ROBUST_KERNEL_H

#include <memory>
#include <Eigen/Core>

#include "g2o_core_api.h"

Expand Down
1 change: 0 additions & 1 deletion g2o/core/robust_kernel_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define G2O_ROBUST_KERNEL_FACTORY_H

#include "g2o_core_api.h"
#include "g2o/stuff/misc.h"

#include <string>
#include <map>
Expand Down
1 change: 0 additions & 1 deletion g2o/core/solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define G2O_SOLVER_H

#include "hyper_graph.h"
#include "batch_stats.h"
#include "sparse_block_matrix.h"
#include "g2o_core_api.h"
#include <cstddef>
Expand Down
2 changes: 0 additions & 2 deletions g2o/core/sparse_optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@
#include "g2o_core_api.h"
#include "batch_stats.h"

#include <map>

namespace g2o {

// forward declaration
class ActivePathCostFunction;
class OptimizationAlgorithm;
class EstimatePropagatorCost;

Expand Down
1 change: 0 additions & 1 deletion g2o/stuff/command_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <string>
#include <vector>
#include <iostream>
#include <sstream>

#include "g2o_stuff_api.h"

Expand Down
1 change: 0 additions & 1 deletion g2o/stuff/sampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define G2O_GAUSSIAN_SAMPLER_

#include <Eigen/Core>
#include <Eigen/Cholesky>
#include <Eigen/StdVector>

#include <cstdlib>
Expand Down
1 change: 0 additions & 1 deletion g2o/types/slam2d/edge_se2_pointxy_offset.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#include "vertex_se2.h"
#include "vertex_point_xy.h"
#include "parameter_se2_offset.h"
#include "g2o_types_slam2d_api.h"

namespace g2o {
Expand Down
3 changes: 0 additions & 3 deletions g2o/types/slam2d/parameter_se2_offset.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@
#ifndef G2O_VERTEX_SE2_OFFSET_PARAMETERS_H_
#define G2O_VERTEX_SE2_OFFSET_PARAMETERS_H_

#include "g2o/core/optimizable_graph.h"

#include "se2.h"
#include "g2o_types_slam2d_api.h"
#include "g2o/core/hyper_graph_action.h"
#include "g2o/core/cache.h"

#include <Eigen/Geometry>

namespace g2o {

Expand Down
2 changes: 0 additions & 2 deletions g2o/types/slam3d/edge_se3_offset.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
#ifndef G2O_EDGE_SE3_OFFSET_H_
#define G2O_EDGE_SE3_OFFSET_H_

#include "g2o/core/base_binary_edge.h"

#include "vertex_se3.h"
#include "edge_se3.h"
#include "g2o_types_slam3d_api.h"

Expand Down
2 changes: 0 additions & 2 deletions g2o/types/slam3d/isometry3d_gradients.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
#ifndef G2O_ISOMETRY3D_GRADIENTS_H_
#define G2O_ISOMETRY3D_GRADIENTS_H_

#include "g2o_types_slam3d_api.h"
#include "isometry3d_mappings.h"
#include "dquat2mat.h"

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

namespace g2o {
namespace internal {
Expand Down
1 change: 0 additions & 1 deletion g2o/types/slam3d/isometry3d_mappings.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "g2o_types_slam3d_api.h"
#include "se3quat.h"
#include <Eigen/Core>
#include <Eigen/Geometry>

namespace g2o {

Expand Down
3 changes: 0 additions & 3 deletions g2o/types/slam3d/parameter_se3_offset.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@
#ifndef G2O_VERTEX_SE3_OFFSET_PARAMETERS_H_
#define G2O_VERTEX_SE3_OFFSET_PARAMETERS_H_

#include "g2o/core/optimizable_graph.h"

#include "g2o/core/hyper_graph_action.h"
#include "g2o/core/cache.h"
#include "g2o_types_slam3d_api.h"

#include <Eigen/Geometry>

namespace g2o {

class VertexSE3;

/**
* \brief offset for an SE3
Expand Down
2 changes: 2 additions & 0 deletions g2o/types/slam3d_addons/edge_se3_calib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#include "edge_se3_calib.h"

#include "g2o/types/slam3d/vertex_se3.h"

namespace g2o {

EdgeSE3Calib::EdgeSE3Calib() :
Expand Down
2 changes: 0 additions & 2 deletions g2o/types/slam3d_addons/edge_se3_calib.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

#include "g2o_types_slam3d_addons_api.h"
#include "g2o/core/base_multi_edge.h"
#include "g2o/types/slam3d/vertex_se3.h"
#include "g2o/types/slam3d/isometry3d_mappings.h"
#include "Eigen/Geometry"

namespace g2o
{
Expand Down
2 changes: 2 additions & 0 deletions g2o/types/slam3d_addons/line3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#include "line3d.h"

#include "g2o/stuff/misc.h"

namespace g2o {

using namespace std;
Expand Down
3 changes: 0 additions & 3 deletions g2o/types/slam3d_addons/line3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@
#ifndef G2O_LINE3D_H_
#define G2O_LINE3D_H_

#include <math.h>

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

#include "g2o_types_slam3d_addons_api.h"
#include "g2o/stuff/misc.h"

namespace g2o {

Expand Down
1 change: 1 addition & 0 deletions g2o/types/slam3d_addons/vertex_line3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "vertex_line3d.h"

#include "g2o/stuff/misc.h"
#include "g2o/stuff/opengl_wrapper.h"

namespace g2o {
Expand Down

0 comments on commit 97ac076

Please sign in to comment.