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

Function parseXMLString_wrapper

wasm/codegen/generated/bindings.cc:8733–8740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8731}
8732
8733std::unique_ptr<MjSpec> parseXMLString_wrapper(const std::string &xml) {
8734 char error[1000];
8735 mjSpec *ptr = mj_parseXMLString(xml.c_str(), nullptr, error, sizeof(error));
8736 if (!ptr) {
8737 mju_error("Could not create Spec from XML string: %s\n", error);
8738 }
8739 return std::unique_ptr<MjSpec>(new MjSpec(ptr));
8740}
8741
8742std::unique_ptr<MjModel> mj_compile_wrapper_1(const MjSpec& spec) {
8743 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