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

Error "Struct contents reference from a non-struct array object" #17

Closed
ankalou opened this issue Oct 3, 2017 · 4 comments
Closed

Error "Struct contents reference from a non-struct array object" #17

ankalou opened this issue Oct 3, 2017 · 4 comments

Comments

@ankalou
Copy link

ankalou commented Oct 3, 2017

Hi,
I have the following error when trying to run RABBIT's main_opt:
in r_stance = RightStance(rabbit); line 13 of main_opt.m
in domain = addContact(domain,right_sole,fric_coef); line 25 of RightStance.m

The problem is that no geometry parameter is passed to addContact, so when the test line 34 of addContact.m is ran, it returns false (because isempty(geometry)==1). Because of that geometry stays empty and the program fails line 45 at ref = geometry.RefFrame;

I do not understand all of it, but maybe the right test for line 34 would be if ((~isfield(geometry, 'RefFrame')) && isempty(geometry)) ?

Thank you !

@ayonga
Copy link
Owner

ayonga commented Oct 3, 2017

Have you updated to the latest commits? We have some major changes recently, and some commits may introduce unexpected errors. Please let me know if the error occurs again after updating to the latest commit.

@ankalou
Copy link
Author

ankalou commented Oct 3, 2017

Yes, I have pulled the latest changes but the error is still there.
Please ignore my suggestion, I did not understand the code and it only brings more bugs later on.

@ayonga
Copy link
Owner

ayonga commented Oct 3, 2017

Please check out the latest commit. This bug has been fixed.

@ankalou
Copy link
Author

ankalou commented Oct 4, 2017

Thanks a lot, it works now !

@ankalou ankalou closed this as completed Oct 4, 2017
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