Add an introspect module for structs.

Also missing struct fields to the Python bindings that were discovered as a result of the new `introspect` metadata.

PiperOrigin-RevId: 523947396
Change-Id: I367fd2dc8d5fd7e5712a45b70a5c50da51d152e4
This commit is contained in:
Saran Tunyasuvunakool
2023-04-13 02:49:47 -07:00
committed by Copybara-Service
parent bcb19fd85c
commit 2e23594fe8
13 changed files with 6721 additions and 14 deletions
+4
View File
@@ -593,8 +593,11 @@
#define MJDATA_SCALAR \
X( int, nstack ) \
X( int, nbuffer ) \
X( int, nplugin ) \
X( int, pstack ) \
X( int, parena ) \
X( int, maxuse_stack ) \
X( int, maxuse_arena ) \
X( int, maxuse_con ) \
X( int, maxuse_efc ) \
X( int, solver_iter ) \
@@ -606,6 +609,7 @@
X( int, ne ) \
X( int, nf ) \
X( int, nefc ) \
X( int, nnzJ ) \
X( int, ncon ) \
X( mjtNum, time )