Change Comments
This commit is contained in:
1 parent
021662632e
commit
1f12d31c0b
2 files changed
+2
-2
No files matched your search
@@ -152,7 +152,7 @@ namespace Cozmo
|
||||
{
|
||||
float range = centerOfImageX - nearAreaLimit;
|
||||
reward = -(1 - (centerOfGravityX / range));
|
||||
// Clamp the reward to max -1 in order to handle rewards if the center of gravity is outside of the image
|
||||
// Clamp the reward to max -1 and divide it by 2
|
||||
reward = Mathf.Clamp(reward, -1, 0) / 2;
|
||||
}
|
||||
// Center of gravity is near left of the center
|
||||
|
||||
Reference in new issue
Block a user