Skip to content

Add shared_ptr definition for remainder of camera objects - #1088

Merged
dellaert merged 1 commit into
developfrom
fix/add-shared-ptr-for-camera-calibration-classes
Feb 5, 2022
Merged

dellaert merged 1 commit into
developfrom
fix/add-shared-ptr-for-camera-calibration-classes

Conversation

@dwisth

@dwisth dwisth commented Feb 5, 2022

Copy link
Copy Markdown
Contributor

This is a minor usability fix.

Some of the camera calibration objects returned the expected shared_ptr e.g.

  • Cal3_S2Stereo::shared_ptr returns boost::shared_ptr<Cal3_S2Stereo>
  • Cal3Fisheye::shared_ptr returns boost::shared_ptr<Cal3Fisheye>

but others returned a different type which could be confusing, e.g.

  • Cal3DS2::shared_ptr returns boost::shared_ptr<Cal3>.

This PR adds some using statements to make this more consistent.

@dwisth
dwisth requested a review from varunagrawal February 5, 2022 10:28
@dellaert

dellaert commented Feb 5, 2022

Copy link
Copy Markdown
Member

Thanks, clear improvement, will merge!

@dellaert
dellaert merged commit efe922b into develop Feb 5, 2022
@dellaert
dellaert deleted the fix/add-shared-ptr-for-camera-calibration-classes branch February 5, 2022 16:10
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