#include <ros/ros.h>
#include <nav_core2/exceptions.h>
#include <global_planner_tests/easy_costmap.h>
#include <global_planner_tests/global_planner_tests.h>
#include <dlux_global_planner/dlux_global_planner.h>
#include <nav_grid/coordinate_conversion.h>
#include <gtest/gtest.h>
#include <string>
#include <vector>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
bool | pathsEqual (const nav_2d_msgs::Path2D &path_a, const nav_2d_msgs::Path2D &path_b) |
|
void | replanning_test (const std::string &ns, bool expect_different, bool path_caching=false, double improvement_threshold=-1.0) |
| Check to see whether path caching is working as expected. More...
|
|
void | setBarrier (nav_core2::Costmap &costmap, const unsigned char value) |
|
| TEST (GlobalPlannerReplanning, no_cache) |
|
| TEST (GlobalPlannerReplanning, any_cache) |
|
| TEST (GlobalPlannerReplanning, improve_cache) |
|
| TEST (GlobalPlannerReplanning, big_improve) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
bool pathsEqual |
( |
const nav_2d_msgs::Path2D & |
path_a, |
|
|
const nav_2d_msgs::Path2D & |
path_b |
|
) |
| |
void replanning_test |
( |
const std::string & |
ns, |
|
|
bool |
expect_different, |
|
|
bool |
path_caching = false , |
|
|
double |
improvement_threshold = -1.0 |
|
) |
| |
Check to see whether path caching is working as expected.
- Parameters
-
ns | Namespace for patermeters |
expect_different | Whether we expected the resulting paths to be different |
path_caching | Value for path_caching parameter |
improvement_threshold | Value for improvement_threshold parameter |
Definition at line 84 of file global_oscillation_test.cpp.
TEST |
( |
GlobalPlannerReplanning |
, |
|
|
no_cache |
|
|
) |
| |
TEST |
( |
GlobalPlannerReplanning |
, |
|
|
any_cache |
|
|
) |
| |
TEST |
( |
GlobalPlannerReplanning |
, |
|
|
improve_cache |
|
|
) |
| |
TEST |
( |
GlobalPlannerReplanning |
, |
|
|
big_improve |
|
|
) |
| |
const std::string map_path = "package://dlux_plugins/test/robert_frost.png" |