Const-ify ProbabilityGrid::ToProto (#238)
parent
af22dc6fe1
commit
245e356449
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue