Skip to content

Commit

Permalink
fix(ekf_localizer): fix bug in autowarefoundation#5054
Browse files Browse the repository at this point in the history
Signed-off-by: kminoda <koji.minoda@tier4.jp>
  • Loading branch information
kminoda committed Sep 21, 2023
1 parent 55fba78 commit d671200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localization/ekf_localizer/src/ekf_localizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void EKFLocalizer::callbackTwistWithCovariance(
{
// Ignore twist if velocity is too small.
// Note that this inequality must not include "equal".
if (msg->twist.twist.linear.x < params_.threshold_observable_velocity_mps) {
if (mstd::abs(sg->twist.twist.linear.x) < params_.threshold_observable_velocity_mps) {
msg->twist.covariance[0 * 6 + 0] = 10000.0;
}
twist_queue_.push(msg);
Expand Down

0 comments on commit d671200

Please sign in to comment.