in gym3/libenv.py [0:0]
def act(self, ac: Dict[str, np.ndarray]) -> None:
for key, value in ac.items():
assert (
self._ac[key].shape == value.shape
), f"action shape did not match expected={self._ac[key].shape} actual={value.shape}"
assert (
self._ac[key].dtype == value.dtype
), f"action dtype did not match expected={self._ac[key].dtype} actual={value.dtype}"
self._ac[key][:] = value
self._c_lib.libenv_act(self._c_env)