Skip to content

Commit

Permalink
fixed the code error.
Browse files Browse the repository at this point in the history
  • Loading branch information
TakanoTaiga committed Oct 2, 2024
1 parent 077d611 commit 6e0a727
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 @@ -41,9 +41,9 @@ EntityBase::EntityBase(
job_list_.append(
[this](double delta_time) {
traveled_distance_ += std::abs(getCurrentTwist().linear.x) * delta_time;
return true;
return false;
},
[this]() { return false; }, job::Type::TRAVELED_DISTANCE, true, job::Event::POST_UPDATE);
[this]() {}, job::Type::TRAVELED_DISTANCE, true, job::Event::POST_UPDATE);

if (name != static_cast<EntityStatus>(entity_status).name) {
THROW_SIMULATION_ERROR(
Expand Down

0 comments on commit 6e0a727

Please sign in to comment.