Skip to content

Commit

Permalink
This PR fixes issue #74: language incompatibility in DQ_KinematicCont…
Browse files Browse the repository at this point in the history
…roller not resetting the stable region flag (#111)

* [DQ_KinematicController.m] Fixed 'reset_stability_counter' method not reseting the property 'system_reached_stable_region_'.

* [DQ_KinematicController.m] Comment update.

* [DQ_KinematicController.m] Updated copyright and added comment of modifications.

* [DQ_KinematicController.m] Updated email addresses.
  • Loading branch information
ffasilva authored Aug 16, 2024
1 parent 71b036b commit 74b5ffc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions robot_control/DQ_KinematicController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
% DQ_TaskspaceQuadraticProgrammingController.


% (C) Copyright 2011-2019 DQ Robotics Developers
% (C) Copyright 2011-2024 DQ Robotics Developers
%
% This file is part of DQ Robotics.
%
Expand All @@ -60,7 +60,14 @@
% DQ Robotics website: dqrobotics.github.io
%
% Contributors to this file:
% Bruno Vihena Adorno - adorno@ufmg.br
% 1. Bruno Vihena Adorno - adorno@ieee.org
% - Responsible for the original implementation
% 2. Frederico Fernandes Afonso Silva - frederico.silva@ieee.org
% - Modified the 'reset_stability_counter()' method to ensure
% compatibility with its C++ version:
% - The flag 'system_reached_stable_region_' is now reset to
% 'false'.

classdef DQ_KinematicController < handle
properties (Access=protected)
% Controlled primitive attached to the end-effector. It is
Expand Down Expand Up @@ -134,8 +141,10 @@
end

function reset_stability_counter(obj)
% Reset the stability counter to zero
% Reset the stability counter to zero and the flag indicating that
% the system has reached a stable region to false.
obj.stability_counter = 0;
obj.system_reached_stable_region_ = false;
end

function set_stability_counter_max(obj, max)
Expand Down

0 comments on commit 74b5ffc

Please sign in to comment.