Diploma project with Unity

Hello everyone, i’m a student and I write a diploma project. I want to teach a remote control car how to drive on a track. For now i teach it with joystick and camera wich attached to car. Each frame, the camera gives me an image, and the car gives me data on the speed and position of the wheels (rotation) then i just put it to the neural network and there the car learns and then it can drive itself. I wanna automate this process and build this track in Unity, but for learning a need a data.
Does the Unity have functions that will allow me to receive data on the parameters of speed and rotation of the wheels? Can I program this so that they are written to a separate file?

Hey, I’m assuming you’re talking about training a simulated car? Check out ml-agents for how to observe Unity physics properties for deep reinforcement learning and behavioral cloning/imitation learning.
https://github.com/Unity-Technologies/ml-agents
I made a very basic car controller with it GitHub - mbaske/ml-simple-driver: Basic car controls for Unity ML-Agents