Add image and model explaining the geom-fromto attribute.
PiperOrigin-RevId: 524796118 Change-Id: I9e694d84a4be308baafbdbaab89cfb2570b13586
@@ -2171,7 +2171,7 @@ chapter.
|
||||
.. _asset-texture-gridlayout:
|
||||
|
||||
:at:`gridlayout`: :at-val:`string, "............"`
|
||||
.. figure:: images/modeling/skybox.png
|
||||
.. figure:: images/XMLreference/skybox.png
|
||||
:width: 250px
|
||||
:align: right
|
||||
|
||||
@@ -2357,7 +2357,7 @@ also known as terrain map, is a 2D matrix of elevation data. The data can be spe
|
||||
.. _asset-hfield-size:
|
||||
|
||||
:at:`size`: :at-val:`real(4), required`
|
||||
.. figure:: images/modeling/peaks.png
|
||||
.. figure:: images/XMLreference/peaks.png
|
||||
:width: 350px
|
||||
:align: right
|
||||
|
||||
@@ -3402,13 +3402,21 @@ helps clarify the role of bodies and geoms in MuJoCo.
|
||||
.. _body-geom-fromto:
|
||||
|
||||
:at:`fromto`: :at-val:`real(6), optional`
|
||||
This attribute can only be used with capsule, cylinder, ellipsoid and box geoms. It provides an alternative
|
||||
.. figure:: images/XMLreference/fromto.png
|
||||
:width: 350px
|
||||
:align: right
|
||||
|
||||
This attribute can only be used with capsule, box, cylinder and ellipsoid geoms. It provides an alternative
|
||||
specification of the geom length as well as the frame position and orientation. The six numbers are the 3D
|
||||
coordinates of one point followed by the 3D coordinates of another point. The elongated part of the geom connects
|
||||
these two points, with the +Z axis of the geom's frame oriented from the first towards the second point. The frame
|
||||
orientation is obtained with the same procedure as the zaxis attribute described in :ref:`Frame orientations
|
||||
<COrientation>`. The frame position is in the middle between the two points. If this attribute is specified, the
|
||||
remaining position and orientation-related attributes are ignored.
|
||||
these two points, with the +Z axis of the geom's frame oriented from the first towards the second point, while in the
|
||||
perpendicular direction, the geom sizes are both equal to the first value of the :at:`size` attribute. The frame
|
||||
orientation is obtained with the same procedure as the :at:`zaxis` attribute described in :ref:`Frame orientations
|
||||
<COrientation>`. The frame position is in the middle between the end points. If this attribute is specified, the
|
||||
remaining position and orientation-related attributes are ignored. The image on the right demonstrates use of
|
||||
:at:`fromto` with the four supported geoms, using identical Z values. The model is `here <_static/fromto.xml>`__.
|
||||
Note that the :at:`fromto` semantics of *capsule* are unique: the two end points specify the segement around which
|
||||
the radius defines the capsule surface.
|
||||
|
||||
.. _body-geom-pos:
|
||||
|
||||
@@ -4562,7 +4570,7 @@ can also represent different forms of mechanical coupling.
|
||||
:el-prefix:`tendon/` |-| **spatial** (*)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. figure:: images/modeling/tendon.png
|
||||
.. figure:: images/XMLreference/tendon.png
|
||||
:width: 400px
|
||||
:align: right
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<mujoco>
|
||||
<asset>
|
||||
<texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3" rgb2=".2 .3 .4"/>
|
||||
<material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".2"/>
|
||||
</asset>
|
||||
|
||||
<worldbody>
|
||||
<light pos="0 -1 5" dir="1 1 -10"/>
|
||||
<light pos="1.5 -1 5" dir="-1 1 -10"/>
|
||||
<camera name="front" pos=".75 -5 1.5" xyaxes="1 0 0 0 .3 1"/>
|
||||
|
||||
<geom type="plane" material="grid" size="0 0 .1" pos="0 0 -.1"/>
|
||||
<geom type="capsule" size="0.1" fromto="0 0 0 0 0 1"/>
|
||||
<geom type="box" size="0.1" fromto=".5 0 0 .5 0 1"/>
|
||||
<geom type="cylinder" size="0.1" fromto="1 0 0 1 0 1"/>
|
||||
<geom type="ellipsoid" size="0.1" fromto="1.5 0 0 1.5 0 1"/>
|
||||
</worldbody>
|
||||
</mujoco>
|
||||
|
After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |