Replace mjCModel with mjmModel in mjXBase.

PiperOrigin-RevId: 611762880
Change-Id: I22254689b6cbf10fe7b61f9742b6ffd6c2074477
This commit is contained in:
Alessio Quaglino
2024-03-01 03:37:37 -08:00
committed by Copybara-Service
parent 419be4c605
commit 1bd44e73bb
18 changed files with 213 additions and 111 deletions
+8
View File
@@ -764,6 +764,14 @@ mjXWriter::mjXWriter(void) {
}
// cast model
void mjXWriter::SetModel(mjmModel* modelspec) {
if (modelspec) {
model = (mjCModel*)modelspec->element;
}
}
// save existing model in MJCF canonical format, must be compiled
string mjXWriter::Write(char *error, size_t error_sz) {
// check model