浏览代码

Make IActuator implement IHeuristicProvider. (#5110)

/goal-conditioning/sensors-3-pytest-fix
Christopher Goy 4 年前
当前提交
d887e2c2
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20
      docs/Migrating.md

20
docs/Migrating.md


- The `IActuator` interface now implements `IHeuristicProvider`. Please add the corresponding `Heuristic(in ActionBuffers)`
method to your custom Actuator classes.
- The `ISensor.GetObservationShape()` method was removed, and `GetObservationSpec()` was added. You can use
`ObservationSpec.Vector()` or `ObservationSpec.Visual()` to generate `ObservationSpec`s that are equivalent to
the previous shape. For example, if your old ISensor looked like:
```csharp
public override int[] GetObservationShape()
{
return new[] { m_Height, m_Width, m_NumChannels };
}
```
the equivalent code would now be
```csharp
public override ObservationSpec GetObservationSpec()
{
return ObservationSpec.Visual(m_Height, m_Width, m_NumChannels);
}
```
## Migrating to Release 13
### Implementing IHeuristic in your IActuator implementations
- If you have any custom actuators, you can now implement the `IHeuristicProvider` interface to have your actuator

正在加载...
取消
保存