alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
512 stars 53 forks source link

Not able to run open_nav example in Matlab (Windows 10) #253

Closed sandeep026 closed 1 year ago

sandeep026 commented 2 years ago

Describe the bug

Not able to run open_nav example in Matlab (Windows 10) but other examples are working as expected. The following error is shown.

example_open_nav
error: failed to parse manifest at `C:\Users\sunil\Documents\optimization-engine-master\build\navigation\Cargo.toml`

Caused by:
  no targets specified in the manifest
  either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
Error using copyfile
The system cannot find the path specified.

Error in OpEnOptimizerBuilder/build>codegen_head (line 147)
copyfile(head_file_path, main_file);

Error in OpEnOptimizerBuilder/build (line 63)
codegen_head(opEnBuilder);

Error in example_open_nav (line 47)
optimizer = builder.build();
ruairimoran commented 2 years ago

We have identified this problem for Windows users and will be bringing out a new release with this fix very soon.

alphaville commented 2 years ago

@sandeep026 Just a clarification: Could you share your code and the contents of C:\Users\sunil\Documents\optimization-engine-master\build\navigation\Cargo.toml?

sandeep026 commented 2 years ago

The code is the example file in the matlab folder example_open_nav.m The contents of the cargo.toml file are listed below.

cargo.toml

[package] name = "navigation" version = "0.1.0" license = "unspecified" authors = ["P. Sopasakis p.sopasakis@gmail.com", "E. Fresk emil.fresk@gmail.com"] edition = "2018" publish=false

[dependencies] optimization_engine = "0.4.0" icasadi = {path = "./icasadi/"} serde = { version = "1.0", features = ["derive"] } serde_json = "1.0"

sandeep026 commented 2 years ago

Thanks.

On Fri, Dec 3, 2021, 17:29 Pantelis Sopasakis @.***> wrote:

For reference, here is a Python notebook https://colab.research.google.com/drive/1diHoqacIbLG-ojmiABS3JewkHxnZFaf8?usp=sharing with the navigation example using Python bindings (direct interface).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alphaville/optimization-engine/issues/253#issuecomment-985461639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5R7TH6XRDQ3NGUGPTIAHLUPCWKNANCNFSM5JFO56JQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MuXingchui commented 1 year ago

Thanks. On Fri, Dec 3, 2021, 17:29 Pantelis Sopasakis @.***> wrote: For reference, here is a Python notebook https://colab.research.google.com/drive/1diHoqacIbLG-ojmiABS3JewkHxnZFaf8?usp=sharing with the navigation example using Python bindings (direct interface). — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#253 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5R7TH6XRDQ3NGUGPTIAHLUPCWKNANCNFSM5JFO56JQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hi, I meet the same error. Did you fixed the error? If the error has been fixed, could you share your experience?

alphaville commented 1 year ago

This seems to have been resolved in #318