DRL_based_SelfDrivingCarControl icon indicating copy to clipboard operation
DRL_based_SelfDrivingCarControl copied to clipboard

the speed of each vehicles.

Open sundyCoder opened this issue 6 years ago • 3 comments

Hi, can we get the speed of each vehicles?

sundyCoder avatar Oct 21 '19 12:10 sundyCoder

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.

Kyushik avatar Oct 23 '19 01:10 Kyushik

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.

sundyCoder avatar Oct 24 '19 06:10 sundyCoder

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.

Kyushik avatar Oct 24 '19 11:10 Kyushik