Closed robfiras closed 1 year ago
Why do you replace self._model.actuator(name).id
with mujoco.mj_name2id(self._model, mujoco.mjtObj.mjOBJ_ACTUATOR, name)
? They both should behave the same since the newest mujoco version.
Why do you replace
self._model.actuator(name).id
withmujoco.mj_name2id(self._model, mujoco.mjtObj.mjOBJ_ACTUATOR, name)
? They both should behave the same since the newest mujoco version.
Sorry that was my fault, haven't pulled your latest commit. self._model.actuator(name).id actually raises an exception so I reverted that commit.
Duplicates keys should not be allowed in observation_spec. Added assertion to check for that.
Also fixed bug with action_spec, as before the Mujoco interface appended unspecified actuators with an action index -1. Added assertion to check if an actuator is unspecified.