Skip to content

Commit

Permalink
Fix regressions from grid_map_geo in terrain_planner_benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeyoung-Lim committed Jun 14, 2024
1 parent 18cd37e commit 73851c7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion terrain_planner_benchmark/src/ompl_benchmark_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int main(int argc, char **argv) {
nh_private.param<std::string>("output_file_path", output_file_path, "");

auto terrain_map = std::make_shared<TerrainMap>();
terrain_map->initializeFromGeotiff(map_path, false);
terrain_map->initializeFromGeotiff(map_path);
if (!color_file_path.empty()) { // Load color layer if the color path is nonempty
terrain_map->addColorFromGeotiff(color_file_path);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int main(int argc, char** argv) {

// Load terrain map from defined tif paths
auto terrain_map = std::make_shared<TerrainMap>();
terrain_map->initializeFromGeotiff(map_path, false);
terrain_map->initializeFromGeotiff(map_path);
if (!color_file_path.empty()) { // Load color layer if the color path is nonempty
terrain_map->addColorFromGeotiff(color_file_path);
}
Expand Down
4 changes: 2 additions & 2 deletions terrain_planner_benchmark/src/test_ics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int main(int argc, char** argv) {
nh_private.param<bool>("visualize", visualize, true);

std::shared_ptr<TerrainMap> reference_map = std::make_shared<TerrainMap>();
reference_map->Load(map_path, false, map_color_path);
reference_map->Load(map_path, map_color_path);
reference_map->AddLayerDistanceTransform(50.0, "distance_surface");
reference_map->AddLayerDistanceTransform(120.0, "max_elevation");
double width = reference_map->getGridMap().getLength().y();
Expand All @@ -261,7 +261,7 @@ int main(int argc, char** argv) {
std::cout << "Valid circlular terminal state coverage" << std::endl;

std::shared_ptr<TerrainMap> terrain_map = std::make_shared<TerrainMap>();
terrain_map->Load(map_path, false, map_color_path);
terrain_map->Load(map_path, map_color_path);
terrain_map->AddLayerDistanceTransform(50.0, "distance_surface");
terrain_map->AddLayerDistanceTransform(120.0, "max_elevation");

Expand Down
2 changes: 1 addition & 1 deletion terrain_planner_benchmark/src/test_rrt_circle_goal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ int main(int argc, char** argv) {

// Load terrain map from defined tif paths
auto terrain_map = std::make_shared<TerrainMap>();
terrain_map->initializeFromGeotiff(map_path, false);
terrain_map->initializeFromGeotiff(map_path);
if (!color_file_path.empty()) { // Load color layer if the color path is nonempty
terrain_map->addColorFromGeotiff(color_file_path);
}
Expand Down
2 changes: 1 addition & 1 deletion terrain_planner_benchmark/src/test_rrt_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int main(int argc, char** argv) {

// Load terrain map from defined tif paths
auto terrain_map = std::make_shared<TerrainMap>();
terrain_map->initializeFromGeotiff(map_path, false);
terrain_map->initializeFromGeotiff(map_path);
if (!color_file_path.empty()) { // Load color layer if the color path is nonempty
terrain_map->addColorFromGeotiff(color_file_path);
}
Expand Down
2 changes: 1 addition & 1 deletion terrain_planner_benchmark/src/test_rrt_replanning_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int main(int argc, char** argv) {

// Load terrain map from defined tif paths
auto terrain_map = std::make_shared<TerrainMap>();
terrain_map->initializeFromGeotiff(map_path, false);
terrain_map->initializeFromGeotiff(map_path);
if (!color_file_path.empty()) { // Load color layer if the color path is nonempty
terrain_map->addColorFromGeotiff(color_file_path);
}
Expand Down

0 comments on commit 73851c7

Please sign in to comment.