static float MakeReward
(
const float RewardValue,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward from a float value. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=2, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardFromAngleSimilarity
(
const float AngleA,
const float AngleB,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerAngleLocationA,
const FVector VisualLoggerAngleLocationB,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on how similar two angles are. Angles should be given in degrees. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=3, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardFromDirectionSimilarity
(
const FVector DirectionA,
const FVector DirectionB,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerDirectionLocationA,
const FVector VisualLoggerDirectionLocationB,
const FVector VisualLoggerLocation,
const float VisualLoggerArrowLength,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on how similar two directions are. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=3, DefaultToSelf="VisualLoggerListener", DirectionA="1.0,0.0,0.0", DirectionB="1.0,0.0,0.0")
|
static float MakeRewardFromLocationDifference
(
const FVector LocationA,
const FVector LocationB,
const float LocationScale,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on the distance between two locations. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=4, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardFromLocationSimilarity
(
const FVector LocationA,
const FVector LocationB,
const float LocationScale,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on how similar two locations are. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=4, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardFromRotationSimilarity
(
const FRotator RotationA,
const FRotator RotationB,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerRotationLocationA,
const FVector VisualLoggerRotationLocationB,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on how similar two rotations are. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=3, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardFromRotationSimilarityAsQuats
(
const FQuat RotationA,
const FQuat RotationB,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerRotationLocationA,
const FVector VisualLoggerRotationLocationB,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on how similar two rotations are represented as quaternions. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=3, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardFromVelocityAlongSpline
(
const USplineComponent* SplineComponent,
const FVector Location,
const FVector Velocity,
const float VelocityScale,
const float RewardScale,
const float FiniteDifferenceDelta,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward based on the velocity an object is moving along a spline. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=6, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardOnCondition
(
const bool bCondition,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward which is equal to RewardScale when bCondition is true, otherwise returns zero. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=2, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardOnLocationDifferenceAboveThreshold
(
const FVector LocationA,
const FVector LocationB,
const float DistanceThreshold,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward when the distance between two locations is above a threshold, otherwise returns zero. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=4, DefaultToSelf="VisualLoggerListener")
|
static float MakeRewardOnLocationDifferenceBelowThreshold
(
const FVector LocationA,
const FVector LocationB,
const float DistanceThreshold,
const float RewardScale,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener* VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
|
Make a reward when the distance between two locations is below a threshold, otherwise returns zero. |
LearningAgentsRewards.h |
- BlueprintPure
- Category="LearningAgents"
- Meta=(AdvancedDisplay=4, DefaultToSelf="VisualLoggerListener")
|