Skip to content

Commit

Permalink
starting graph publisher before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlazaro committed Apr 5, 2018
1 parent 31667f3 commit 07e1fc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cg_mrslam.cpp
Expand Up @@ -182,16 +182,16 @@ int main(int argc, char **argv)
mapServer.publishMapMetaData();
mapServer.publishMap();
}

if (publishGraph)
graphPublisher.publishGraph();

if (publishMap || publishGraph){
graphPublisher.start();
graphPublisher.setEstimate(gslam.lastVertex()->estimate());
graphPublisher.setOdom(odomPosk_1);
}


if (publishGraph)
graphPublisher.publishGraph();

//Saving g2o file
char buf[100];
sprintf(buf, "robot-%i-%s", idRobot, outputFilename.c_str());
Expand Down

0 comments on commit 07e1fc4

Please sign in to comment.