Skip to content

Commit efe922b

Browse files
authored
Merge pull request #1088 from borglab/fix/add-shared-ptr-for-camera-calibration-classes
2 parents 304467c + d449113 commit efe922b

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

gtsam/geometry/Cal3Bundler.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class GTSAM_EXPORT Cal3Bundler : public Cal3 {
4141
public:
4242
enum { dimension = 3 };
4343

44+
///< shared pointer to stereo calibration object
45+
using shared_ptr = boost::shared_ptr<Cal3Bundler>;
46+
4447
/// @name Standard Constructors
4548
/// @{
4649

gtsam/geometry/Cal3DS2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class GTSAM_EXPORT Cal3DS2 : public Cal3DS2_Base {
3737
public:
3838
enum { dimension = 9 };
3939

40+
///< shared pointer to stereo calibration object
41+
using shared_ptr = boost::shared_ptr<Cal3DS2>;
42+
4043
/// @name Standard Constructors
4144
/// @{
4245

gtsam/geometry/Cal3DS2_Base.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class GTSAM_EXPORT Cal3DS2_Base : public Cal3 {
4747
public:
4848
enum { dimension = 9 };
4949

50+
///< shared pointer to stereo calibration object
51+
using shared_ptr = boost::shared_ptr<Cal3DS2_Base>;
52+
5053
/// @name Standard Constructors
5154
/// @{
5255

gtsam/geometry/Cal3Unified.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class GTSAM_EXPORT Cal3Unified : public Cal3DS2_Base {
5252
public:
5353
enum { dimension = 10 };
5454

55+
///< shared pointer to stereo calibration object
56+
using shared_ptr = boost::shared_ptr<Cal3Unified>;
57+
5558
/// @name Standard Constructors
5659
/// @{
5760

0 commit comments

Comments
 (0)