Main Page
Namespaces
Classes
Files
File List
File Members
cartographer
mapping
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
17
#include "
cartographer/mapping/submaps.h
"
18
19
#include <vector>
20
21
#include "
cartographer/common/port.h
"
22
#include "
cartographer/transform/transform.h
"
23
24
namespace
cartographer
{
25
namespace
mapping {
26
27
Submaps::Submaps
() {}
28
29
Submaps::~Submaps
() {}
30
31
int
Submaps::matching_index
()
const
{
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
submaps.h
cartographer::mapping::Submaps::insertion_indices
std::vector< int > insertion_indices() const
Definition:
submaps.cc:38
cartographer
Definition:
blocking_queue.h:29
cartographer::mapping::Submaps::matching_index
int matching_index() const
Definition:
submaps.cc:31
transform.h
cartographer::mapping::Submaps::~Submaps
virtual ~Submaps()
Definition:
submaps.cc:29
port.h
cartographer::mapping::Submaps::size
virtual int size() const =0
cartographer::mapping::Submaps::Submaps
Submaps()
Definition:
submaps.cc:27
cartographer
Author(s):
autogenerated on Wed Jun 5 2019 21:57:59