Fix type errors in compiler and tests.
In preparation for a float32 build of MuJoCo. PiperOrigin-RevId: 644407674 Change-Id: I60069f0f865ef89fbf613f5a2ca0c336cc63461e
This commit is contained in:
committed by
Copybara-Service
parent
c8cc2d51b0
commit
8e2f830fd2
@@ -1302,9 +1302,13 @@ TEST_F(XMLWriterTest, WriteReadCompare) {
|
||||
ASSERT_THAT(error.data(), HasSubstr("file"))
|
||||
<< error.data() << " from " << xml.c_str();
|
||||
} else {
|
||||
// for a particularly difficult example, relax the tolerance
|
||||
mjtNum tol =
|
||||
absl::StrContains(p.path().string(), "belt.xml") ? 1e-13 : 0;
|
||||
mjtNum tol = 0;
|
||||
|
||||
// for particularly sensitive models, relax the tolerance
|
||||
if (absl::StrContains(p.path().string(), "belt.xml") ||
|
||||
absl::StrContains(p.path().string(), "cable.xml")) {
|
||||
tol = 1e-13;
|
||||
}
|
||||
|
||||
// compare and delete
|
||||
std::string field = "";
|
||||
|
||||
Reference in New Issue
Block a user