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
+1 -5
View File
@@ -49,14 +49,10 @@ class [[nodiscard]] mjXError {
};
// max number of attribute fields in schema (plus 3)
#define mjXATTRNUM 36
// Custom XML file validation
class mjXSchema {
public:
mjXSchema(const char* schema[][mjXATTRNUM], unsigned nrow);
mjXSchema(std::vector<const char*> schema[], unsigned nrow);
std::string GetError(); // return error
void Print(std::stringstream& str, int level) const; // print schema