Skip to content

Commit

Permalink
Enforce limits before calling write method of the hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 23, 2024
1 parent bda53ee commit d356f30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,14 @@ HardwareReadWriteStatus ResourceManager::write(
}
};

// Enforce limits on the commands
for (auto & hw_limiter : resource_storage_->hw_command_limiter_)
{
for (auto & joint_limiters : hw_limiter.second)
{
joint_limiters.enforce_limits(period);
}
}
write_components(resource_storage_->actuators_);
write_components(resource_storage_->systems_);

Expand Down

0 comments on commit d356f30

Please sign in to comment.