Skip to content

Commit 628ae0e

Browse files
committed
update test files
1 parent 0ef18f7 commit 628ae0e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

planning/freespace_planning_algorithms/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ if(BUILD_TESTING)
3434
target_link_libraries(freespace_planning_algorithms-test
3535
freespace_planning_algorithms
3636
)
37-
find_package(ament_cmake_ros REQUIRED)
38-
ament_add_ros_isolated_gtest(freespace_planning_algorithms_no_obstacles-test
37+
ament_add_ros_isolated_gtest(freespace_planning_algorithms_no_obs-test
3938
test/src/test_freespace_planning_algorithms_no_obstacles.cpp
4039
)
41-
target_link_libraries(freespace_planning_algorithms_no_obstacles-test
40+
target_link_libraries(freespace_planning_algorithms_no_obs-test
4241
freespace_planning_algorithms
4342
)
44-
find_package(ament_cmake_ros REQUIRED)
4543
ament_add_gtest(rrtstar_core_informed-test
4644
test/src/test_rrtstar_core_informed.cpp
4745
)

planning/freespace_planning_algorithms/test/src/test_freespace_planning_algorithms.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ nav_msgs::msg::OccupancyGrid construct_cost_map(
134134
}
135135
}
136136
}
137-
return costmap_msg;
138-
137+
139138
return costmap_msg;
140139
}
141140

@@ -210,9 +209,11 @@ std::unique_ptr<fpa::AbstractPlanningAlgorithm> configure_astar(bool use_multi)
210209
// configure astar param
211210
const bool only_behind_solutions = false;
212211
const bool use_back = true;
212+
const bool use_curve_weight = true;
213+
const bool use_complete_astar = true;
213214
const double distance_heuristic_weight = 1.0;
214215
const auto astar_param =
215-
fpa::AstarParam{only_behind_solutions, use_back, distance_heuristic_weight};
216+
fpa::AstarParam{only_behind_solutions, use_back, use_curve_weight, use_complete_astar, distance_heuristic_weight};
216217

217218
auto algo = std::make_unique<fpa::AstarSearch>(planner_common_param, vehicle_shape, astar_param);
218219
return algo;

0 commit comments

Comments
 (0)