Drop find_ prefix in Python MjSpec methods accessing elements by name.

PiperOrigin-RevId: 725594833
Change-Id: Ibf8a9918e98b298751d0ef2e657714e28e5fa460
This commit is contained in:
Alessio Quaglino
2025-02-11 05:49:48 -08:00
committed by Copybara-Service
parent a6dd5f086f
commit cef5b31a3f
4 changed files with 35 additions and 34 deletions
+2 -3
View File
@@ -589,9 +589,8 @@ to make model editing easier:
Finding elements
^^^^^^^^^^^^^^^^
The ``MjSpec`` object has methods like ``find_body(), find_joint(), find_site(), ...`` for every type of name-able
:ref:`mjtObj` type. These methods take a name string and return the element with that name or ``None`` if it does not
exist.
The ``MjSpec`` object has methods like ``.body(), .joint(), .site(), ...`` for named access of elements.
``spec.geom('my_geom')`` will return the :ref:`mjsGeom` called "my_geom", or ``None`` if it does not exist.
Element lists
^^^^^^^^^^^^^