17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_CLIENT_TRAJECTORY_BUILDER_STUB_H_ 18 #define CARTOGRAPHER_CLOUD_INTERNAL_CLIENT_TRAJECTORY_BUILDER_STUB_H_ 22 #include "async_grpc/client.h" 31 #include "grpc++/grpc++.h" 41 const int trajectory_id,
48 const std::string& sensor_id,
55 const std::string& sensor_id,
60 local_slam_result_data)
override;
64 async_grpc::Client<handlers::ReceiveLocalSlamResultsSignature>*
70 std::unique_ptr<async_grpc::Client<handlers::AddRangefinderDataSignature>>
72 std::unique_ptr<async_grpc::Client<handlers::AddImuDataSignature>>
74 std::unique_ptr<async_grpc::Client<handlers::AddOdometryDataSignature>>
76 std::unique_ptr<async_grpc::Client<handlers::AddFixedFramePoseDataSignature>>
78 std::unique_ptr<async_grpc::Client<handlers::AddLandmarkDataSignature>>
80 async_grpc::Client<handlers::ReceiveLocalSlamResultsSignature>
88 #endif // CARTOGRAPHER_CLOUD_INTERNAL_CLIENT_TRAJECTORY_BUILDER_STUB_H_ ~TrajectoryBuilderStub() override
std::unique_ptr< async_grpc::Client< handlers::AddFixedFramePoseDataSignature > > add_fixed_frame_pose_client_
std::unique_ptr< async_grpc::Client< handlers::AddImuDataSignature > > add_imu_client_
void AddSensorData(const std::string &sensor_id, const sensor::TimedPointCloudData &timed_point_cloud_data) override
TrajectoryBuilderStub & operator=(const TrajectoryBuilderStub &)=delete
std::unique_ptr< async_grpc::Client< handlers::AddLandmarkDataSignature > > add_landmark_client_
std::shared_ptr<::grpc::Channel > client_channel_
void AddLocalSlamResultData(std::unique_ptr< mapping::LocalSlamResultData > local_slam_result_data) override
static void RunLocalSlamResultsReader(async_grpc::Client< handlers::ReceiveLocalSlamResultsSignature > *client_reader, LocalSlamResultCallback local_slam_result_callback)
async_grpc::Client< handlers::ReceiveLocalSlamResultsSignature > receive_local_slam_results_client_
std::unique_ptr< async_grpc::Client< handlers::AddRangefinderDataSignature > > add_rangefinder_client_
std::unique_ptr< async_grpc::Client< handlers::AddOdometryDataSignature > > add_odometry_client_
std::unique_ptr< std::thread > receive_local_slam_results_thread_
TrajectoryBuilderStub(std::shared_ptr<::grpc::Channel > client_channel, const int trajectory_id, LocalSlamResultCallback local_slam_result_callback)
std::function< void(int, common::Time, transform::Rigid3d, sensor::RangeData, std::unique_ptr< const InsertionResult >)> LocalSlamResultCallback