submaps.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2016 The Cartographer Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
19 #include <vector>
20 
23 
24 namespace cartographer {
25 namespace mapping {
26 
28 
30 
32  if (size() > 1) {
33  return size() - 2;
34  }
35  return size() - 1;
36 }
37 
38 std::vector<int> Submaps::insertion_indices() const {
39  if (size() > 1) {
40  return {size() - 2, size() - 1};
41  }
42  return {size() - 1};
43 }
44 
45 } // namespace mapping
46 } // namespace cartographer
std::vector< int > insertion_indices() const
Definition: submaps.cc:38
virtual int size() const =0


cartographer
Author(s):
autogenerated on Mon Jun 10 2019 12:51:39