ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

How to output the position and velocity information throught the Python API

Open tcy1998 opened this issue 7 years ago • 4 comments

Hi all! I wanted to output the position and the velocity of the object in the unity. And use these data to create a complicated reward function in python (because my previous reward model is based on python and the data was saved as pickle and it is hard to convert it to json). I learned from the tutorial that the python API could transport the data from unity to python. But I am a little confused about how exactly could I get the information of the position output only, and how to get my reward back to the Unity environment?

tcy1998 avatar Mar 05 '19 22:03 tcy1998

Hi @tcy1998 -- unfortunately our team doesn't have the bandwidth to help solve problems with custom training setups. You may want to look into customizing the UnityEnvironment class to fit your needs though.

harperj avatar Mar 08 '19 22:03 harperj

Thanks for reaching out to us. Hopefully you were able to resolve your issue. We are closing this due to inactivity, but if you need additional assistance, feel free to reopen the issue.

xiaomaogy avatar May 20 '19 23:05 xiaomaogy

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 20 '20 21:05 lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 20 '20 22:05 lock[bot]