Fix namespace of serialization functions. (#825)
parent
31ec89614c
commit
712c7e3e39
|
@ -49,7 +49,7 @@ class AddFixedFramePoseDataHandler
|
||||||
->local_trajectory_uploader()) {
|
->local_trajectory_uploader()) {
|
||||||
auto data_request = cartographer::common::make_unique<
|
auto data_request = cartographer::common::make_unique<
|
||||||
proto::AddFixedFramePoseDataRequest>();
|
proto::AddFixedFramePoseDataRequest>();
|
||||||
mapping::CreateAddFixedFramePoseDataRequest(
|
sensor::CreateAddFixedFramePoseDataRequest(
|
||||||
request.sensor_metadata().sensor_id(),
|
request.sensor_metadata().sensor_id(),
|
||||||
request.sensor_metadata().trajectory_id(),
|
request.sensor_metadata().trajectory_id(),
|
||||||
request.fixed_frame_pose_data(), data_request.get());
|
request.fixed_frame_pose_data(), data_request.get());
|
||||||
|
|
|
@ -48,10 +48,9 @@ class AddImuDataHandler
|
||||||
->local_trajectory_uploader()) {
|
->local_trajectory_uploader()) {
|
||||||
auto data_request =
|
auto data_request =
|
||||||
cartographer::common::make_unique<proto::AddImuDataRequest>();
|
cartographer::common::make_unique<proto::AddImuDataRequest>();
|
||||||
mapping::CreateAddImuDataRequest(
|
sensor::CreateAddImuDataRequest(request.sensor_metadata().sensor_id(),
|
||||||
request.sensor_metadata().sensor_id(),
|
request.sensor_metadata().trajectory_id(),
|
||||||
request.sensor_metadata().trajectory_id(), request.imu_data(),
|
request.imu_data(), data_request.get());
|
||||||
data_request.get());
|
|
||||||
GetUnsynchronizedContext<MapBuilderServer::MapBuilderContext>()
|
GetUnsynchronizedContext<MapBuilderServer::MapBuilderContext>()
|
||||||
->local_trajectory_uploader()
|
->local_trajectory_uploader()
|
||||||
->EnqueueDataRequest(std::move(data_request));
|
->EnqueueDataRequest(std::move(data_request));
|
||||||
|
|
|
@ -48,7 +48,7 @@ class AddOdometryDataHandler
|
||||||
->local_trajectory_uploader()) {
|
->local_trajectory_uploader()) {
|
||||||
auto data_request =
|
auto data_request =
|
||||||
cartographer::common::make_unique<proto::AddOdometryDataRequest>();
|
cartographer::common::make_unique<proto::AddOdometryDataRequest>();
|
||||||
mapping::CreateAddOdometryDataRequest(
|
sensor::CreateAddOdometryDataRequest(
|
||||||
request.sensor_metadata().sensor_id(),
|
request.sensor_metadata().sensor_id(),
|
||||||
request.sensor_metadata().trajectory_id(), request.odometry_data(),
|
request.sensor_metadata().trajectory_id(), request.odometry_data(),
|
||||||
data_request.get());
|
data_request.get());
|
||||||
|
|
|
@ -76,7 +76,7 @@ void TrajectoryBuilderStub::AddSensorData(
|
||||||
CHECK(rangefinder_writer_.client_writer);
|
CHECK(rangefinder_writer_.client_writer);
|
||||||
}
|
}
|
||||||
proto::AddRangefinderDataRequest request;
|
proto::AddRangefinderDataRequest request;
|
||||||
CreateAddRangeFinderDataRequest(
|
sensor::CreateAddRangeFinderDataRequest(
|
||||||
sensor_id, trajectory_id_,
|
sensor_id, trajectory_id_,
|
||||||
cartographer::sensor::ToProto(timed_point_cloud_data), &request);
|
cartographer::sensor::ToProto(timed_point_cloud_data), &request);
|
||||||
rangefinder_writer_.client_writer->Write(request);
|
rangefinder_writer_.client_writer->Write(request);
|
||||||
|
@ -91,8 +91,9 @@ void TrajectoryBuilderStub::AddSensorData(
|
||||||
CHECK(imu_writer_.client_writer);
|
CHECK(imu_writer_.client_writer);
|
||||||
}
|
}
|
||||||
proto::AddImuDataRequest request;
|
proto::AddImuDataRequest request;
|
||||||
CreateAddImuDataRequest(sensor_id, trajectory_id_,
|
sensor::CreateAddImuDataRequest(sensor_id, trajectory_id_,
|
||||||
cartographer::sensor::ToProto(imu_data), &request);
|
cartographer::sensor::ToProto(imu_data),
|
||||||
|
&request);
|
||||||
imu_writer_.client_writer->Write(request);
|
imu_writer_.client_writer->Write(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,8 +106,8 @@ void TrajectoryBuilderStub::AddSensorData(
|
||||||
CHECK(odometry_writer_.client_writer);
|
CHECK(odometry_writer_.client_writer);
|
||||||
}
|
}
|
||||||
proto::AddOdometryDataRequest request;
|
proto::AddOdometryDataRequest request;
|
||||||
CreateAddOdometryDataRequest(sensor_id, trajectory_id_,
|
sensor::CreateAddOdometryDataRequest(
|
||||||
cartographer::sensor::ToProto(odometry_data),
|
sensor_id, trajectory_id_, cartographer::sensor::ToProto(odometry_data),
|
||||||
&request);
|
&request);
|
||||||
odometry_writer_.client_writer->Write(request);
|
odometry_writer_.client_writer->Write(request);
|
||||||
}
|
}
|
||||||
|
@ -120,7 +121,7 @@ void TrajectoryBuilderStub::AddSensorData(
|
||||||
CHECK(fixed_frame_writer_.client_writer);
|
CHECK(fixed_frame_writer_.client_writer);
|
||||||
}
|
}
|
||||||
proto::AddFixedFramePoseDataRequest request;
|
proto::AddFixedFramePoseDataRequest request;
|
||||||
CreateAddFixedFramePoseDataRequest(
|
sensor::CreateAddFixedFramePoseDataRequest(
|
||||||
sensor_id, trajectory_id_,
|
sensor_id, trajectory_id_,
|
||||||
cartographer::sensor::ToProto(fixed_frame_pose), &request);
|
cartographer::sensor::ToProto(fixed_frame_pose), &request);
|
||||||
fixed_frame_writer_.client_writer->Write(request);
|
fixed_frame_writer_.client_writer->Write(request);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "serialization.h"
|
#include "serialization.h"
|
||||||
|
|
||||||
namespace cartographer_grpc {
|
namespace cartographer_grpc {
|
||||||
namespace mapping {
|
namespace sensor {
|
||||||
|
|
||||||
void CreateSensorMetadata(const std::string& sensor_id, const int trajectory_id,
|
void CreateSensorMetadata(const std::string& sensor_id, const int trajectory_id,
|
||||||
proto::SensorMetadata* proto) {
|
proto::SensorMetadata* proto) {
|
||||||
|
@ -63,5 +63,5 @@ void CreateAddRangeFinderDataRequest(
|
||||||
*proto->mutable_timed_point_cloud_data() = timed_point_cloud_data;
|
*proto->mutable_timed_point_cloud_data() = timed_point_cloud_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mapping
|
} // namespace sensor
|
||||||
} // namespace cartographer_grpc
|
} // namespace cartographer_grpc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "cartographer_grpc/proto/map_builder_service.pb.h"
|
#include "cartographer_grpc/proto/map_builder_service.pb.h"
|
||||||
|
|
||||||
namespace cartographer_grpc {
|
namespace cartographer_grpc {
|
||||||
namespace mapping {
|
namespace sensor {
|
||||||
|
|
||||||
void CreateSensorMetadata(const std::string& sensor_id, int trajectory_id,
|
void CreateSensorMetadata(const std::string& sensor_id, int trajectory_id,
|
||||||
proto::SensorMetadata* proto);
|
proto::SensorMetadata* proto);
|
||||||
|
@ -47,7 +47,7 @@ void CreateAddRangeFinderDataRequest(
|
||||||
timed_point_cloud_data,
|
timed_point_cloud_data,
|
||||||
proto::AddRangefinderDataRequest* proto);
|
proto::AddRangefinderDataRequest* proto);
|
||||||
|
|
||||||
} // namespace mapping
|
} // namespace sensor
|
||||||
} // namespace cartographer_grpc
|
} // namespace cartographer_grpc
|
||||||
|
|
||||||
#endif // CARTOGRAPHER_GRPC_SENSOR_SERIALIZATION_H
|
#endif // CARTOGRAPHER_GRPC_SENSOR_SERIALIZATION_H
|
||||||
|
|
Loading…
Reference in New Issue