Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions vortex_utils/include/vortex/utils/waypoint_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct LandmarkConvergenceGoal {
WaypointMode mode;
double convergence_threshold{0.1};
double dead_reckoning_threshold{0.5};
double track_loss_timeout_sec{10.0};
};

/**
Expand Down
8 changes: 7 additions & 1 deletion vortex_utils/src/waypoint_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,17 @@ LandmarkConvergenceGoal load_landmark_goal_from_yaml(
entry["dead_reckoning_threshold"].as<double>();
}

double track_loss_timeout_sec = 10.0;
if (entry["track_loss_timeout_sec"]) {
track_loss_timeout_sec = entry["track_loss_timeout_sec"].as<double>();
}

return LandmarkConvergenceGoal{
.convergence_offset = convergence_offset,
.mode = mode,
.convergence_threshold = convergence_threshold,
.dead_reckoning_threshold = dead_reckoning_threshold};
.dead_reckoning_threshold = dead_reckoning_threshold,
.track_loss_timeout_sec = track_loss_timeout_sec};
}

} // namespace vortex::utils::waypoints
Loading