From c0b3058a43a02e787528c4425c723346c8d78f32 Mon Sep 17 00:00:00 2001 From: Taiga Takano Date: Thu, 3 Oct 2024 16:46:41 +0900 Subject: [PATCH] Revised the method for obtaining time. --- simulation/traffic_simulator/src/entity/entity_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simulation/traffic_simulator/src/entity/entity_base.cpp b/simulation/traffic_simulator/src/entity/entity_base.cpp index 71ea843944a..426b4d4b745 100644 --- a/simulation/traffic_simulator/src/entity/entity_base.cpp +++ b/simulation/traffic_simulator/src/entity/entity_base.cpp @@ -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);