Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#1057 from RussTedrake/clear_all_bug
Browse files Browse the repository at this point in the history
work-around for `clear all` matlab bug.
  • Loading branch information
RussTedrake committed Apr 27, 2015
2 parents ba0a6bd + f1ac571 commit b2e64aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions systems/frames/CoordinateFrame.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
dim=0; % scalar dimension of this coordinate system
transforms={}; % handles to CoordinateTransform objects

name_hash; % unique hash of the string name
coordinates={}; % list of coordinate names

prefix; % a vector character prefix used for the msspoly variables, or a vector of size dim listing prefixes for each variable
Expand Down Expand Up @@ -39,7 +38,6 @@

typecheck(name,'char');
obj.name = name;
obj.name_hash = java.lang.String(obj.name).hashCode();

typecheck(dim,'double');
sizecheck(dim,[1 1]);
Expand Down
6 changes: 1 addition & 5 deletions util/getDrakePath.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
persistent myroot;

if (isempty(myroot))
known_file = which('LinearSystem');
if isempty(known_file)
error('Can''t find drake root. Did you call addpath_drake?');
end
myroot = fileparts(fileparts(known_file));
myroot = fileparts(fileparts(which('getDrakePath')));
end
root = myroot;

0 comments on commit b2e64aa

Please sign in to comment.