Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include guards #1116

Merged
merged 5 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/SFMdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* Passing function argument allows to specificy an initial position, a pose increment and step count.
*/

#pragma once

// As this is a full 3D problem, we will use Pose3 variables to represent the camera
// positions and Point3 variables (x, y, z) to represent the landmark coordinates.
// Camera observations of landmarks (i.e. pixel coordinates) will be stored as Point2 (x, y).
Expand Down Expand Up @@ -66,4 +68,4 @@ std::vector<gtsam::Pose3> createPoses(
}

return poses;
}
}
2 changes: 2 additions & 0 deletions gtsam/discrete/DiscreteJunctionTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @author Richard Roberts
*/

#pragma once

#include <gtsam/discrete/DiscreteFactorGraph.h>
#include <gtsam/discrete/DiscreteBayesTree.h>
#include <gtsam/inference/JunctionTree.h>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/geometry/Cyclic.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @author Frank Dellaert
**/

#pragma once

#include <gtsam/base/Group.h>
#include <gtsam/base/Testable.h>

Expand Down
2 changes: 2 additions & 0 deletions gtsam/linear/GaussianJunctionTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @author Richard Roberts
*/

#pragma once

#include <gtsam/linear/GaussianFactorGraph.h>
#include <gtsam/linear/GaussianBayesTree.h>
#include <gtsam/inference/JunctionTree.h>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/linear/linearAlgorithms-inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @author Richard Roberts
*/

#pragma once

#include <gtsam/linear/VectorValues.h>
#include <gtsam/linear/GaussianConditional.h>
#include <gtsam/base/treeTraversal-inst.h>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/linear/tests/powerMethodExample.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* PowerMethod/AcceleratedPowerMethod
*/

#pragma once

#include <gtsam/inference/Symbol.h>

#include <iostream>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/navigation/ConstantVelocityFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @author Asa Hammond
*/

#pragma once

#include <gtsam/navigation/NavState.h>
#include <gtsam/nonlinear/NonlinearFactor.h>

Expand Down
2 changes: 2 additions & 0 deletions gtsam/navigation/MagFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @date January 29, 2014
*/

#pragma once

#include <gtsam/nonlinear/NonlinearFactor.h>
#include <gtsam/geometry/Rot2.h>
#include <gtsam/geometry/Rot3.h>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/nonlinear/WhiteNoiseFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @date September 2011
*/

#pragma once

#include <gtsam/nonlinear/NonlinearFactor.h>
#include <gtsam/linear/HessianFactor.h>
#include <cmath>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/nonlinear/internal/LevenbergMarquardtState.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @date April 2016
*/

#pragma once

#include "NonlinearOptimizerState.h"

#include <gtsam/nonlinear/Values.h>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/sfm/TranslationRecovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @brief Recovering translations in an epipolar graph when rotations are given.
*/

#pragma once

#include <map>
#include <set>
#include <utility>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/slam/TriangulationFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @author Frank Dellaert
*/

#pragma once

#include <gtsam/nonlinear/NonlinearFactor.h>
#include <gtsam/geometry/CalibratedCamera.h>
#include <boost/make_shared.hpp>
Expand Down
2 changes: 2 additions & 0 deletions gtsam/symbolic/SymbolicJunctionTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @author Richard Roberts
*/

#pragma once

#include <gtsam/symbolic/SymbolicFactorGraph.h>
#include <gtsam/symbolic/SymbolicBayesTree.h>
#include <gtsam/inference/JunctionTree.h>
Expand Down
2 changes: 2 additions & 0 deletions gtsam_unstable/base/BTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @date Feb 3, 2010
*/

#pragma once

#include <stack>
#include <sstream>
#include <boost/shared_ptr.hpp>
Expand Down
2 changes: 2 additions & 0 deletions gtsam_unstable/base/Dummy.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @date June 14, 2012
*/

#pragma once

#include <gtsam/global_includes.h>
#include <gtsam_unstable/dllexport.h>
#include <string>
Expand Down
4 changes: 3 additions & 1 deletion gtsam_unstable/linear/ActiveSetSolver-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @date 2/11/16
*/

#pragma once

#include <gtsam_unstable/linear/InfeasibleInitialValues.h>

/******************************************************************************/
Expand Down Expand Up @@ -283,4 +285,4 @@ Template std::pair<VectorValues, VectorValues> This::optimize() const {
}

#undef Template
#undef This
#undef This
2 changes: 2 additions & 0 deletions gtsam_unstable/linear/LPSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @date 6/16/16
*/

#pragma once

#include <gtsam_unstable/linear/LP.h>
#include <gtsam_unstable/linear/ActiveSetSolver.h>
#include <gtsam_unstable/linear/LPInitSolver.h>
Expand Down
4 changes: 3 additions & 1 deletion gtsam_unstable/linear/QPSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @date 6/16/16
*/

#pragma once

#include <gtsam_unstable/linear/QP.h>
#include <gtsam_unstable/linear/ActiveSetSolver.h>
#include <gtsam_unstable/linear/QPInitSolver.h>
Expand Down Expand Up @@ -45,4 +47,4 @@ struct QPPolicy {

using QPSolver = ActiveSetSolver<QP, QPPolicy, QPInitSolver>;

}
}
2 changes: 2 additions & 0 deletions gtsam_unstable/partition/FindSeparator.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Description: find the separator of bisectioning for a given graph
*/

#pragma once

#include <map>
#include <vector>
#include <boost/optional.hpp>
Expand Down
2 changes: 2 additions & 0 deletions timing/timeSFMBAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @date July 5, 2015
*/

#pragma once

#include <gtsam/sfm/SfmData.h>
#include <gtsam/slam/dataset.h>
#include <gtsam/nonlinear/LevenbergMarquardtOptimizer.h>
Expand Down