Do not lookup compiler options by name when attaching.
Also, fix a pre-existing bug that caused incorrect compiler option propagation with nested attachments. Fixes #2480. PiperOrigin-RevId: 736156202 Change-Id: Ib430493e8c60556c2312603198587b39de9b8a4a
This commit is contained in:
committed by
Copybara-Service
parent
995bbf0f0f
commit
775c45c60e
@@ -2342,13 +2342,13 @@ TEST_F(MujocoTest, KeyframeSizeError) {
|
||||
|
||||
TEST_F(MujocoTest, DifferentUnitsAllowed) {
|
||||
static constexpr char gchild_xml[] = R"(
|
||||
<mujoco model="gchild">
|
||||
<compiler angle="radian"/>
|
||||
<mujoco>
|
||||
<compiler angle="degree"/>
|
||||
|
||||
<worldbody>
|
||||
<body name="gchild" euler="-1.5707963 0 0">
|
||||
<body name="gchild" euler="-90 0 0">
|
||||
<geom type="box" size="1 1 1"/>
|
||||
<joint name="gchild_joint" range="-3.1415926 3.1415926"/>
|
||||
<joint name="gchild_joint" range="-180 180"/>
|
||||
</body>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
|
||||
Reference in New Issue
Block a user