Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflect matlab-whole-body-simulator#49 (removal of dependency from +wbc) #128

Merged
merged 4 commits into from
May 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
% if TRUE, the controller will STOP if the joints hit the joints limits
% and/or if the (unsigned) difference between two consecutive joints
% encoders measurements is greater than a given threshold.
Config.EMERGENCY_STOP_WITH_JOINTS_LIMITS = false;
Config.EMERGENCY_STOP_WITH_ENCODER_SPIKES = false;
Config.EVENT_WITH_JOINTS_LIMITS = EventWithJointLimits.None;
Config.EVENT_WITH_ENCODER_SPIKES = EventWithEncoderSpikes.Warning;

% Config.USE_MOTOR_REFLECTED_INERTIA: if set to true, motors reflected
% inertias are included in the system mass matrix. If
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
% Initial condition of iCub and for the integrators.
initialConditions.base_position = [0; 0; 0.619];
initialConditions.orientation = diag([-1, -1, 1]);
initialConditions.w_H_b = mwbs.State.Rp2H(initialConditions.orientation, initialConditions.base_position);
initialConditions.w_H_b = mwbs.Utils.Rp2H(initialConditions.orientation, initialConditions.base_position);

% joint (inital) position
initialConditions.s = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
classdef EventWithEncoderSpikes < Simulink.IntEnumType
%EVENTWITHENCODERSPIKES Class for selecting a None, Warning or EmergencyStop signal
%
% Class for selecting a None, Warning or EmergencyStop signal triggered by an encoder spike
% event.

enumeration
None(0)
Warning(1)
EmergencyStop(2)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
classdef EventWithJointLimits < Simulink.IntEnumType
%EVENTWITHJOINTLIMITS Class for selecting a None, Warning or EmergencyStop signal
%
% Class for selecting a None, Warning or EmergencyStop signal triggered by the joints hitting
% the limits.

enumeration
None(0)
Warning(1)
EmergencyStop(2)
end
end
Loading