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

Trying to access contact in MjModel.data #29

Closed
mjm522 opened this issue Feb 2, 2017 · 1 comment
Closed

Trying to access contact in MjModel.data #29

mjm522 opened this issue Feb 2, 2017 · 1 comment

Comments

@mjm522
Copy link

mjm522 commented Feb 2, 2017

Hi,

How can I access activate the "contact" field in MjModel.data? It seems inaccessible.

@mjm522
Copy link
Author

mjm522 commented Feb 7, 2017

So anyone who wants to access it the contact structure, it needs to be accessed like this.

model = mjcore.MjModel(<xml_path>)

model.data_ptr.contents.contact.contents.[what ever field you are interested in]

@mjm522 mjm522 closed this as completed Feb 7, 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

1 participant