34 #include <global_planner_tests/many_map_test_suite.h> 37 #include <gtest/gtest.h> 40 using global_planner_tests::many_map_test_suite;
43 void dlux_test(std::string ns, std::string potential_calculator =
"", std::string traceback =
"")
49 if (potential_calculator.length() > 0)
50 nh.
setParam(
"potential_calculator", potential_calculator);
51 if (traceback.length() > 0)
53 EXPECT_TRUE(many_map_test_suite(planner, tf, ns)) << potential_calculator <<
" " + traceback;
56 TEST(GlobalPlanner, AStarVon)
58 dlux_test(
"AStarVon",
"dlux_plugins::AStar",
"dlux_plugins::VonNeumannPath");
61 TEST(GlobalPlanner, AStarGrid)
63 dlux_test(
"AStarGrid",
"dlux_plugins::AStar",
"dlux_plugins::GridPath");
66 TEST(GlobalPlanner, AStarGradient)
68 dlux_test(
"AStarGradient",
"dlux_plugins::AStar",
"dlux_plugins::GradientPath");
71 TEST(GlobalPlanner, DijkstraVon)
73 dlux_test(
"DijkstraVon",
"dlux_plugins::Dijkstra",
"dlux_plugins::VonNeumannPath");
76 TEST(GlobalPlanner, DijkstraGrid)
78 dlux_test(
"DijkstraGrid",
"dlux_plugins::Dijkstra",
"dlux_plugins::GridPath");
81 TEST(GlobalPlanner, DijkstraGradient)
83 dlux_test(
"DijkstraGradient",
"dlux_plugins::Dijkstra",
"dlux_plugins::GradientPath");
86 int main(
int argc,
char **argv)
89 testing::InitGoogleTest(&argc, argv);
90 return RUN_ALL_TESTS();
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void dlux_test(std::string ns, std::string potential_calculator="", std::string traceback="")
int main(int argc, char **argv)
TEST(GlobalPlanner, AStarVon)
std::shared_ptr< tf::TransformListener > TFListenerPtr
void setParam(const std::string &key, const XmlRpc::XmlRpcValue &v) const