Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build tests #37

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions terrain_navigation_ros/src/terrain_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void TerrainPlanner::plannerloopCallback(const ros::TimerEvent &event) {
const std::lock_guard<std::mutex> lock(goal_mutex_);
if (local_origin_received_ && !map_initialized_) {
std::cout << "[TerrainPlanner] Local origin received, loading map" << std::endl;
map_initialized_ = terrain_map_->Load(map_path_, true, map_color_path_);
map_initialized_ = terrain_map_->Load(map_path_, map_color_path_);
terrain_map_->AddLayerDistanceTransform(min_elevation_, "distance_surface");
terrain_map_->AddLayerDistanceTransform(max_elevation_, "max_elevation");
terrain_map_->AddLayerHorizontalDistanceTransform(goal_radius_, "ics_+", "distance_surface");
Expand Down Expand Up @@ -890,7 +890,7 @@ bool TerrainPlanner::setLocationCallback(planner_msgs::SetString::Request &req,
/// TODO: Add location from the new set location service
map_path_ = resource_path_ + "/" + set_location + ".tif";
map_color_path_ = resource_path_ + "/" + set_location + "_color.tif";
bool result = terrain_map_->Load(map_path_, align_location, map_color_path_);
bool result = terrain_map_->Load(map_path_, map_color_path_);
std::cout << "[TerrainPlanner] Computing distance transforms" << std::endl;
terrain_map_->AddLayerDistanceTransform(min_elevation_, "distance_surface");
terrain_map_->AddLayerDistanceTransform(max_elevation_, "max_elevation");
Expand Down
Loading