Add attach tag to MJCF.

PiperOrigin-RevId: 651117953
Change-Id: I57b0e53ed44607d479b3785d908e0837c0804cf3
This commit is contained in:
Alessio Quaglino
2024-07-10 12:40:50 -07:00
committed by Copybara-Service
parent 5b080bacc4
commit 27b9ddda5b
19 changed files with 419 additions and 248 deletions
+2 -1
View File
@@ -19,6 +19,7 @@
#include <unordered_set>
#include <vector>
#include <mujoco/mjmodel.h>
#include <mujoco/mjspec.h>
#include "xml/xml_base.h"
#include "tinyxml2.h"
@@ -41,7 +42,7 @@ class mjXURDF : public mjXBase {
double* pos,
double* quat,
bool static_body);
void Parse(tinyxml2::XMLElement* root); // main parser
void Parse(tinyxml2::XMLElement* root, const mjVFS* vfs = nullptr); // main parser
private:
std::string GetPrefixedName(const std::string& name); // get prefix/name of element