Skip to content

Commit

Permalink
Modify code specifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jan 23, 2024
1 parent 5d531fa commit 5c31a63
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rm_shooter_controllers/src/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,9 @@ void Controller::update(const ros::Time& time, const ros::Duration& period)
shoot_state_pub_->unlockAndPublish();
}
for (auto& ctrl_friction_l : ctrls_friction_l_)
{
ctrl_friction_l->update(time, period);
}
for (auto& ctrl_friction_r : ctrls_friction_r_)
{
ctrl_friction_r->update(time, period);
}
ctrl_trigger_.update(time, period);
}

Expand All @@ -158,13 +154,9 @@ void Controller::stop(const ros::Time& time, const ros::Duration& period)
ROS_INFO("[Shooter] Enter STOP");

for (auto& ctrl_friction_l : ctrls_friction_l_)
{
ctrl_friction_l->setCommand(0.);
}
for (auto& ctrl_friction_r : ctrls_friction_r_)
{
ctrl_friction_r->setCommand(0.);
}
ctrl_trigger_.setCommand(ctrl_trigger_.joint_.getPosition());
}
}
Expand Down

0 comments on commit 5c31a63

Please sign in to comment.