Easier constructor

release/4.3a0
Frank Dellaert 2011-11-04 14:30:11 +00:00
parent 02d75c0db8
commit 472fe80656
1 changed files with 1 additions and 3 deletions

View File

@ -76,9 +76,7 @@ namespace gtsam {
/** Construct from canonical coordinates (Lie algebra) */
Pose2(const Vector& v) {
Pose2 pose = Expmap(v);
r_ = pose.r_;
t_ = pose.t_;
*this = Expmap(v);
}
/** print with optional string */