feature_finder_loader_tests.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Michael Ferguson
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 #include <gtest/gtest.h>
19 
20 TEST(FeatureFinderLoaderTests, test_feature_finder_loader)
21 {
22  ros::NodeHandle nh("~");
25  bool result = loader.load(nh, features);
26 
27  EXPECT_EQ(true, result);
28  EXPECT_EQ(static_cast<size_t>(2), features.size());
29 }
30 
31 int main(int argc, char** argv)
32 {
33  ros::init(argc, argv, "feature_finder_loader_tests");
34  testing::InitGoogleTest(&argc, argv);
35  return RUN_ALL_TESTS();
36 }
TEST(FeatureFinderLoaderTests, test_feature_finder_loader)
std::map< std::string, FeatureFinderPtr > FeatureFinderMap
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Load feature finders, based on param server config.
int main(int argc, char **argv)
bool load(ros::NodeHandle &nh, FeatureFinderMap &features)


robot_calibration
Author(s): Michael Ferguson
autogenerated on Tue Nov 3 2020 17:30:30