File size: 1,045 Bytes
05c9ac2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
using Unity.MLAgents.Sensors;
namespace Unity.MLAgents.Extensions.Sensors
{
/// <summary>
/// Interface for generating observations from a physical joint or constraint.
/// </summary>
public interface IJointExtractor
{
/// <summary>
/// Determine the number of observations that would be generated for the particular joint
/// using the provided PhysicsSensorSettings.
/// </summary>
/// <param name="settings"></param>
/// <returns>Number of floats that will be written.</returns>
int NumObservations(PhysicsSensorSettings settings);
/// <summary>
/// Write the observations to the ObservationWriter, starting at the specified offset.
/// </summary>
/// <param name="settings"></param>
/// <param name="writer"></param>
/// <param name="offset"></param>
/// <returns>Number of floats that were written.</returns>
int Write(PhysicsSensorSettings settings, ObservationWriter writer, int offset);
}
}
|