コード例 #1
0
ファイル: UGVAgent3.cs プロジェクト: saleh9292/ml-agents
 void Start()
 {
     rBody                = GetComponent <Rigidbody>();
     wheelDriveSkid       = GetComponent <WheelDriveSkid>();
     m_OrientationCube    = GetComponentInChildren <OrientationCubeController>();
     m_DirectionIndicator = GetComponentInChildren <DirectionIndicator>();
 }
コード例 #2
0
ファイル: WalkerAgent.cs プロジェクト: nexzanavod/ml-agents
    public override void Initialize()
    {
        m_OrientationCube    = GetComponentInChildren <OrientationCubeController>();
        m_DirectionIndicator = GetComponentInChildren <DirectionIndicator>();

        //Setup each body part
        m_JdController = GetComponent <JointDriveController>();
        m_JdController.SetupBodyPart(hips);
        m_JdController.SetupBodyPart(chest);
        m_JdController.SetupBodyPart(spine);
        m_JdController.SetupBodyPart(head);
        m_JdController.SetupBodyPart(thighL);
        m_JdController.SetupBodyPart(shinL);
        m_JdController.SetupBodyPart(footL);
        m_JdController.SetupBodyPart(thighR);
        m_JdController.SetupBodyPart(shinR);
        m_JdController.SetupBodyPart(footR);
        m_JdController.SetupBodyPart(armL);
        m_JdController.SetupBodyPart(forearmL);
        m_JdController.SetupBodyPart(handL);
        m_JdController.SetupBodyPart(armR);
        m_JdController.SetupBodyPart(forearmR);
        m_JdController.SetupBodyPart(handR);

        m_ResetParams = Academy.Instance.EnvironmentParameters;

        SetResetParameters();
    }
コード例 #3
0
    public override void Initialize()
    {
        SetAgentType();

        m_OrientationCube    = GetComponentInChildren <OrientationCubeController>();
        m_DirectionIndicator = GetComponentInChildren <DirectionIndicator>();
        m_JdController       = GetComponent <JointDriveController>();

        //Setup each body part
        m_JdController.SetupBodyPart(body);
        m_JdController.SetupBodyPart(leg0Upper);
        m_JdController.SetupBodyPart(leg0Lower);
        m_JdController.SetupBodyPart(leg1Upper);
        m_JdController.SetupBodyPart(leg1Lower);
    }
コード例 #4
0
ファイル: WormAgent.cs プロジェクト: SancySwachitha/Drone
    private Vector3 m_StartingPos; //starting position of the agent

    public override void Initialize()
    {
        SpawnTarget(TargetPrefab, transform.position); //spawn target

        m_StartingPos        = bodySegment0.position;
        m_OrientationCube    = GetComponentInChildren <OrientationCubeController>();
        m_DirectionIndicator = GetComponentInChildren <DirectionIndicator>();
        m_JdController       = GetComponent <JointDriveController>();

        UpdateOrientationObjects();

        //Setup each body part
        m_JdController.SetupBodyPart(bodySegment0);
        m_JdController.SetupBodyPart(bodySegment1);
        m_JdController.SetupBodyPart(bodySegment2);
        m_JdController.SetupBodyPart(bodySegment3);
    }
コード例 #5
0
    public override void Initialize()
    {
        SpawnTarget(dynamicTargetPrefab, transform.position);
        m_OrientationCube = GetComponentInChildren <OrientationCubeController>();
        //m_DirectionIndicator = GetComponentInChildren<DirectionIndicator>();
        m_JdController = GetComponent <JointDriveController>();

        //Setup each body part
        m_JdController.SetupBodyPart(body);
        m_JdController.SetupBodyPart(leg0Upper);
        m_JdController.SetupBodyPart(leg0Lower);
        m_JdController.SetupBodyPart(leg1Upper);
        m_JdController.SetupBodyPart(leg1Lower);
        m_JdController.SetupBodyPart(leg2Upper);
        m_JdController.SetupBodyPart(leg2Lower);
        m_JdController.SetupBodyPart(leg3Upper);
        m_JdController.SetupBodyPart(leg3Lower);
    }