Skip to content

Commit

Permalink
Delete something unnecessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Feb 25, 2024
1 parent 60a22a7 commit 471fc79
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rm_shooter_controllers/src/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,19 +187,13 @@ void Controller::push(const ros::Time& time, const ros::Duration& period)
{
if (ctrl_friction_l->joint_.getVelocity() < push_wheel_speed_threshold_ * ctrl_friction_l->command_ ||
ctrl_friction_l->joint_.getVelocity() <= M_PI)
{
friction_rotate_state = false;
break;
}
}
for (auto& ctrl_friction_r : ctrls_friction_r_)
{
if (ctrl_friction_r->joint_.getVelocity() > push_wheel_speed_threshold_ * ctrl_friction_r->command_ ||
ctrl_friction_r->joint_.getVelocity() >= -M_PI)
{
friction_rotate_state = false;
break;
}
}
if ((cmd_.wheel_speed == 0. || friction_rotate_state) && (time - last_shoot_time_).toSec() >= 1. / cmd_.hz)
{ // Time to shoot!!!
Expand Down

0 comments on commit 471fc79

Please sign in to comment.