Skip to content

Commit

Permalink
fix(tier4_autoware_utils): remove redundant codes
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota committed May 19, 2022
1 parent 69e5364 commit 9a85dcf
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ bool VehicleStopChecker::isVehicleStopped(const double stop_duration = 0.0) cons
return false;
}

const auto time_buffer_front = now - twist_buffer_.front().header.stamp;
if (time_buffer_front.seconds() > stop_duration) {
return twist_buffer_.front().twist.linear.x < stop_velocity;
}

// Get velocities within stop_duration
for (const auto & velocity : twist_buffer_) {
if (stop_velocity <= velocity.twist.linear.x) {
Expand Down

0 comments on commit 9a85dcf

Please sign in to comment.