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

Expose OSQP Workspace #63

Merged

Conversation

mpowelson
Copy link
Contributor

This is useful so I can do things like this.

    if (solver_.workspace()->info->status_val == -3)
    {
     // Print debugging info
      Eigen::Map<Eigen::VectorXd> primal_certificate(solver_.workspace()->delta_x, num_cnts_, 1);
    }

Copy link
Collaborator

@S-Dafarra S-Dafarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Actually, I realize that passing a const reference to a unique pointer is not the best in terms of ownership handling, but we are doing the same also for the settings and data structure, so no problem with this PR I guess. If @GiulioRomualdi agrees, for me we can merge.

@GiulioRomualdi GiulioRomualdi merged commit 8aa7b4d into robotology:devel Jun 4, 2020
@mpowelson mpowelson deleted the feature/expose_workspace branch June 26, 2020 16:01
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.

3 participants