Skip to content

UI for Ray stacks, rename WriteAdapter to ObservationWriter #3834

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

Merged
merged 3 commits into from
Apr 23, 2020

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Apr 23, 2020

Proposed change(s)

Updated the display name and tooltip for RayPerceptionSensorComponent's stacking slider:
image
(tooltip is copied BrainParameters.NumStackedVectorObservations).

Renamed WriteAdpater to ObservationWriter.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@chriselion chriselion requested a review from mmattar April 23, 2020 20:50
@@ -112,7 +112,7 @@ public LayerMask RayLayerMask

[HideInInspector, SerializeField, FormerlySerializedAs("observationStacks")]
[Range(1, 50)]
[Tooltip("Whether to stack previous observations. Using 1 means no previous observations.")]
[Tooltip("Number of raycast results that will be stacked before being fed to the neural network.")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tooltip change

@@ -37,7 +37,7 @@ protected void OnRayPerceptionInspectorGUI(bool is3d)
// it is not editable during play mode.
EditorGUI.BeginDisabledGroup(!EditorUtilities.CanUpdateModelProperties());
{
EditorGUILayout.PropertyField(so.FindProperty("m_ObservationStacks"), true);
EditorGUILayout.PropertyField(so.FindProperty("m_ObservationStacks"), new GUIContent("Stacked Raycasts"), true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Label change

Copy link

@mmattar mmattar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We need migration/changelog doc changes too I believe.

@chriselion
Copy link
Contributor Author

Yeah, it's hard to do the changelog with the PR number before you create the PR :)

@chriselion chriselion merged commit cc74f81 into master Apr 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the more-api-cleanup branch April 23, 2020 23:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2021
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