Readme修正
Readme针对上一个commit进行修正,Onehot编码控制从MLAgentsCustomController转到CommonParameterContainer。
This commit is contained in:
@@ -12,6 +12,7 @@ public class CommonParameterContainer : Singleton<CommonParameterContainer>
|
||||
public int timeLimit = 30;
|
||||
public bool lockCameraX = false;
|
||||
public bool lockCameraY = true;
|
||||
public bool oneHotRayTag = false;
|
||||
public bool spawnAgentInAllMap = true;
|
||||
public int spinRecordMax = 40;
|
||||
public float spinPenaltyThreshold = 10;
|
||||
|
||||
@@ -14,9 +14,6 @@ public class MLAgentsCustomController : Agent
|
||||
[SerializeField] private GameObject worldUIControllerObj;
|
||||
[SerializeField] private GameObject hudObj;
|
||||
|
||||
[Header("Env")]
|
||||
public bool oneHotRayTag = true;
|
||||
|
||||
// script
|
||||
private AgentController agentController;
|
||||
|
||||
@@ -114,7 +111,7 @@ public class MLAgentsCustomController : Agent
|
||||
sensor.AddObservation(remainTime); // (1)
|
||||
sensor.AddObservation(agentController.gunReadyToggle); // (1) save gun is ready?
|
||||
sensor.AddObservation(myObserve); // (4)自机位置xyz+朝向 float[](4,1)
|
||||
if (oneHotRayTag)
|
||||
if (commonParamCon.oneHotRayTag)
|
||||
{
|
||||
sensor.AddObservation(rayTagResultOnehot); // 探测用RayTag结果 float[](raySensorNum,1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user