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

Cleanup some includes and fix cassert #1915

Merged
merged 4 commits into from
Dec 11, 2024
Merged

Cleanup some includes and fix cassert #1915

merged 4 commits into from
Dec 11, 2024

Conversation

ProfFan
Copy link
Collaborator

@ProfFan ProfFan commented Dec 4, 2024

Seems that there's a lot more missing includes 🤷

Copy link
Member

@dellaert dellaert left a 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.

@@ -36,6 +36,8 @@
#include <gtsam/base/OptionalJacobian.h>
#include <gtsam/basis/Basis.h>

#include <cassert>
Copy link
Member

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.

@@ -28,6 +28,7 @@
#include <gtsam/base/std_optional_serialization.h>

#include <optional>
#include <cassert>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -30,6 +30,7 @@
#include <gtsam/config.h> // Get GTSAM_USE_QUATERNIONS macro

#include <random>
#include <cassert>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -35,6 +35,7 @@
#include <gtsam/slam/TriangulationFactor.h>

#include <optional>
#include <cassert>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -25,6 +25,7 @@
#include <vector>
#include <map>
#include <unordered_map>
#include <cassert>
Copy link
Member

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>
Copy link
Member

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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -25,6 +25,7 @@
#include <gtsam/nonlinear/NonlinearFactor.h>

#include <iostream>
#include <cassert>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -34,6 +34,7 @@
#include <boost/serialization/optional.hpp>
#endif
#include <vector>
#include <cassert>
Copy link
Member

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>
Copy link
Member

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

@ProfFan ProfFan merged commit b76c6d8 into develop Dec 11, 2024
33 checks passed
@ProfFan ProfFan deleted the fan/fix_cassert_more branch December 11, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants