Skip to content

Commit

Permalink
fix(ekf_localizer): fix bug in autowarefoundation#5054 (autowarefound…
Browse files Browse the repository at this point in the history
…ation#5066)

* fix(ekf_localizer): fix bug in autowarefoundation#5054

Signed-off-by: kminoda <[email protected]>

* fix bug

Signed-off-by: kminoda <[email protected]>

---------

Signed-off-by: kminoda <[email protected]>
  • Loading branch information
kminoda committed Sep 22, 2023
1 parent 6a81ed5 commit c6001e9
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 (std::abs(msg->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 c6001e9

Please sign in to comment.