-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[WIP] Observation Types #4825
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
[WIP] Observation Types #4825
Changes from all commits
eb11758
ec466b5
b212f34
e8754f0
a0a8b8f
8a5b364
1b47929
5b6730d
5f14598
1a15090
1a4a164
9da9beb
02e6676
c4a1257
fa99c84
75ac25e
7f2ae08
6b09bd8
03bd4b4
7e2ea68
1548722
c936d1b
c940c21
0496453
eb0e76c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace Unity.MLAgents.Sensors | ||
{ | ||
|
||
/// <summary> | ||
/// The ObservationType enum of the Sensor. | ||
/// </summary> | ||
internal enum ObservationType | ||
{ | ||
// Collected observations are generic. | ||
Default = 0, | ||
awjuliani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// Collected observations contain goal information. | ||
Goal = 1, | ||
// Collected observations contain reward information. | ||
Reward = 2, | ||
// Collected observations are messages from other agents. | ||
Message = 3, | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Sensor interface for sensors with variable types. | ||
/// </summary> | ||
internal interface ITypedSensor | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this interface be public? Are users expected to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't need to be, since any ISensor that isn't an ITypedSensor should be treated as Default type. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intention is similar to making the DimensionProperty internal for now. To not change the public API until there are actual features to use it. |
||
{ | ||
/// <summary> | ||
/// Returns the ObservationType enum corresponding to the type of the sensor. | ||
/// </summary> | ||
/// <returns>The ObservationType enum</returns> | ||
ObservationType GetObservationType(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.