yanpanlau / DDPG-Keras-Torcs

Using Keras and Deep Deterministic Policy Gradient to play TORCS
717 stars 267 forks source link

How to get some host car data in global coordinates? #49

Open karlji1021 opened 6 years ago

karlji1021 commented 6 years ago

I am wondering how to get get global coordinates for the host car, such as X, Y, and Z. (I think z position can be got by using the sensor value) I need to calculate acceleration and jerk values from global coordinates data, so I want to pull the concerned values from TORCS environment.

In cpp files, "car->_accel_x" means host car's X-axis acceleration in global coordinates. And, if possible, I hope to get "car->_yaw", "car->_yaw_rate", "car-> _accel_y". However, I have trouble in getting these values from cpp file to python file.

Could anyone help me for this problem?

Thanks

wuhuccp commented 5 years ago

I also have the problem.Did you solve it?

karlji1021 commented 5 years ago

I also have the problem.Did you solve it?

No, I didn't solve it yet.. If you did it, could you let me know, please?