Skip to content

Commit 134f999

Browse files
authored
Merge pull request #2142 from borglab/fix/merge_in_release_42
Merge in release/4.2
2 parents 01409fc + c1ec31c commit 134f999

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Optional prerequisites - used automatically if findable by CMake:
5555

5656
GTSAM 4 introduces several new features, most notably Expressions and a Python toolbox. It also introduces traits, a C++ technique that allows optimizing with non-GTSAM types. That opens the door to retiring geometric types such as Point2 and Point3 to pure Eigen types, which we also do. A significant change which will not trigger a compile error is that zero-initializing of Point2 and Point3 is deprecated, so please be aware that this might render functions using their default constructor incorrect.
5757

58+
There is a flag `GTSAM_ALLOW_DEPRECATED_SINCE_V43` for newly deprecated methods since the 4.3 release, which is on by default, allowing anyone to just pull version 4.3 and compile.
59+
60+
5861
## Wrappers
5962

6063
We provide support for [MATLAB](matlab/README.md) and [Python](python/README.md) wrappers for GTSAM. Please refer to the linked documents for more details.

gtsam/discrete/DiscreteFactorGraph.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ class GTSAM_EXPORT DiscreteFactorGraph
127127
template <class DERIVED_FACTOR>
128128
DiscreteFactorGraph(const FactorGraph<DERIVED_FACTOR>& graph) : Base(graph) {}
129129

130+
/// Destructor
131+
virtual ~DiscreteFactorGraph() {}
132+
130133
/// @name Testable
131134
/// @{
132135

gtsam/nonlinear/Values-inl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <utility>
2828
#include <gtsam/nonlinear/Values.h>
2929

30-
#include <gtsam/nonlinear/Values.h> // Only so Eclipse finds class definition
31-
3230
namespace gtsam {
3331

3432

gtsam/sfm/SfmTrack.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,12 @@ struct GTSAM_EXPORT SfmTrack2d {
8181
* @returns boolean result of the validation.
8282
*/
8383
bool hasUniqueCameras() const {
84-
std::vector<int> track_cam_indices;
84+
std::vector<size_t> cameraIndices;
8585
for (auto& measurement : measurements) {
86-
track_cam_indices.emplace_back(measurement.first);
86+
cameraIndices.emplace_back(measurement.first);
8787
}
88-
auto i =
89-
std::adjacent_find(track_cam_indices.begin(), track_cam_indices.end());
90-
bool all_cameras_unique = (i == track_cam_indices.end());
88+
auto i = std::adjacent_find(cameraIndices.begin(), cameraIndices.end());
89+
bool all_cameras_unique = (i == cameraIndices.end());
9190
return all_cameras_unique;
9291
}
9392

python/gtsam/preamble/inference.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
* Without this they will be automatically converted to a Python object, and all
1111
* mutations on Python side will not be reflected on C++.
1212
*/
13+
14+
#include <pybind11/stl.h>

0 commit comments

Comments
 (0)