Skip to content

Commit

Permalink
Rename updateGains method
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 10, 2023
1 parent 2bdc162 commit b9315a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class PidTrajectoryPlugin : public TrajectoryControllerBase
/**
* @brief parse PID gains from parameter struct
*/
void updateGains();
void parseGains();

// number of command joints
size_t num_cmd_joints_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool PidTrajectoryPlugin::configure()
bool PidTrajectoryPlugin::activate()
{
params_ = param_listener_->get_params();
updateGains();
parseGains();
return true;
};

Expand All @@ -72,13 +72,13 @@ bool PidTrajectoryPlugin::updateGainsRT()
if (param_listener_->is_old(params_))
{
params_ = param_listener_->get_params();
updateGains();
parseGains();
}

return true;
}

void PidTrajectoryPlugin::updateGains()
void PidTrajectoryPlugin::parseGains()
{
for (size_t i = 0; i < num_cmd_joints_; ++i)
{
Expand Down

0 comments on commit b9315a7

Please sign in to comment.