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 73938f5 commit c0b3058
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 @@ -39,8 +39,8 @@ EntityBase::EntityBase(
hdmap_utils_ptr_(hdmap_utils_ptr)
{
job_list_.append(
[this](double delta_time) {
traveled_distance_ += std::abs(getCurrentTwist().linear.x) * delta_time;
[this](double) {
traveled_distance_ += std::abs(getCurrentTwist().linear.x) * step_time_;
return false;
},
[this]() {}, job::Type::TRAVELED_DISTANCE, true, job::Event::POST_UPDATE);
Expand Down

0 comments on commit c0b3058

Please sign in to comment.