using Unity.MLAgents.Sensors;
namespace Unity.MLAgents.Extensions.Sensors
{
///
/// Interface for generating observations from a physical joint or constraint.
///
public interface IJointExtractor
{
///
/// Determine the number of observations that would be generated for the particular joint
/// using the provided PhysicsSensorSettings.
///
///
/// Number of floats that will be written.
int NumObservations(PhysicsSensorSettings settings);
///
/// Write the observations to the ObservationWriter, starting at the specified offset.
///
///
///
///
/// Number of floats that were written.
int Write(PhysicsSensorSettings settings, ObservationWriter writer, int offset);
}
}