Use mj_parseXMLString instead of a test-specific LoadFromModelString.

This removes the need for a custom mjResourceProvider, but does require
reimplementing part of mj_loadXML in the fixture.

PiperOrigin-RevId: 854170820
Change-Id: Ib455cc5cdb5138213eb7e996dc32ac156f22a859
This commit is contained in:
Haroon Qureshi
2026-01-09 06:33:08 -08:00
committed by Copybara-Service
parent 2c4f710cf4
commit 398e3dcf15
2 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
#include <mujoco/mujoco.h>
void SetGlobalXmlSpec(mjSpec* spec = nullptr);
MJAPI void SetGlobalXmlSpec(mjSpec* spec = nullptr);
std::string GetGlobalXmlSpec(const mjModel* m, char* error, int error_sz);