Skip to content

Commit

Permalink
Added the deprecated method is_stable() to ensure compatibility with …
Browse files Browse the repository at this point in the history
…current code.
  • Loading branch information
Bruno Vilhena Adorno committed Feb 13, 2020
1 parent e0a2a29 commit 386e70f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion robot_control/DQ_KinematicController.m
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,18 @@ function set_primitive_to_effector(obj, primitive)
end

function ret = system_reached_stable_region(controller)
% Return true if the system has reached a stable region, false otherwise.
% Return true if the closed-loop system trajectories have converged to a
% positive invariant set (i.e., to a set from where they will not
% leave anymore). In the case of set-point control, for instance,
% it means that the task error will not decrease anymore.
ret = controller.system_reached_stable_region_;
end

function ret = is_stable(controller)
% Deprecated function that will be removed in version 20.04. It has
% been replaced by system_reached_stable_region().
warning(['DEPRECATED FUNCTION. It will be removed in version'...
' 20.04. Please use system_reached_stable_region() instead']);
ret = controller.system_reached_stable_region_;
end

Expand Down

0 comments on commit 386e70f

Please sign in to comment.