Add policies for global attribute conflict resolution upon attach
For example when loading parent_merge.xml: ``` WARNING: Attach conflict when attaching 'child' to 'parent_merge', policy is 'merge' timestep: parent has 0.005, child has 0.002, taking the minimum iterations: parent has 50, child has 100, taking the maximum flag 'Damper': added from child ``` When loading parent_error.xml: ``` XML Error: Attach conflict when attaching 'child' to 'parent_error', policy is 'error' timestep: parent has 0.005, child has 0.002 iterations: parent has 50, child has 100 Element 'attach', line 10 ``` PiperOrigin-RevId: 933620810 Change-Id: Ib477863b5ef763474d27fb4be5a4148be1d5d500
This commit is contained in:
committed by
Copybara-Service
parent
30357c38a3
commit
410c73168c
@@ -25,27 +25,27 @@
|
||||
|
||||
//-------------------------------- mjsCompiler -----------------------------------------------------
|
||||
|
||||
#define MJSCOMPILER_FIELDS \
|
||||
X ( mjtByte, autolimits, 1 ) \
|
||||
X ( double, boundmass, 1 ) \
|
||||
X ( double, boundinertia, 1 ) \
|
||||
X ( double, settotalmass, 1 ) \
|
||||
X ( mjtByte, balanceinertia, 1 ) \
|
||||
X ( mjtByte, fitaabb, 1 ) \
|
||||
X ( mjtByte, degree, 1 ) \
|
||||
XVEC( char, eulerseq, 3 ) \
|
||||
X ( mjtByte, discardvisual, 1 ) \
|
||||
X ( mjtByte, usethread, 1 ) \
|
||||
X ( mjtByte, fusestatic, 1 ) \
|
||||
X ( int, inertiafromgeom, 1 ) \
|
||||
XVEC( int, inertiagrouprange, 2 ) \
|
||||
X ( mjtByte, saveinertial, 1 ) \
|
||||
X ( int, alignfree, 1 ) \
|
||||
X ( mjLROpt, LRopt, 1 ) \
|
||||
X ( mjString*, meshdir, 1 ) \
|
||||
X ( mjString*, texturedir, 1 ) \
|
||||
X ( uint64_t, authored, 1 )
|
||||
|
||||
#define MJSCOMPILER_FIELDS \
|
||||
X(mjtByte, autolimits, 1) \
|
||||
X(double, boundmass, 1) \
|
||||
X(double, boundinertia, 1) \
|
||||
X(double, settotalmass, 1) \
|
||||
X(mjtByte, balanceinertia, 1) \
|
||||
X(mjtByte, fitaabb, 1) \
|
||||
X(mjtByte, degree, 1) \
|
||||
XVEC(char, eulerseq, 3) \
|
||||
X(mjtByte, discardvisual, 1) \
|
||||
X(mjtByte, usethread, 1) \
|
||||
X(mjtByte, fusestatic, 1) \
|
||||
X(int, inertiafromgeom, 1) \
|
||||
XVEC(int, inertiagrouprange, 2) \
|
||||
X(mjtByte, saveinertial, 1) \
|
||||
X(int, alignfree, 1) \
|
||||
X(int, conflict, 1) \
|
||||
X(mjLROpt, LRopt, 1) \
|
||||
X(mjString*, meshdir, 1) \
|
||||
X(mjString*, texturedir, 1) \
|
||||
X(uint64_t, authored, 1)
|
||||
|
||||
//-------------------------------- mjSpec ----------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user