cartographer
io
internal
mapping_state_serialization.h
Go to the documentation of this file.
1
/*
2
* Copyright 2018 The Cartographer Authors
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef CARTOGRAPHER_IO_INTERNAL_MAPPING_STATE_SERIALIZATION_H_
17
#define CARTOGRAPHER_IO_INTERNAL_MAPPING_STATE_SERIALIZATION_H_
18
19
#include "
cartographer/io/proto_stream_interface.h
"
20
#include "
cartographer/mapping/pose_graph.h
"
21
#include "cartographer/mapping/proto/trajectory_builder_options.pb.h"
22
23
namespace
cartographer
{
24
namespace
io {
25
26
// The current serialization format version.
27
static
constexpr
int
kMappingStateSerializationFormatVersion
= 1;
28
29
// Serialize mapping state to a pbstream.
30
void
WritePbStream
(
31
const
mapping::PoseGraph
& pose_graph,
32
const
std::vector<mapping::proto::TrajectoryBuilderOptionsWithSensorIds>&
33
builder_options,
34
ProtoStreamWriterInterface
*
const
writer);
35
36
}
// namespace io
37
}
// namespace cartographer
38
39
#endif // CARTOGRAPHER_IO_INTERNAL_MAPPING_STATE_SERIALIZATION_H_
cartographer::mapping::PoseGraph
Definition:
pose_graph.h:47
pose_graph.h
cartographer::io::WritePbStream
void WritePbStream(const mapping::PoseGraph &pose_graph, const std::vector< mapping::proto::TrajectoryBuilderOptionsWithSensorIds > &trajectory_builder_options, ProtoStreamWriterInterface *const writer)
Definition:
mapping_state_serialization.cc:193
cartographer::io::kMappingStateSerializationFormatVersion
static constexpr int kMappingStateSerializationFormatVersion
Definition:
mapping_state_serialization.h:27
proto_stream_interface.h
cartographer
Definition:
map_builder_stub.cc:31
cartographer::io::ProtoStreamWriterInterface
Definition:
proto_stream_interface.h:27
cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58