Combine all mjs_attach functions into one.
PiperOrigin-RevId: 742702092 Change-Id: I89e35c59ada017cd061e2031584eeea71776743d
This commit is contained in:
committed by
Copybara-Service
parent
08d22baea1
commit
a02a27d4a4
@@ -623,7 +623,7 @@ TEST_F(MujocoTest, Modeldir) {
|
||||
mjSpec* spec = mj_makeSpec();
|
||||
mjs_setDeepCopy(spec, true);
|
||||
mjs_setString(spec->meshdir, "asset");
|
||||
mjs_attachFrame(mjs_findBody(spec, "world"), frame, "_", "");
|
||||
mjs_attach(mjs_findBody(spec, "world")->element, frame->element, "_", "");
|
||||
mjModel* model = mj_compile(spec, vfs.get());
|
||||
EXPECT_THAT(model, NotNull());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user