AI Testing Simulator
Loading...
Searching...
No Matches
Entity.TriggerInfo Class Reference

Contains information about the Trigger of an ActionType in a Waypoint Object. More...

Inheritance diagram for Entity.TriggerInfo:

Public Member Functions

 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.
 

Properties

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]
 

Detailed Description

Contains information about the Trigger of an ActionType in a Waypoint Object.

Constructor & Destructor Documentation

◆ 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
triggerTypeThe type of trigger.
simulationTimeValueThe simulation time value.
ruleThe rule to compare the trigger value.
delayThe delay in seconds for the trigger.
conditionEdgeThe 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
triggerTypeThe type of trigger.
entityRefThe entity reference.
ruleThe rule to compare the trigger value.
valueThe distance value.
worldPositionThe world position to calculate the distance.
delayThe delay in seconds for the trigger.
conditionEdgeThe 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
triggerTypeThe type of trigger.
entityRefThe entity reference.
entitySelfThe entity self reference.
valueThe distance value.
conditionEdgeThe 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
triggerTypeThe type of trigger.
entityRefThe entity reference.
valueThe distance value.
worldPositionThe world position to reach.
conditionEdgeThe 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
triggerTypeThe type of trigger.
entityRefThe entity reference.
durationThe duration.
delayThe delay. Defaults to 0.
conditionEdgeThe 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
triggerTypeThe type of trigger for the StoryboardElementStateCondition.
afterActionThe action to perform after the trigger occurs.
stateThe complete state of the StoryboardElementStateCondition.
delayThe amount of delay before the trigger occurs.
conditionEdgeThe edge (rising or falling) of the StoryboardElementStateCondition.
Returns
A new instance of the TriggerInfo class.

for StoryboardElementStateCondition. string triggerType must be StoryboardElementStateCondition

Member Function Documentation

◆ 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: