17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_SENSOR_SERIALIZATION_H 18 #define CARTOGRAPHER_CLOUD_INTERNAL_SENSOR_SERIALIZATION_H 20 #include "cartographer/cloud/proto/map_builder_service.pb.h" 33 proto::SensorMetadata* proto);
36 const std::string& sensor_id,
int trajectory_id,
37 const sensor::proto::FixedFramePoseData& fixed_frame_pose_data,
38 proto::AddFixedFramePoseDataRequest* proto);
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);
56 int starting_submap_index,
57 const mapping::TrajectoryBuilderInterface::InsertionResult&
59 proto::SensorData* proto);
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
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)