Added constructor from base model type

release/4.3a0
Alex Cunningham 2012-06-22 17:50:36 +00:00
parent 18ba9bcb3d
commit 4de506a446
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ namespace gtsam { // note, deliberately not in noiseModel namespace
/// @{
SharedNoiseModel() {}
SharedNoiseModel(const noiseModel::Base::shared_ptr& p): Base(p) {}
SharedNoiseModel(const noiseModel::Robust::shared_ptr& p): Base(p) {}
SharedNoiseModel(const noiseModel::Gaussian::shared_ptr& p): Base(p) {}
SharedNoiseModel(const noiseModel::Diagonal::shared_ptr& p): Base(p) {}