Skip to content

Commit

Permalink
Fix Update call
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Nov 2, 2021
1 parent d430382 commit 43ec27c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/systems/force_torque/ForceTorque.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ void ForceTorque::PostUpdate(const UpdateInfo &_info,

for (auto &it : this->dataPtr->entitySensorMap)
{
// Update measurement time
auto time = math::durationToSecNsec(_info.simTime);
static_cast<sensors::Sensor *>(it.second.get())->Update(
math::secNsecToDuration(time.first, time.second), false);
it.second.get()->sensors::Sensor::Update(_info.simTime, false);
}
}

Expand Down

0 comments on commit 43ec27c

Please sign in to comment.