Easier constructor
parent
02d75c0db8
commit
472fe80656
|
|
@ -76,9 +76,7 @@ namespace gtsam {
|
||||||
|
|
||||||
/** Construct from canonical coordinates (Lie algebra) */
|
/** Construct from canonical coordinates (Lie algebra) */
|
||||||
Pose2(const Vector& v) {
|
Pose2(const Vector& v) {
|
||||||
Pose2 pose = Expmap(v);
|
*this = Expmap(v);
|
||||||
r_ = pose.r_;
|
|
||||||
t_ = pose.t_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** print with optional string */
|
/** print with optional string */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue