Skip to content

Commit

Permalink
configure now checks for the existence of vrinstall before trying to …
Browse files Browse the repository at this point in the history
…run it, which will prevent an error if the Simulink 3D animation toolbox is not available.

git-svn-id: https://svn.csail.mit.edu/locomotion/robotlib/trunk@5495 c9849af7-e679-4ec6-a44e-fc146a885bd3
  • Loading branch information
mjp committed Mar 6, 2013
1 parent 3f0a3ca commit 89f9b58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ function configure(options)
disp(' SNOPT not found. SNOPT support will be disabled. To re-enable, add the SNOPT matlab folder to your path and rerun configure. SNOPT can be obtained from https://tig.csail.mit.edu/software/ .');
end

conf.vrml_enabled = logical(vrinstall('-check'));
if(exist('vrinstall'))
conf.vrml_enabled = logical(vrinstall('-check'));
else
conf.vrml_enabled=0;
end

conf.sedumi_enabled = logical(exist('sedumi'));
if (conf.sedumi_enabled)
Expand Down

0 comments on commit 89f9b58

Please sign in to comment.