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 
17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_SENSOR_SERIALIZATION_H
18 #define CARTOGRAPHER_CLOUD_INTERNAL_SENSOR_SERIALIZATION_H
19 
20 #include "cartographer/cloud/proto/map_builder_service.pb.h"
28 
29 namespace cartographer {
30 namespace cloud {
31 
32 void CreateSensorMetadata(const std::string& sensor_id, int trajectory_id,
33  proto::SensorMetadata* proto);
34 
36  const std::string& sensor_id, int trajectory_id,
37  const sensor::proto::FixedFramePoseData& fixed_frame_pose_data,
38  proto::AddFixedFramePoseDataRequest* proto);
39 void CreateAddImuDataRequest(const std::string& sensor_id, int trajectory_id,
40  const sensor::proto::ImuData& imu_data,
41  proto::AddImuDataRequest* proto);
43  const std::string& sensor_id, int trajectory_id,
44  const sensor::proto::OdometryData& odometry_data,
45  proto::AddOdometryDataRequest* proto);
47  const std::string& sensor_id, int trajectory_id,
48  const sensor::proto::TimedPointCloudData& timed_point_cloud_data,
49  proto::AddRangefinderDataRequest* proto);
51  const std::string& sensor_id, int trajectory_id,
52  const sensor::proto::LandmarkData& landmark_data,
53  proto::AddLandmarkDataRequest* proto);
55  const std::string& sensor_id, int trajectory_id, common::Time time,
56  int starting_submap_index,
57  const mapping::TrajectoryBuilderInterface::InsertionResult&
58  insertion_result,
59  proto::SensorData* proto);
60 
64  const proto::SensorId& proto);
65 
66 } // namespace cloud
67 } // namespace cartographer
68 
69 #endif // CARTOGRAPHER_CLOUD_INTERNAL_SENSOR_SERIALIZATION_H
mapping::TrajectoryBuilderInterface::SensorId FromProto(const proto::SensorId &proto)
void CreateAddRangeFinderDataRequest(const std::string &sensor_id, int trajectory_id, const sensor::proto::TimedPointCloudData &timed_point_cloud_data, proto::AddRangefinderDataRequest *proto)
UniversalTimeScaleClock::time_point Time
Definition: time.h:44
static time_point time
void CreateAddOdometryDataRequest(const std::string &sensor_id, int trajectory_id, const sensor::proto::OdometryData &odometry_data, proto::AddOdometryDataRequest *proto)
void CreateAddFixedFramePoseDataRequest(const std::string &sensor_id, int trajectory_id, const sensor::proto::FixedFramePoseData &fixed_frame_pose_data, proto::AddFixedFramePoseDataRequest *proto)
void CreateAddLandmarkDataRequest(const std::string &sensor_id, int trajectory_id, const sensor::proto::LandmarkData &landmark_data, proto::AddLandmarkDataRequest *proto)
void CreateSensorDataForLocalSlamResult(const std::string &sensor_id, int trajectory_id, common::Time time, int starting_submap_index, const mapping::TrajectoryBuilderInterface::InsertionResult &insertion_result, proto::SensorData *proto)
proto::SensorId ToProto(const mapping::TrajectoryBuilderInterface::SensorId &sensor_id)
void CreateAddImuDataRequest(const std::string &sensor_id, const int trajectory_id, const sensor::proto::ImuData &imu_data, proto::AddImuDataRequest *proto)
::cartographer::mapping::TrajectoryBuilderInterface::SensorId SensorId
void CreateSensorMetadata(const std::string &sensor_id, const int trajectory_id, proto::SensorMetadata *proto)


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58