yorkeyao / VehicleX

VehicleX: Simulating Content Consistent Vehicle Datasets with Attribute Descent (ECCV 2020, TPAMI 2023)
156 stars 19 forks source link

The code of the Unity python interface #7

Closed YuhaoCheng closed 4 years ago

YuhaoCheng commented 4 years ago

Thanks for your brilliant work. Would you mind sharing the code of the python interface? I want to know how to control Unity by using Python. Thanks. If you think uploading the codes isn't convenient, you would send me the email. Thanks a lot.

yorkeyao commented 4 years ago

Thank you for your question. We have released VehicleX source code include the unity python interface in https://github.com/yorkeyao/VehicleX/tree/master/Unity%20Source

YuhaoCheng commented 4 years ago

Thank you for your question. We have released VehicleX source code include the unity python interface in https://github.com/yorkeyao/VehicleX/tree/master/Unity%20Source

Thanks for your answer. I have noticed this folder in your projects, while what indeed confuses me is how you just use the Python script without opening a Unity editor. I'm curious about this part. Thanks for your time.

yorkeyao commented 4 years ago

If your question is about the exact code in the unity source to make the connection. You may check function AgentAction in the PosAgent.cs.

YuhaoCheng commented 4 years ago

Thanks for your time. However, I can't find the PosAgent.cs in this project. Would you mind telling me where I can find this file?

yorkeyao commented 4 years ago

It is located in Assets/Scripts/PosAgent.cs. BTW you can always look up a file by search in the unity editor. posagent

YuhaoCheng commented 4 years ago

OK. I will check this file and figure out whether it can help me solve this question. Thanks a lot.