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

Re-generation and cleanup of C-code #6

Closed
AndyZe opened this issue May 4, 2021 · 1 comment
Closed

Re-generation and cleanup of C-code #6

AndyZe opened this issue May 4, 2021 · 1 comment

Comments

@AndyZe
Copy link
Contributor

AndyZe commented May 4, 2021

I figured I would start an issue to discuss re-generating and cleanup of the C-code. Hopefully so we can start using it in MoveIt.

There are some annoying warnings in the generated C-code:

// Student License - for use by students to meet course requirements and
// perform academic research at degree granting institutions only. Not
// for government, commercial, or other organizational use.

To get rid of these warnings, we could re-run Coder on a commercially-licensed version of MATLAB. Maybe you can give specific instructions for how to run coder? Like, cd to this filepath. Run this: ...

@MariusBeul
Copy link

MariusBeul commented May 5, 2021

For generating a static library:

  1. Clone the repository
    git clone git@github.com:AIS-Bonn/TopiCo.git
  2. Start MATLAB and open
    /TopiCo/MATLAB/generate_code.m
  3. Change
    cfg.GenCodeOnly = true; to cfg.GenCodeOnly = false;
  4. Run (and ignore the warnings)
    generate_code.m
  5. The library is located here:
    /TopiCo/MATLAB/codegen/lib/topico_wrapper/topico_wrapper.a

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

No branches or pull requests

2 participants