We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309b731 commit 133d263Copy full SHA for 133d263
src/ros_filter.cpp
@@ -3345,7 +3345,7 @@ bool RosFilter<T>::revertTo(const rclcpp::Time & time)
3345
// If we have a valid reversion state, revert
3346
if (last_history_state) {
3347
// Reset filter to the latest state from the queue.
3348
- const FilterStatePtr & state = filter_state_history_.back();
+ const FilterStatePtr & state = last_history_state;
3349
filter_.setState(state->state_);
3350
filter_.setEstimateErrorCovariance(state->estimate_error_covariance_);
3351
filter_.setLastMeasurementTime(state->last_measurement_time_);
0 commit comments