-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLA-1783] built-in actuator type (#4950)
- Loading branch information
Chris Elion
authored
Feb 24, 2021
1 parent
ad620ec
commit 60d5d93
Showing
15 changed files
with
225 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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(); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
com.unity.ml-agents/Runtime/Actuators/IBuiltInActuator.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.