Drop find_ prefix in Python MjSpec methods accessing elements by name.
PiperOrigin-RevId: 725594833 Change-Id: Ibf8a9918e98b298751d0ef2e657714e28e5fa460
This commit is contained in:
committed by
Copybara-Service
parent
a6dd5f086f
commit
cef5b31a3f
+2
-3
@@ -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
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user