Returns the observation specification for this environment. Infers the spec from the observation, unless the Task implements the `observation_spec` method. Returns: An dict mapping observation name to `ArraySpec` containing observation shape and dtype.
(self)
| 135 | return self._task.step_spec(self._physics) |
| 136 | |
| 137 | def observation_spec(self): |
| 138 | """Returns the observation specification for this environment. |
| 139 | |
| 140 | Infers the spec from the observation, unless the Task implements the |
| 141 | `observation_spec` method. |
| 142 | |
| 143 | Returns: |
| 144 | An dict mapping observation name to `ArraySpec` containing observation |
| 145 | shape and dtype. |
| 146 | """ |
| 147 | try: |
| 148 | return self._task.observation_spec(self._physics) |
| 149 | except NotImplementedError: |
| 150 | observation = self._task.get_observation(self._physics) |
| 151 | if self._flat_observation: |
| 152 | observation = flatten_observation(observation) |
| 153 | return _spec_from_observation(observation) |
| 154 | |
| 155 | @property |
| 156 | def physics(self): |
nothing calls this directly
no test coverage detected