|
|
|
|
|
|
/// </summary>
|
|
|
|
public struct ObservationSpec |
|
|
|
{ |
|
|
|
internal InplaceArray<int> m_Shape; |
|
|
|
|
|
|
|
public InplaceArray<int> Shape; |
|
|
|
public InplaceArray<int> Shape |
|
|
|
{ |
|
|
|
get => m_Shape; |
|
|
|
} |
|
|
|
|
|
|
|
internal InplaceArray<DimensionProperty> m_DimensionProperties; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The properties of each dimensions of the observation.
|
|
|
|
|
|
|
/// It is generally recommended to not modify this from the default values,
|
|
|
|
/// It is generally recommended to use default values provided by helper functions,
|
|
|
|
public InplaceArray<DimensionProperty> DimensionProperties; |
|
|
|
public InplaceArray<DimensionProperty> DimensionProperties |
|
|
|
{ |
|
|
|
get => m_DimensionProperties; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The type of the observation, e.g. whether they are generic or
|
|
|
|
|
|
|
{ |
|
|
|
throw new UnityAgentsException("shape and dimensionProperties must have the same length."); |
|
|
|
} |
|
|
|
Shape = shape; |
|
|
|
DimensionProperties = dimensionProperties; |
|
|
|
m_Shape = shape; |
|
|
|
m_DimensionProperties = dimensionProperties; |
|
|
|
ObservationType = observationType; |
|
|
|
} |
|
|
|
} |