Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the speed of each vehicles. #17

Open
sundyCoder opened this issue Oct 21, 2019 · 3 comments
Open

the speed of each vehicles. #17

sundyCoder opened this issue Oct 21, 2019 · 3 comments

Comments

@sundyCoder
Copy link

Hi, can we get the speed of each vehicles?

@Kyushik
Copy link
Collaborator

Kyushik commented Oct 23, 2019

For now, you cannot get the speed of each vehicle. I didn't implement that because the number of other vehicles are changed. Therefore, I thought it cannot be used as a state. But if you modify the script, you get the speed of each vehicle.

@sundyCoder
Copy link
Author

Thank you so much for your response. So can you tell me which file I can modify to get the speed of each vehicle, because there are so many dll files.

@Kyushik
Copy link
Collaborator

Kyushik commented Oct 24, 2019

You should modify the "VehicleAgent.cs" in [Assets->VehicleSimulator->Scripts]. You should get the speed of other vehicles and add them in the "CollectObservations" function. You can get the speed of other vehicle, which is "m_Speed" in "TargetMovement.cs" script. After that you should build the environment using Unity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants