MCPcopy Create free account
hub / github.com/google-deepmind/mujoco / parseXMLString_wrapper

Function parseXMLString_wrapper

wasm/codegen/templates/bindings.cc:795–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795std::unique_ptr<MjSpec> parseXMLString_wrapper(const std::string &xml) {
796 char error[1000];
797 mjSpec *ptr = mj_parseXMLString(xml.c_str(), nullptr, error, sizeof(error));
798 if (!ptr) {
799 mju_error("Could not create Spec from XML string: %s\n", error);
800 }
801 return std::unique_ptr<MjSpec>(new MjSpec(ptr));
802}
803
804std::unique_ptr<MjModel> mj_compile_wrapper_1(const MjSpec& spec) {
805 mjSpec* spec_ptr = spec.get();

Callers

nothing calls this directly

Calls 2

mj_parseXMLStringFunction · 0.85
mju_errorFunction · 0.85

Tested by

no test coverage detected