Skip to content

Commit

Permalink
Use direct vector access
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
christophfroehlich and saikishor authored Sep 1, 2023
1 parent f1a46e1 commit c42f0ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ void JointTrajectoryController::update_pids()
for (size_t i = 0; i < dof_; ++i)
{
const auto & gains = params_.gains.joints_map.at(params_.joints[i]);
if (pids_.at(i))
if (pids_[i])
{
// update PIDs with gains from ROS parameters
pids_[i]->setGains(gains.p, gains.i, gains.d, gains.i_clamp, -gains.i_clamp);
Expand Down

0 comments on commit c42f0ea

Please sign in to comment.