Contains information about the Trigger of an ActionType in a Waypoint Object.
More...
|
| TriggerInfo () |
| Initializes a new empty instance of the TriggerInfo class.
|
|
| TriggerInfo (string triggerType, double simulationTimeValue, string rule, double delay=0, string conditionEdge="rising") |
| Initializes a new instance of the TriggerInfo class for "SimulationTimeCondition".
|
|
| TriggerInfo (string triggerType, string entityRef, string rule, double value, Location worldPosition, double delay=0, string conditionEdge="rising") |
| Initializes a new instance of the TriggerInfo class for "DistanceCondition".
|
|
| TriggerInfo (string triggerType, string entityRef, string entitySelf, double value, string conditionEdge="rising") |
| Initializes a new instance of the TriggerInfo class for "RelativeDistanceCondition".
|
|
| TriggerInfo (string triggerType, string entityRef, double value, Location worldPosition, string conditionEdge="rising") |
| Initializes a new instance of the TriggerInfo class for "ReachPositionCondition".
|
|
| TriggerInfo (string triggerType, string entityRef, double duration, double delay=0, string conditionEdge="rising") |
| Creates a new TriggerInfo object for StandStillCondition.
|
|
| TriggerInfo (string triggerType, ActionType afterAction, string state="completeState", double delay=0, string conditionEdge="rising") |
| Initializes a new instance of the TriggerInfo class.
|
|
void | CalculateLocationCarla () |
| Converts the Unity Coordinates to CARLA Coordinates using the UnityToCarla Conversion Function and fills the WorldPositionCarla Attribute with it.
|
|
object | Clone () |
| Creates a new object that is a deepcopy of the current instance of the TriggerInfo class.
|
|
|
int | ID [get, set] |
|
string | TriggerType [get, set] |
|
double | Delay [get, set] |
|
string | ConditionEdge [get, set] |
|
string | EntityRef [get, set] |
|
string | EntitySelf [get, set] |
|
double | SimulationTimeValue [get, set] |
|
double | Value [get, set] |
|
string | Rule [get, set] |
|
Location | WorldPosition [get, set] |
|
Location | WorldPositionCarla [get, set] |
|
ActionType | AfterAction [get, set] |
|
Contains information about the Trigger of an ActionType in a Waypoint Object.
◆ TriggerInfo() [1/6]
Entity.TriggerInfo.TriggerInfo |
( |
string |
triggerType, |
|
|
double |
simulationTimeValue, |
|
|
string |
rule, |
|
|
double |
delay = 0 , |
|
|
string |
conditionEdge = "rising" |
|
) |
| |
|
inline |
Initializes a new instance of the TriggerInfo class for "SimulationTimeCondition".
- Parameters
-
triggerType | The type of trigger. |
simulationTimeValue | The simulation time value. |
rule | The rule to compare the trigger value. |
delay | The delay in seconds for the trigger. |
conditionEdge | The condition edge to trigger ("rising" or "falling"). |
Constructor for "SimulationTimeCondition"
◆ TriggerInfo() [2/6]
Entity.TriggerInfo.TriggerInfo |
( |
string |
triggerType, |
|
|
string |
entityRef, |
|
|
string |
rule, |
|
|
double |
value, |
|
|
Location |
worldPosition, |
|
|
double |
delay = 0 , |
|
|
string |
conditionEdge = "rising" |
|
) |
| |
|
inline |
Initializes a new instance of the TriggerInfo class for "DistanceCondition".
- Parameters
-
triggerType | The type of trigger. |
entityRef | The entity reference. |
rule | The rule to compare the trigger value. |
value | The distance value. |
worldPosition | The world position to calculate the distance. |
delay | The delay in seconds for the trigger. |
conditionEdge | The condition edge to trigger ("rising" or "falling"). |
Constructor for "DistanceCondition"
◆ TriggerInfo() [3/6]
Entity.TriggerInfo.TriggerInfo |
( |
string |
triggerType, |
|
|
string |
entityRef, |
|
|
string |
entitySelf, |
|
|
double |
value, |
|
|
string |
conditionEdge = "rising" |
|
) |
| |
|
inline |
Initializes a new instance of the TriggerInfo class for "RelativeDistanceCondition".
- Parameters
-
triggerType | The type of trigger. |
entityRef | The entity reference. |
entitySelf | The entity self reference. |
value | The distance value. |
conditionEdge | The condition edge to trigger ("rising" or "falling"). |
Constructor for "RelativeDistanceCondition"
◆ TriggerInfo() [4/6]
Entity.TriggerInfo.TriggerInfo |
( |
string |
triggerType, |
|
|
string |
entityRef, |
|
|
double |
value, |
|
|
Location |
worldPosition, |
|
|
string |
conditionEdge = "rising" |
|
) |
| |
|
inline |
Initializes a new instance of the TriggerInfo class for "ReachPositionCondition".
- Parameters
-
triggerType | The type of trigger. |
entityRef | The entity reference. |
value | The distance value. |
worldPosition | The world position to reach. |
conditionEdge | The condition edge to trigger ("rising" or "falling"). |
Constructor for "ReachPositionCondition"
◆ TriggerInfo() [5/6]
Entity.TriggerInfo.TriggerInfo |
( |
string |
triggerType, |
|
|
string |
entityRef, |
|
|
double |
duration, |
|
|
double |
delay = 0 , |
|
|
string |
conditionEdge = "rising" |
|
) |
| |
|
inline |
Creates a new TriggerInfo object for StandStillCondition.
- Parameters
-
triggerType | The type of trigger. |
entityRef | The entity reference. |
duration | The duration. |
delay | The delay. Defaults to 0. |
conditionEdge | The condition edge. Defaults to "rising". |
for StandStillCondition
◆ TriggerInfo() [6/6]
Entity.TriggerInfo.TriggerInfo |
( |
string |
triggerType, |
|
|
ActionType |
afterAction, |
|
|
string |
state = "completeState" , |
|
|
double |
delay = 0 , |
|
|
string |
conditionEdge = "rising" |
|
) |
| |
|
inline |
Initializes a new instance of the TriggerInfo class.
- Parameters
-
triggerType | The type of trigger for the StoryboardElementStateCondition. |
afterAction | The action to perform after the trigger occurs. |
state | The complete state of the StoryboardElementStateCondition. |
delay | The amount of delay before the trigger occurs. |
conditionEdge | The edge (rising or falling) of the StoryboardElementStateCondition. |
- Returns
- A new instance of the TriggerInfo class.
for StoryboardElementStateCondition. string triggerType must be StoryboardElementStateCondition
◆ Clone()
object Entity.TriggerInfo.Clone |
( |
| ) |
|
|
inline |
Creates a new object that is a deepcopy of the current instance of the TriggerInfo class.
- Returns
- A new instance of the TriggerInfo class that is a deepcopy of this instance.
The documentation for this class was generated from the following file:
- C:/Users/stefa/source/repos/AI_Testing_Simulator/Unity/Assets/Entities/TriggerInfo.cs