19 #include "async_grpc/rpc_handler.h" 21 #include "cartographer/cloud/proto/map_builder_service.pb.h" 24 #include "google/protobuf/empty.pb.h" 30 void GetConstraintsHandler::OnRequest(
const google::protobuf::Empty& request) {
31 auto constraints = GetContext<MapBuilderContextInterface>()
35 auto response = common::make_unique<proto::GetConstraintsResponse>();
36 response->mutable_constraints()->Reserve(constraints.size());
37 for (
const auto& constraint : constraints) {
40 Send(std::move(response));
proto::MapLimits ToProto(const MapLimits &map_limits)