points_processor_pipeline_builder_test.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2017 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 <string>
20 
23 #include "gtest/gtest.h"
24 
25 namespace cartographer {
26 namespace io {
27 namespace {
28 
29 TEST(PointsProcessorPipelineBuilderTest, RegisterBuiltInPointsProcessors) {
30  PointsProcessorPipelineBuilder builder;
31  FileWriterFactory dummy_factory =
32  [](const std::string& filename) -> std::unique_ptr<FileWriter> {
33  return nullptr;
34  };
35  RegisterBuiltInPointsProcessors({}, dummy_factory, &builder);
36 }
37 
38 } // namespace
39 } // namespace io
40 } // namespace cartographer
std::function< std::unique_ptr< FileWriter >(const std::string &filename)> FileWriterFactory
Definition: file_writer.h:66
void RegisterBuiltInPointsProcessors(const std::vector< mapping::proto::Trajectory > &trajectories, const FileWriterFactory &file_writer_factory, PointsProcessorPipelineBuilder *builder)
TEST(TrajectoryConnectivityStateTest, UnknownTrajectory)


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58