MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / saveGridMap

Function saveGridMap

grid_map_pcl/src/helpers.cpp:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void saveGridMap(const grid_map::GridMap& gridMap, const ros::NodeHandle& nh, const std::string& mapTopic) {
84 std::string pathToOutputBag = getOutputBagPath(nh);
85 const bool savingSuccessful = grid_map::GridMapRosConverter::saveToBag(gridMap, pathToOutputBag, mapTopic);
86 ROS_INFO_STREAM("Saving grid map successful: " << std::boolalpha << savingSuccessful);
87}
88
89inline void printTimeElapsedToRosInfoStream(const std::chrono::system_clock::time_point& start, const std::string& prefix) {
90 const auto stop = std::chrono::high_resolution_clock::now();

Callers 1

mainFunction · 0.85

Calls 1

getOutputBagPathFunction · 0.85

Tested by

no test coverage detected