Fixed duplicate last line bug in load2D
parent
34998b3435
commit
ba2ddb22d8
|
|
@ -91,7 +91,8 @@ pair<NonlinearFactorGraph::shared_ptr, Values::shared_ptr> load2D(
|
||||||
|
|
||||||
// load the poses
|
// load the poses
|
||||||
while (is) {
|
while (is) {
|
||||||
is >> tag;
|
if(! (is >> tag))
|
||||||
|
break;
|
||||||
|
|
||||||
if ((tag == "VERTEX2") || (tag == "VERTEX")) {
|
if ((tag == "VERTEX2") || (tag == "VERTEX")) {
|
||||||
int id;
|
int id;
|
||||||
|
|
@ -113,7 +114,8 @@ pair<NonlinearFactorGraph::shared_ptr, Values::shared_ptr> load2D(
|
||||||
// load the factors
|
// load the factors
|
||||||
bool haveLandmark = false;
|
bool haveLandmark = false;
|
||||||
while (is) {
|
while (is) {
|
||||||
is >> tag;
|
if(! (is >> tag))
|
||||||
|
break;
|
||||||
|
|
||||||
if ((tag == "EDGE2") || (tag == "EDGE") || (tag == "ODOMETRY")) {
|
if ((tag == "EDGE2") || (tag == "EDGE") || (tag == "ODOMETRY")) {
|
||||||
int id1, id2;
|
int id1, id2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue