Skip to content

Commit

Permalink
Set iCubGazeboV2_5 model by default in the torqueControlBalancingWith…
Browse files Browse the repository at this point in the history
…Simu.mdl model init
  • Loading branch information
nunoguedelha committed May 11, 2021
1 parent 85aefc5 commit ad0088b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
switch(getenv('YARP_ROBOT_NAME'))
case 'iCubGazeboV2_5'
otherwise
error(['Unsupported robot model. Supported models are listed below:',repmat('\n- %s',[1 numel(supportedMmodels)])],supportedMmodels{:});
warning(['Unsupported robot model. Supported models are listed below:',repmat('\n- %s',[1 numel(supportedMmodels)])],supportedMmodels{:});
setenv('YARP_ROBOT_NAME','iCubGazeboV2_5');
warning('Setting the default model iCubGazeboV2_5.');
end
run(strcat(MODEL_PATH,'/app/robots/',getenv('YARP_ROBOT_NAME'),'/configRobot.m'));
run(strcat(MODEL_PATH,'/app/robots/',getenv('YARP_ROBOT_NAME'),'/configStateMachine.m'));
Expand Down

0 comments on commit ad0088b

Please sign in to comment.