Replace CHECK() by a warning in MapBuilderStub::SerializeState() (#1364)
See discussion in https://github.com/googlecartographer/cartographer_ros/pull/966master
parent
39e5943abc
commit
4cd1528ffb
|
@ -125,8 +125,10 @@ std::string MapBuilderStub::SubmapToProto(
|
||||||
|
|
||||||
void MapBuilderStub::SerializeState(bool include_unfinished_submaps,
|
void MapBuilderStub::SerializeState(bool include_unfinished_submaps,
|
||||||
io::ProtoStreamWriterInterface* writer) {
|
io::ProtoStreamWriterInterface* writer) {
|
||||||
CHECK(!include_unfinished_submaps)
|
if (!include_unfinished_submaps) {
|
||||||
<< "Writing of unfinished submaps is unsupported.";
|
LOG(WARNING) << "Serializing unfinished submaps is currently unsupported. "
|
||||||
|
"Proceeding to write the state without them.";
|
||||||
|
}
|
||||||
google::protobuf::Empty request;
|
google::protobuf::Empty request;
|
||||||
async_grpc::Client<handlers::WriteStateSignature> client(client_channel_);
|
async_grpc::Client<handlers::WriteStateSignature> client(client_channel_);
|
||||||
CHECK(client.Write(request));
|
CHECK(client.Write(request));
|
||||||
|
|
Loading…
Reference in New Issue