Skip to content

Commit

Permalink
fix: CKF does an extra copy on the fitted state (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Oct 28, 2023
1 parent 0e44bd2 commit 9ba6e12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ class CombinatorialKalmanFilter {
}
result.lastError = res.error();
} else {
auto fittedState = *res;
const auto& fittedState = *res;
// Assign the fitted parameters
result.fittedParameters.emplace(
result.lastMeasurementIndices.at(result.iSmoothed),
Expand Down

0 comments on commit 9ba6e12

Please sign in to comment.