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

Method visualizeGlobalMapThread

src/mapOptimizationGT.cpp:1048–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046 // }
1047
1048 void visualizeGlobalMapThread()
1049 {
1050 ros::Rate rate(0.2);
1051 // ROS_INFO("start publishing global maps");
1052 while (ros::ok()){
1053 // publish key poses
1054
1055 publishCloud(&pubKeyPoses, cloudKeyPoses3D, timeLidarInfoStamp, mapFrame);
1056
1057 publishGlobalMap();
1058 // ROS_INFO("publishing global maps");
1059 rate.sleep();
1060 }
1061
1062 if (savePCD == false && saveKeyframeMap == false && savePose == false)
1063 return;
1064
1065 roll::save_mapRequest req;
1066 roll::save_mapResponse res;
1067
1068 if (!doneSavingMap)
1069 {
1070 if(!saveMapService(req, res)) cout << "Fail to save map" << endl;
1071 }
1072 }
1073
1074 void publishGlobalMap()
1075 {

Callers

nothing calls this directly

Calls 1

publishCloudFunction · 0.85

Tested by

no test coverage detected