Skip to content

spec add_equality behave differently from mjcf(dm_control) equality.add #2591

Closed Answered by quagla
benthebear93 asked this question in Asking for Help
Discussion options

You must be logged in to vote

So the issue is that when using mjSpec the default anchor position is [0, 1, 0].

This is defaulted to zero in the parser if no anchor is given
https://github.com/google-deepmind/mujoco/blob/main/src/xml/xml_native_reader.cc#L1987

but it needs to be done explicitly in mjSpec:

  eq->data[0] = 0;
  eq->data[1] = 0;
  eq->data[2] = 0;

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@benthebear93
Comment options

Comment options

You must be logged in to vote
1 reply
@benthebear93
Comment options

Comment options

You must be logged in to vote
1 reply
@benthebear93
Comment options

Answer selected by benthebear93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants