Enable rendering of submaps without a grid (#829)
- related to https://github.com/googlecartographer/cartographer_ros/issues/819master
parent
08cf9f072c
commit
1f55b18eb6
|
@ -178,9 +178,6 @@ void MapBuilderBridge::HandleSubmapQuery(
|
|||
return;
|
||||
}
|
||||
|
||||
CHECK(response_proto.textures_size() > 0)
|
||||
<< "empty textures given for submap: " << submap_id;
|
||||
|
||||
response.submap_version = response_proto.submap_version();
|
||||
for (const auto& texture_proto : response_proto.textures()) {
|
||||
response.textures.emplace_back();
|
||||
|
|
|
@ -35,7 +35,9 @@ std::unique_ptr<::cartographer::io::SubmapTextures> FetchSubmapTextures(
|
|||
srv.response.status.code != ::cartographer_ros_msgs::StatusCode::OK) {
|
||||
return nullptr;
|
||||
}
|
||||
CHECK(!srv.response.textures.empty());
|
||||
if (srv.response.textures.empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
auto response =
|
||||
::cartographer::common::make_unique<::cartographer::io::SubmapTextures>();
|
||||
response->version = srv.response.submap_version;
|
||||
|
|
Loading…
Reference in New Issue