Follow cartographer-project/cartographer#1759. (#1525)

Signed-off-by: Wolfgang Hess <whess@lyft.com>
master
Wolfgang Hess 2020-10-13 15:50:12 +02:00 committed by GitHub
parent 868d147fb5
commit 8064b8f9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -51,8 +51,9 @@ RosMapWritingPointsProcessor::FromDictionary(
void RosMapWritingPointsProcessor::Process(
std::unique_ptr<::cartographer::io::PointsBatch> batch) {
range_data_inserter_.Insert({batch->origin, batch->points, {}},
&probability_grid_);
range_data_inserter_.Insert(
{batch->origin, ::cartographer::sensor::PointCloud(batch->points), {}},
&probability_grid_);
next_->Process(std::move(batch));
}