Skip to content

Commit 74b5ffc

Browse files
authored
This PR fixes issue #74: language incompatibility in DQ_KinematicController 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.
1 parent 71b036b commit 74b5ffc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

robot_control/DQ_KinematicController.m

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
% DQ_TaskspaceQuadraticProgrammingController.
4040

4141

42-
% (C) Copyright 2011-2019 DQ Robotics Developers
42+
% (C) Copyright 2011-2024 DQ Robotics Developers
4343
%
4444
% This file is part of DQ Robotics.
4545
%
@@ -60,7 +60,14 @@
6060
% DQ Robotics website: dqrobotics.github.io
6161
%
6262
% Contributors to this file:
63-
% Bruno Vihena Adorno - [email protected]
63+
% 1. Bruno Vihena Adorno - [email protected]
64+
% - Responsible for the original implementation
65+
% 2. Frederico Fernandes Afonso Silva - [email protected]
66+
% - Modified the 'reset_stability_counter()' method to ensure
67+
% compatibility with its C++ version:
68+
% - The flag 'system_reached_stable_region_' is now reset to
69+
% 'false'.
70+
6471
classdef DQ_KinematicController < handle
6572
properties (Access=protected)
6673
% Controlled primitive attached to the end-effector. It is
@@ -134,8 +141,10 @@
134141
end
135142

136143
function reset_stability_counter(obj)
137-
% Reset the stability counter to zero
144+
% Reset the stability counter to zero and the flag indicating that
145+
% the system has reached a stable region to false.
138146
obj.stability_counter = 0;
147+
obj.system_reached_stable_region_ = false;
139148
end
140149

141150
function set_stability_counter_max(obj, max)

0 commit comments

Comments
 (0)