Skip to content

Abluceli/UnityEnvTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityEnvTools

UnityEnvTools be maked for Unity mlagents environment like gym. It has three attributes:

  1. observation_space like {'RacerAdversaryLearnig': Box(13,), 'RacerTargetLearning': Box(13,)}
  2. action_space like {'RacerAdversaryLearnig': Box(2,), 'RacerTargetLearning': Box(2,)}

and has methods:

  1. obs = env.reset()

    (1) output: {'RacerAdversaryLearnig':[[......],....],'RacerTargetLearning': [[....],....]}

  2. obs, reward, done, info = env.step(action)

    (1) input: {'RacerAdversaryLearnig': array([-0.28951204, 0.17042696], dtype=float32), 'RacerTargetLearning': array([0.1588485 , 0.21967688], dtype=float32)}

    (2) output: {'RacerAdversaryLearnig':[[......],....],'RacerTargetLearning': [[....],....]} {'RacerAdversaryLearnig': [0.4701349437236786], 'RacerTargetLearning': [-2.040186643600464]} {'RacerAdversaryLearnig': [False], 'RacerTargetLearning': [False]}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages