Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CARTOGRAPHER_IO_SERIALIZATION_FORMAT_MIGRATION_H_
00018 #define CARTOGRAPHER_IO_SERIALIZATION_FORMAT_MIGRATION_H_
00019
00020 #include "cartographer/io/proto_stream_interface.h"
00021 #include "cartographer/mapping/id.h"
00022 #include "cartographer/mapping/proto/serialization.pb.h"
00023
00024 namespace cartographer {
00025 namespace io {
00026
00027
00028
00029
00030
00031 void MigrateStreamFormatToVersion1(
00032 cartographer::io::ProtoStreamReaderInterface* const input,
00033 cartographer::io::ProtoStreamWriterInterface* const output,
00034 bool migrate_grid_format);
00035
00036 mapping::MapById<mapping::SubmapId, mapping::proto::Submap>
00037 MigrateSubmapFormatVersion1ToVersion2(
00038 const mapping::MapById<mapping::SubmapId, mapping::proto::Submap>&
00039 submap_id_to_submaps,
00040 mapping::MapById<mapping::NodeId, mapping::proto::Node>& node_id_to_nodes,
00041 const mapping::proto::PoseGraph& pose_graph_proto);
00042
00043 }
00044 }
00045
00046 #endif // CARTOGRAPHER_IO_SERIALIZATION_FORMAT_MIGRATION_H_