You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added to my MATLAB path the folder src in nmpc-codegen-matlab. I then cd to nmpc-codegen-matlab and run the demo script TwoCircTrailer which gives me the following error
Error using copyfile
cp: cannot stat ‘/home/chung/Documents/NMPCCodegen/old_code/PANOC/buffer.c’: No such file or directory
Error in nmpccodegen.tools.Bootstrapper/copy_over_file (line 148)
copyfile(src_location, dst_location, 'f');
Error in nmpccodegen.tools.Bootstrapper/generate_PANOC_lib (line 69)
nmpccodegen.tools.Bootstrapper.copy_over_file(src_location,dst_location,overwrite);
Error in nmpccodegen.tools.Bootstrapper.bootstrap (line 23)
nmpccodegen.tools.Bootstrapper.generate_PANOC_lib(output_location_controller,location_nmpc_repo,overwrite)
Error in prepare_demo_trailer (line 8)
nmpccodegen.tools.Bootstrapper.bootstrap(trailer_controller_output_location, true);
Error in TwoCircTrailer (line 16)
trailer_controller = prepare_demo_trailer(controller_folder_name,step_size,Q,R,Q_terminal,R_terminal);
I see that the third line in this file is
addpath(genpath('../../src_matlab'));
The use of relative paths is not very reliable. I guess I need to add nmpc-codegen/old_code/src_matlab to the path. I did that manually, but this didn't solve the issue.
I see, however, that it looks for buffer.c at /home/chung/Documents/NMPCCodegen/old_code/PANOC/buffer.c, while the correct path should be /home/chung/Documents/NMPCCodegen/PANOC/buffer.c.
The text was updated successfully, but these errors were encountered:
yea your right, i used relative path here for ease of use for the user, maybe i should use the one already in the path and display an error to the user that he should add the lib to the path
I have added to my MATLAB path the folder
src
innmpc-codegen-matlab
. I thencd
tonmpc-codegen-matlab
and run the demo scriptTwoCircTrailer
which gives me the following errorI see that the third line in this file is
The use of relative paths is not very reliable. I guess I need to add
nmpc-codegen/old_code/src_matlab
to the path. I did that manually, but this didn't solve the issue.I see, however, that it looks for
buffer.c
at/home/chung/Documents/NMPCCodegen/old_code/PANOC/buffer.c
, while the correct path should be/home/chung/Documents/NMPCCodegen/PANOC/buffer.c
.The text was updated successfully, but these errors were encountered: