Skip to content
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

Merged
merged 4 commits into from
Mar 15, 2021

Conversation

surfnerd
Copy link
Contributor

@surfnerd surfnerd commented Mar 13, 2021

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)

  • Code refactor
  • Breaking change

Checklist

Other comments

@surfnerd surfnerd changed the base branch from v2-staging to v2-staging-disable-dotnet-format March 13, 2021 08:29
@surfnerd surfnerd force-pushed the develop-actuator-heuristic-merge branch from 7762c1b to b223e53 Compare March 13, 2021 08:33
@delete-merged-branch delete-merged-branch bot deleted the branch v2-staging March 14, 2021 21:14
@surfnerd surfnerd changed the base branch from v2-staging-disable-dotnet-format to v2-staging March 14, 2021 22:31
@surfnerd surfnerd force-pushed the develop-actuator-heuristic-merge branch from b223e53 to b459af4 Compare March 14, 2021 22:32
@surfnerd surfnerd self-assigned this Mar 15, 2021
@surfnerd surfnerd requested review from dongruoping and removed request for chriselion March 15, 2021 22:34
@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@surfnerd surfnerd merged commit edd3a5a into v2-staging Mar 15, 2021
@delete-merged-branch delete-merged-branch bot deleted the develop-actuator-heuristic-merge branch March 15, 2021 23:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants