-
Notifications
You must be signed in to change notification settings - Fork 793
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
Cleanup some includes and fix cassert #1915
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modulo including extra headers in .h files.
gtsam/basis/Chebyshev2.h
Outdated
@@ -36,6 +36,8 @@ | |||
#include <gtsam/base/OptionalJacobian.h> | |||
#include <gtsam/basis/Basis.h> | |||
|
|||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure needed in .h not just .cpp? Consider moving code with assert to .cpp if actually needed in .h.
gtsam/geometry/Pose2.h
Outdated
@@ -28,6 +28,7 @@ | |||
#include <gtsam/base/std_optional_serialization.h> | |||
|
|||
#include <optional> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
gtsam/geometry/Rot3.h
Outdated
@@ -30,6 +30,7 @@ | |||
#include <gtsam/config.h> // Get GTSAM_USE_QUATERNIONS macro | |||
|
|||
#include <random> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
gtsam/geometry/triangulation.h
Outdated
@@ -35,6 +35,7 @@ | |||
#include <gtsam/slam/TriangulationFactor.h> | |||
|
|||
#include <optional> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
gtsam/inference/MetisIndex.h
Outdated
@@ -25,6 +25,7 @@ | |||
#include <vector> | |||
#include <map> | |||
#include <unordered_map> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@@ -17,6 +17,7 @@ | |||
#pragma once | |||
|
|||
#include <iomanip> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@@ -26,6 +26,7 @@ | |||
#include <typeinfo> // operator typeid | |||
#include <ostream> | |||
#include <map> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
gtsam/slam/EssentialMatrixFactor.h
Outdated
@@ -25,6 +25,7 @@ | |||
#include <gtsam/nonlinear/NonlinearFactor.h> | |||
|
|||
#include <iostream> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
gtsam/slam/SmartFactorBase.h
Outdated
@@ -34,6 +34,7 @@ | |||
#include <boost/serialization/optional.hpp> | |||
#endif | |||
#include <vector> | |||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@@ -12,6 +12,8 @@ | |||
#include <gtsam_unstable/dynamics/PoseRTV.h> | |||
#include <gtsam_unstable/slam/PartialPriorFactor.h> | |||
|
|||
#include <cassert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, although I probably don’t care about unstable so much
Seems that there's a lot more missing includes 🤷