| 75 | } |
| 76 | |
| 77 | std::string getMapLayerName(const ros::NodeHandle& nh) { |
| 78 | std::string mapLayerName; |
| 79 | nh.param<std::string>("map_layer_name", mapLayerName, "elevation"); |
| 80 | return mapLayerName; |
| 81 | } |
| 82 | |
| 83 | void saveGridMap(const grid_map::GridMap& gridMap, const ros::NodeHandle& nh, const std::string& mapTopic) { |
| 84 | std::string pathToOutputBag = getOutputBagPath(nh); |