Use std::vector instead of array in MJCF schema.

PiperOrigin-RevId: 831787681
Change-Id: I8093b8b10260daecb830e49319eda798e2dd2da5
This commit is contained in:
Kyle Bayes
2025-11-13 03:40:36 -08:00
committed by Copybara-Service
parent 26c1622ac8
commit 8b9fa2674c
5 changed files with 182 additions and 196 deletions
+2 -1
View File
@@ -17,6 +17,7 @@
#include <sstream>
#include <string>
#include <vector>
#include <mujoco/mujoco.h>
#include <mujoco/mjspec.h>
@@ -102,6 +103,6 @@ class mjXReader : public mjXBase {
// MJCF schema
#define nMJCF 241
extern const char* MJCF[nMJCF][mjXATTRNUM];
extern std::vector<const char*> MJCF[nMJCF];
#endif // MUJOCO_SRC_XML_XML_NATIVE_READER_H_