Skip to content

Commit

Permalink
Fixed state history reversion (#736)
Browse files Browse the repository at this point in the history
Co-authored-by: Zygfryd Wieszok <[email protected]>
  • Loading branch information
zygfrydw and Zygfryd Wieszok authored Apr 25, 2022
1 parent eb7e922 commit 43ed064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ros_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3342,7 +3342,7 @@ bool RosFilter<T>::revertTo(const rclcpp::Time & time)
// If we have a valid reversion state, revert
if (last_history_state) {
// Reset filter to the latest state from the queue.
const FilterStatePtr & state = filter_state_history_.back();
const FilterStatePtr & state = last_history_state;
filter_.setState(state->state_);
filter_.setEstimateErrorCovariance(state->estimate_error_covariance_);
filter_.setLastMeasurementTime(state->last_measurement_time_);
Expand Down

0 comments on commit 43ed064

Please sign in to comment.