Resize keyframes also at the start of compilation.
Previously, it was assumed that attaching was the last operation performed on the mjSpec, so keyframes resulted in the incorrect size. In order to prevent information loss, we now only allow the resize function to expand the keyframe array, since attach should never remove a degree of freedom. PiperOrigin-RevId: 804917828 Change-Id: Icfacd207ced1c6aac600d514f8d9065ceff2d347
This commit is contained in:
committed by
Copybara-Service
parent
3b738ebb67
commit
9d5063799f
@@ -7817,7 +7817,9 @@ in :ref:`simulate.cc <saSimulate>` the simulation state can be copied into a sel
|
||||
:el-prefix:`keyframe/` |-| **key** (*)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
This element sets the data for one of the keyframes. They are set in the order in which they appear here.
|
||||
This element sets the data for one of the keyframes. They are set in the order in which they appear here. If the number
|
||||
of elements specified in the given vectors is less than the size of the corresponding mjData array, missing entries will
|
||||
be set to their values in the default configuration.
|
||||
|
||||
|
||||
.. _keyframe-key-name:
|
||||
|
||||
Reference in New Issue
Block a user