19 #include "async_grpc/rpc_handler.h" 21 #include "cartographer/cloud/proto/map_builder_service.pb.h" 25 #include "google/protobuf/empty.pb.h" 31 void AddRangefinderDataHandler::OnRequest(
32 const proto::AddRangefinderDataRequest &request) {
36 GetUnsynchronizedContext<MapBuilderContextInterface>()->EnqueueSensorData(
37 request.sensor_metadata().trajectory_id(),
39 request.sensor_metadata().sensor_id(),
43 void AddRangefinderDataHandler::OnReadsDone() {
44 Send(common::make_unique<google::protobuf::Empty>());
FixedFramePoseData FromProto(const proto::FixedFramePoseData &proto)
std::unique_ptr< Dispatchable< DataType > > MakeDispatchable(const std::string &sensor_id, const DataType &data)