Add ReadAttrVec, ReadAttrArr, ReadAttrStr, and ReadAttrNum to XML utils.

Moving forward, the compiler objects should have encapsulated data, therefore the old ReadAttr* methods are being deprecated as they require raw pointers to read into.

No external changes other than minor improvements to ReadAttr and ReadVector.

PiperOrigin-RevId: 550880401
Change-Id: I632f40322ccd935f9af9b69e66b056c5cda6face
This commit is contained in:
Kyle Bayes
2023-07-25 07:30:19 -07:00
committed by Copybara-Service
parent 5b4b3415fa
commit 5f246ef210
3 changed files with 212 additions and 105 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ TEST_F(XMLReaderTest, InvalidArrayLength) {
<mujoco>
<worldbody>
<body>
<geom size="1" axisangle="1 0 0 0 asd"/>
<geom size="1" axisangle="1 0 0 0 1"/>
</body>
</worldbody>
</mujoco>