Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Properly initialize Sleipnir cancellation flag (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Feb 16, 2024
1 parent 575826e commit 2a8a9d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/optimization/SleipnirOpti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ void SleipnirOpti::SetInitial(trajopt::SleipnirExpr& expr, double value) {
}

void SleipnirOpti::Solve() {
GetCancellationFlag() = 0;
opti.Callback([](const sleipnir::SolverIterationInfo&) -> bool {
return trajopt::GetCancellationFlag();
});
Expand Down

0 comments on commit 2a8a9d7

Please sign in to comment.