Fix constness of Submaps to match the new API. (#136)
parent
7f7933f26d
commit
af78dcbe55
|
@ -297,7 +297,7 @@ bool Node::HandleSubmapQuery(
|
|||
|
||||
carto::common::MutexLocker lock(&mutex_);
|
||||
// TODO(hrapp): return error messages and extract common code from MapBuilder.
|
||||
carto::mapping::Submaps* const submaps =
|
||||
const carto::mapping::Submaps* const submaps =
|
||||
map_builder_.GetTrajectoryBuilder(kTrajectoryBuilderId)->submaps();
|
||||
if (request.submap_id < 0 || request.submap_id >= submaps->size()) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue