Skip to content

Commit

Permalink
Add mjv_copyModel to copy mjModel, skipping large arrays not requ…
Browse files Browse the repository at this point in the history
…ired for abstract visualization.

This functionality is meant for fast copying of `mjModel` when synchronizing the visualization state, as in the Python passive viewer.

PiperOrigin-RevId: 699199743
Change-Id: Idb71dbf8702c5445626a779d6972e4f2d5d85f63
  • Loading branch information
yuvaltassa authored and copybara-github committed Nov 22, 2024
1 parent 94f7407 commit f44c219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm_control/autowrap/header_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _nested_ifn_else(ifn_, pred, else_, endif, match_if_true, match_if_false):
# ------------------------------------------------------------------------------
(LPAREN, RPAREN, LBRACK, RBRACK, LBRACE, RBRACE, SEMI, COMMA, EQUAL, FSLASH,
BSLASH) = list(map(pp.Suppress, "()[]{};,=/\\"))
X = (pp.Keyword("X") | pp.Keyword("XMJV")).suppress()
X = (pp.Keyword("X") | pp.Keyword("XMJV") | pp.Keyword("XNV")).suppress()
EOL = pp.LineEnd().suppress()

# Comments, continuation.
Expand Down

0 comments on commit f44c219

Please sign in to comment.