Skip to content

Commit

Permalink
Tidying up default terrain and typechecks in frames
Browse files Browse the repository at this point in the history
  • Loading branch information
gizatt committed Jan 14, 2015
1 parent bfbe70d commit ba1e768
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/IRB140/HandInput.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% hand input coordinate frame
methods
function obj=HandInput(r, ind, name)
typecheck(r,'TimeSteppingRigidBodyManipulator');
typecheck(r,{'TimeSteppingRigidBodyManipulator','RigidBodyManipulator'});
% Inds indicate which element of the overall state frame
% our hand state is.
manipInputFrame = r.getManipulator().getInputFrame();
Expand Down
2 changes: 1 addition & 1 deletion examples/IRB140/HandState.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

methods
function obj=HandState(r, ind, name)
typecheck(r,'TimeSteppingRigidBodyManipulator');
typecheck(r,{'TimeSteppingRigidBodyManipulator','RigidBodyManipulator'});
% Inds indicate which element of the overall state frame
% our hand state is.
manipStateFrame = r.getManipulator().getStateFrame();
Expand Down
5 changes: 1 addition & 4 deletions examples/IRB140/IRB140.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
options.dt = 0.001;
end
if ~isfield(options,'floating')
options.floating = true;
end
if ~isfield(options,'terrain')
options.terrain = RigidBodyFlatTerrain;
options.floating = false;
end
if ~isfield(options,'hands')
options.hands = 'none';
Expand Down
2 changes: 1 addition & 1 deletion examples/IRB140/IRB140Input.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% irb140 input coordinate frame
methods
function obj=IRB140Input(r)
typecheck(r,'TimeSteppingRigidBodyManipulator');
typecheck(r,{'TimeSteppingRigidBodyManipulator','RigidBodyManipulator'});

manipInputFrame = r.getManipulator().getInputFrame();
if (r.hands > 0)
Expand Down
2 changes: 1 addition & 1 deletion examples/IRB140/IRB140State.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

methods
function obj=IRB140State(r)
typecheck(r,'TimeSteppingRigidBodyManipulator');
typecheck(r,{'TimeSteppingRigidBodyManipulator','RigidBodyManipulator'});
manipStateFrame = r.getManipulator().getStateFrame();
if (r.hands > 0)
manipStateFrame = manipStateFrame.getFrameByNum(1);
Expand Down

0 comments on commit ba1e768

Please sign in to comment.