Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add shared_ptr definition for remainder of camera objects #1088

Merged

Conversation

dwisth
Copy link
Contributor

@dwisth dwisth commented Feb 5, 2022

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

dellaert commented Feb 5, 2022

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants