Sematic-Cartographer/cartographer-master/cartographer/cloud/map_builder_server_interfac...

22 lines
719 B
C++
Raw Normal View History

2022-06-23 19:58:36 +08:00
#include "cartographer/cloud/map_builder_server_interface.h"
#include "absl/memory/memory.h"
#include "cartographer/cloud/internal/map_builder_server.h"
namespace cartographer {
namespace cloud {
void RegisterMapBuilderServerMetrics(metrics::FamilyFactory* factory) {
MapBuilderServer::RegisterMetrics(factory);
}
std::unique_ptr<MapBuilderServerInterface> CreateMapBuilderServer(
const proto::MapBuilderServerOptions& map_builder_server_options,
std::unique_ptr<mapping::MapBuilderInterface> map_builder) {
return absl::make_unique<MapBuilderServer>(map_builder_server_options,
std::move(map_builder));
}
} // namespace cloud
} // namespace cartographer