We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125439c commit f83ff97Copy full SHA for f83ff97
genesis/engine/solvers/rigid/rigid_solver_decomp.py
@@ -487,8 +487,11 @@ def _init_link_fields(self):
487
)
488
489
self.qpos = ti.field(dtype=gs.ti_float, shape=self._batch_shape(self.n_qs_))
490
+ self.qpos0 = ti.field(dtype=gs.ti_float, shape=self._batch_shape(self.n_qs_))
491
if self.n_qs > 0:
- self.qpos.from_numpy(self._batch_array(self.init_qpos.astype(gs.np_float)))
492
+ init_qpos = self._batch_array(self.init_qpos.astype(gs.np_float))
493
+ self.qpos.from_numpy(init_qpos)
494
+ self.qpos0.from_numpy(init_qpos)
495
496
# This is for IK use only
497
# TODO: support IK with parallel envs
0 commit comments