-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make IActuator implement IHeuristicProvider. #5110
Conversation
7762c1b
to
b223e53
Compare
b223e53
to
b459af4
Compare
@@ -3,7 +3,7 @@ namespace Unity.MLAgents.Actuators | |||
/// <summary> | |||
/// Abstraction that facilitates the execution of actions. | |||
/// </summary> | |||
public interface IActuator : IActionReceiver | |||
public interface IActuator : IActionReceiver, IHeuristicProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this to be a separate interface with only one method? Can it be part of IActionReceiver?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, good point. I made IActionReceiver in order to help with backward compatibility. Let me think about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for now i'd like to leave it the way it is as it allows for indirection of actions. There might be an actuator that you want to write that delegates actions to other action receivers. maybe in a robotics use case or something.
Proposed change(s)
Have IActuator implement IHeuristicProvider.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
MLA-1799
MLA-1826
Types of change(s)
Checklist
Other comments