34 #include <gtest/gtest.h> 40 TEST(ResolutionTest, simple_example)
42 nav_2d_msgs::Path2D path;
62 TEST(ResolutionTest, real_example)
65 nav_2d_msgs::Path2D path;
66 addPose(path, 17.779193, -0.972024);
67 addPose(path, 17.799171, -0.950775);
68 addPose(path, 17.851942, -0.903709);
74 int main(
int argc,
char** argv)
76 testing::InitGoogleTest(&argc, argv);
77 return RUN_ALL_TESTS();
void addPose(nav_2d_msgs::Path2D &path, double x, double y, double theta=0.0)
Convenience function to add a pose to a path in one line.
int main(int argc, char **argv)
nav_2d_msgs::Path2D adjustPlanResolution(const nav_2d_msgs::Path2D &global_plan_in, double resolution)
Increase plan resolution to match that of the costmap by adding points linearly between points...
TEST(ResolutionTest, simple_example)