File size: 1,571 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
namespace Unity.MLAgents.Actuators
{
    /// <summary>
    /// Identifiers for "built in" actuator types.
    /// These are only used for analytics, and should not be used for any runtime decisions.
    ///
    /// NOTE: Do not renumber these, since the values are used for analytics. Renaming is allowed though.
    /// </summary>
    public enum BuiltInActuatorType
    {
        /// <summary>
        /// Default Sensor type if it cannot be determined.
        /// </summary>
        Unknown = 0,

        /// <summary>
        /// VectorActuator used by the Agent
        /// </summary>
        AgentVectorActuator = 1,

        /// <summary>
        /// Corresponds to <see cref="VectorActuator"/>
        /// </summary>
        VectorActuator = 2,

        /// <summary>
        /// Corresponds to the Match3Actuator in com.unity.ml-agents.extensions.
        /// </summary>
        Match3Actuator = 3,

        /// <summary>
        /// Corresponds to the InputActionActuator in com.unity.ml-agents.extensions.
        /// </summary>
        InputActionActuator = 4,
    }

    /// <summary>
    /// Interface for actuators that are provided as part of ML-Agents.
    /// User-implemented actuators don't need to use this interface.
    /// </summary>
    internal interface IBuiltInActuator
    {
        /// <summary>
        /// Return the corresponding BuiltInActuatorType for the actuator.
        /// </summary>
        /// <returns>A BuiltInActuatorType corresponding to the actuator.</returns>
        BuiltInActuatorType GetBuiltInActuatorType();
    }
}