Add tests for body.find_all() of joints and geoms, fix error message.

Fixes #2525

PiperOrigin-RevId: 742685596
Change-Id: I5f0969967f2490d32e5691983e8d0c363d48a6bd
This commit is contained in:
Yuval Tassa
2025-04-01 07:14:00 -07:00
committed by Copybara-Service
parent c0a7ea1edb
commit 305b68ecbf
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ py::list FindAllImpl(raw::MjsBody& body, mjtObj objtype, bool recursive) {
// this should never happen
throw pybind11::value_error(
"body.find_all supports the types: body, frame, geom, site, "
"light, camera.");
"joint, light, camera.");
break;
}
el = mjs_nextChild(&body, el, recursive);