Skip to content

Commit 153fb4e

Browse files
authored
Fix build tests (#37)
1 parent b6d1d52 commit 153fb4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terrain_navigation_ros/src/terrain_planner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void TerrainPlanner::plannerloopCallback(const ros::TimerEvent &event) {
266266
const std::lock_guard<std::mutex> lock(goal_mutex_);
267267
if (local_origin_received_ && !map_initialized_) {
268268
std::cout << "[TerrainPlanner] Local origin received, loading map" << std::endl;
269-
map_initialized_ = terrain_map_->Load(map_path_, true, map_color_path_);
269+
map_initialized_ = terrain_map_->Load(map_path_, map_color_path_);
270270
terrain_map_->AddLayerDistanceTransform(min_elevation_, "distance_surface");
271271
terrain_map_->AddLayerDistanceTransform(max_elevation_, "max_elevation");
272272
terrain_map_->AddLayerHorizontalDistanceTransform(goal_radius_, "ics_+", "distance_surface");
@@ -890,7 +890,7 @@ bool TerrainPlanner::setLocationCallback(planner_msgs::SetString::Request &req,
890890
/// TODO: Add location from the new set location service
891891
map_path_ = resource_path_ + "/" + set_location + ".tif";
892892
map_color_path_ = resource_path_ + "/" + set_location + "_color.tif";
893-
bool result = terrain_map_->Load(map_path_, align_location, map_color_path_);
893+
bool result = terrain_map_->Load(map_path_, map_color_path_);
894894
std::cout << "[TerrainPlanner] Computing distance transforms" << std::endl;
895895
terrain_map_->AddLayerDistanceTransform(min_elevation_, "distance_surface");
896896
terrain_map_->AddLayerDistanceTransform(max_elevation_, "max_elevation");

0 commit comments

Comments
 (0)