Move CompareModel to fixture.

PiperOrigin-RevId: 612759913
Change-Id: Ia5741a858003211c58c47a20d447dcbc041c8b5d
This commit is contained in:
Alessio Quaglino
2024-03-05 02:23:21 -08:00
committed by Copybara-Service
parent e142bca7f2
commit 9efa4ebe0b
3 changed files with 73 additions and 71 deletions
+4
View File
@@ -101,6 +101,10 @@ std::string SaveAndReadXml(const mjModel* model);
std::vector<mjtNum> GetCtrlNoise(const mjModel* m, int nsteps,
mjtNum ctrlnoise = 0.01);
// Compares all fields of two mjModels.
// Returns the name of the different field and the max difference.
mjtNum CompareModel(const mjModel* m1, const mjModel* m2, std::string& field);
// Installs a mock filesystem via a resource provider. To obtain thread safety,
// each filesystem is scoped for individual unit tests with destructive
// operations not permitted.