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:
committed by
Copybara-Service
parent
c0a7ea1edb
commit
305b68ecbf
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user