enable display msg for exception

release/4.3a0
Yong-Dian Jian 2012-10-07 23:11:41 +00:00
parent 5b7b89b57c
commit abc01c0779
1 changed files with 4 additions and 2 deletions

View File

@ -98,8 +98,8 @@ namespace gtsam {
catch( CheiralityException& e) {
if (H1) *H1 = zeros(2, camera.dim());
if (H2) *H2 = zeros(2, point.dim());
// cout << e.what() << ": Landmark "<< this->key2_.index()
// << " behind Camera " << this->key1_.index() << endl;
cout << e.what() << ": Landmark "<< this->key2_.index()
<< " behind Camera " << this->key1_.index() << endl;
}
return zero(2);
}
@ -191,6 +191,8 @@ namespace gtsam {
if (H1) *H1 = zeros(2, pose3.dim());
if (H2) *H2 = zeros(2, point.dim());
if (H3) *H3 = zeros(2, calib.dim());
cout << e.what() << ": Landmark "<< this->key2_.index()
<< " behind Camera " << this->key1_.index() << endl;
}
return zero(2);
}