Const-ify ProbabilityGrid::ToProto (#238)

master
catskul 2017-04-25 03:34:17 -04:00 committed by Damon Kohler
parent af22dc6fe1
commit 245e356449
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class ProbabilityGrid {
}
}
proto::ProbabilityGrid ToProto() {
proto::ProbabilityGrid ToProto() const {
proto::ProbabilityGrid result;
*result.mutable_limits() = cartographer::mapping_2d::ToProto(limits_);
result.mutable_cells()->Reserve(cells_.size());