cartographer
sensor
range_data_test.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/sensor/range_data.h
"
18
19
#include <tuple>
20
#include <vector>
21
22
#include "
cartographer/sensor/internal/test_helpers.h
"
23
#include "gmock/gmock.h"
24
25
namespace
cartographer
{
26
namespace
sensor {
27
namespace
{
28
29
using ::testing::Contains;
30
31
class
RangeDataTest :
public
::testing::Test {
32
protected
:
33
RangeDataTest() :
origin_
(
Eigen
::Vector3f(1, 1, 1)) {
34
returns_
.emplace_back(0, 1, 2);
35
returns_
.emplace_back(4, 5, 6);
36
returns_
.emplace_back(0, 1, 2);
37
misses_
.emplace_back(7, 8, 9);
38
}
39
Eigen::Vector3f
origin_
;
40
std::vector<Eigen::Vector3f>
returns_
;
41
std::vector<Eigen::Vector3f>
misses_
;
42
};
43
44
}
// namespace
45
}
// namespace sensor
46
}
// namespace cartographer
returns_
std::vector< Eigen::Vector3f > returns_
Definition:
range_data_test.cc:40
Eigen
Definition:
compressed_point_cloud_test.cc:21
origin_
Eigen::Vector3f origin_
Definition:
range_data_test.cc:39
cartographer
Definition:
map_builder_stub.cc:31
range_data.h
test_helpers.h
misses_
std::vector< Eigen::Vector3f > misses_
Definition:
range_data_test.cc:41
cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58