Move CompareModel to a separate library.

PiperOrigin-RevId: 927174846
Change-Id: Ia8b8b2c8593133d8910399be755e614282bf3252
This commit is contained in:
Yuval Tassa
2026-06-05 02:44:22 -07:00
committed by Copybara-Service
parent 5ce9a0ad0b
commit d80a847bae
14 changed files with 186 additions and 108 deletions
-3
View File
@@ -182,9 +182,6 @@ std::string SaveAndReadXml(const mjSpec* spec);
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);
// Returns a vector containing the elements of the array.
template <typename T>