Skip to content
Permalink
Browse files

add check that env.sh is sourced

  • Loading branch information...
giaf committed Jun 2, 2019
1 parent 05514c1 commit 24030f85659f01ba47b48f3f1d573e1ce8c38c7d
@@ -10,6 +10,9 @@ else
exit
fi

# check that this file is run
export ENV_RUN=true

# if acados folder not specified assume parent of this folder
ACADOS_INSTALL_DIR=${ACADOS_INSTALL_DIR:-"$(pwd)/../../.."}
export ACADOS_INSTALL_DIR
@@ -2,6 +2,17 @@
clear all



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% handy arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -10,6 +10,9 @@ else
exit
fi

# check that this file is run
export ENV_RUN=true

# if acados folder not specified assume parent of this folder
ACADOS_INSTALL_DIR=${ACADOS_INSTALL_DIR:-"$(pwd)/../../.."}
export ACADOS_INSTALL_DIR
@@ -2,6 +2,17 @@
clear all



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% handy arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -10,6 +10,9 @@ else
exit
fi

# check that this file is run
export ENV_RUN=true

# if acados folder not specified assume parent of this folder
ACADOS_INSTALL_DIR=${ACADOS_INSTALL_DIR:-"$(pwd)/../../.."}
export ACADOS_INSTALL_DIR
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -24,7 +34,7 @@
qp_solver_pcond_N = 5;
qp_solver_pcond_ric_alg = 0;
qp_solver_ric_alg = 0;
qp_solver_warm_start = 0;
qp_solver_warm_start = 2;
%sim_method = 'erk';
sim_method = 'irk';
sim_method_num_stages = 4;
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -10,6 +10,9 @@ else
exit
fi

# check that this file is run
export ENV_RUN=true

# if acados folder not specified assume parent of this folder
ACADOS_INSTALL_DIR=${ACADOS_INSTALL_DIR:-"$(pwd)/../../.."}
export ACADOS_INSTALL_DIR
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



%% arguments
compile_mex = 'true';
codgen_model = 'true';
@@ -3,6 +3,16 @@



% check that env.sh has been run
env_run = getenv('ENV_RUN');
if (~strcmp(env_run, 'true'))
disp('ERROR: env.sh has not been sourced! Before executing this example, run:');
disp('source env.sh');
return;
end



% load sim data
load testSim.mat

0 comments on commit 24030f8

Please sign in to comment.
You can’t perform that action at this time.