Follow cartographer-project/cartographer#1759. (#1525)
Signed-off-by: Wolfgang Hess <whess@lyft.com>master
parent
868d147fb5
commit
8064b8f9b7
|
@ -51,7 +51,8 @@ RosMapWritingPointsProcessor::FromDictionary(
|
||||||
|
|
||||||
void RosMapWritingPointsProcessor::Process(
|
void RosMapWritingPointsProcessor::Process(
|
||||||
std::unique_ptr<::cartographer::io::PointsBatch> batch) {
|
std::unique_ptr<::cartographer::io::PointsBatch> batch) {
|
||||||
range_data_inserter_.Insert({batch->origin, batch->points, {}},
|
range_data_inserter_.Insert(
|
||||||
|
{batch->origin, ::cartographer::sensor::PointCloud(batch->points), {}},
|
||||||
&probability_grid_);
|
&probability_grid_);
|
||||||
next_->Process(std::move(batch));
|
next_->Process(std::move(batch));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue