Struct EgoHandle
An ego, which is used to group multiple sensors under a single frame of reference.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public struct EgoHandle : IEquatable<EgoHandle>
Fields
Description
A human-readable description of this ego.
Declaration
public readonly string Description
Field Value
| Type | Description |
|---|---|
| String |
Id
The ID for this ego. This ID will be used to refer to this ego in the json metadata.
Declaration
public readonly Guid Id
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
Equals(EgoHandle)
Declaration
public bool Equals(EgoHandle other)
Parameters
| Type | Name | Description |
|---|---|---|
| EgoHandle | other |
Returns
| Type | Description |
|---|---|
| Boolean |
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
Operators
Equality(EgoHandle, EgoHandle)
Compares two EgoHandle instances for equality.
Declaration
public static bool operator ==(EgoHandle left, EgoHandle right)
Parameters
| Type | Name | Description |
|---|---|---|
| EgoHandle | left | The first EgoHandle. |
| EgoHandle | right | The second EgoHandle. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the two EgoHandles refer to the same ego. |
Inequality(EgoHandle, EgoHandle)
Compares two EgoHandle instances for inequality.
Declaration
public static bool operator !=(EgoHandle left, EgoHandle right)
Parameters
| Type | Name | Description |
|---|---|---|
| EgoHandle | left | The first EgoHandle. |
| EgoHandle | right | The second EgoHandle. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the two EgoHandles refer to the same ego. |