Skip to content

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.

#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.

#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

#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

#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

#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

#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

#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

#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

#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

#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.

3 participants