|
|
|
|
|
|
|
|
|
|
public void AddEgo(EgoHandle egoHandle) |
|
|
|
{ |
|
|
|
CheckDatasetAllowed(); |
|
|
|
|
|
|
|
|
|
|
|
public bool IsEnabled(SensorHandle sensorHandle) => m_ActiveSensors.Contains(sensorHandle); |
|
|
|
|
|
|
|
|
|
|
m_ActiveSensors.Remove(sensorHandle); |
|
|
|
else |
|
|
|
m_ActiveSensors.Add(sensorHandle); |
|
|
|
} |
|
|
|
|
|
|
|
void CheckDatasetAllowed() |
|
|
|
{ |
|
|
|
if (!Application.isPlaying) |
|
|
|
{ |
|
|
|
throw new InvalidOperationException("Dataset generation is only supported in play mode."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void Update() |
|
|
|
|
|
|
|
|
|
|
void RegisterAdditionalInfoType<TSpec>(string name, TSpec[] specValues, string description, string format, Guid id, AdditionalInfoKind additionalInfoKind) |
|
|
|
{ |
|
|
|
CheckDatasetAllowed(); |
|
|
|
var annotationDefinitionInfo = new AdditionalInfoTypeData() |
|
|
|
{ |
|
|
|
additionalInfoKind = additionalInfoKind, |
|
|
|