Skip to content

Commit

Permalink
Revised the method for obtaining time.
Browse files Browse the repository at this point in the history
  • Loading branch information
TakanoTaiga committed Oct 3, 2024
1 parent 92068f3 commit af093fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulation/traffic_simulator/src/entity/entity_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ EntityBase::EntityBase(
}

job_list_.append(
[this](double delta_time) {
[this](double) {
if (std::abs(getCurrentTwist().linear.x) <= std::numeric_limits<double>::epsilon()) {
stand_still_duration_ += delta_time;
stand_still_duration_ += step_time_;
} else {
stand_still_duration_ = 0.0;
}
Expand Down

0 comments on commit af093fc

Please sign in to comment.