Move CompareModel to fixture.
PiperOrigin-RevId: 612759913 Change-Id: Ia5741a858003211c58c47a20d447dcbc041c8b5d
This commit is contained in:
committed by
Copybara-Service
parent
e142bca7f2
commit
9efa4ebe0b
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user