Skip to content

Commit

Permalink
Preventing from publishing nans.
Browse files Browse the repository at this point in the history
  • Loading branch information
firephinx committed Sep 13, 2024
1 parent c7cc2b3 commit 5c457e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion franka-interface/src/skills/impedance_control_skill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ void ImpedanceControlSkill::execute_skill_on_franka(run_loop* run_loop,
for(int i = 0; i < 7; i++) {
current_joint_torques_[i] = feedback_controller_->tau_d_array_[i];
}

if (current_period_ == 0.0) {
current_period_ = 0.001;
}
limit_current_joint_torques(current_period_);

for(int i = 0; i < 7; i++) {
Expand Down

0 comments on commit 5c457e2

Please sign in to comment.