MCPcopy Create free account
hub / github.com/HaisenbergPeng/ROLL / visualizeGlobalMapThread

Method visualizeGlobalMapThread

src/mapOptmization.cpp:1405–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403 }
1404
1405 void visualizeGlobalMapThread()
1406 {
1407 ros::Rate rate(0.2);
1408
1409 while (ros::ok())
1410 {
1411 publishCloud(&pubKeyPoses, cloudKeyPoses3D, timeLidarInfoStamp, mapFrame);
1412 publishGlobalMap();
1413 rate.sleep();
1414 }
1415
1416 if (savePCD == false && saveKeyframeMap == false && savePose == false)
1417 return;
1418
1419 roll::save_mapRequest req;
1420 roll::save_mapResponse res;
1421
1422 if (!doneSavingMap)
1423 {
1424 if(!saveMapService(req, res)) cout << "Fail to save map" << endl;
1425 }
1426 }
1427
1428 void publishGlobalMap()
1429 {

Callers

nothing calls this directly

Calls 1

publishCloudFunction · 0.85

Tested by

no test coverage detected