Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using absolute paths instead of relative ones #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alphaville
Copy link
Member

I introduced a function called get_nmpc_codegen_matlab_rootdir which returns the path to the root directory of nmpc-codegen-matlab.

It's unclear to me how to obtain the root directory of nmpc-codegen.

One idea is that if the user has got the code from github using git clone --recursive, then the nmpc-codegen is a submodule which is found in {nmpc-codegen-matlab-rootdir}/kernel/.

using absolute paths in demos
@MelisWillem
Copy link

The short version is that the demos are just demos. They are not suposed to be very generic/dynamic just illustrate how the user can use the nmpc-framework to generate controllers.

I think this was just a case of me somehow forgetting to adjust a path in the demo's when moving the repo's into the new submodule structure. Il think about this pull request, not sure if we should make it dynamic.

@MelisWillem
Copy link

i just ran the demos everything works fine, did you run demos/TwoCircles from the demos folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants