The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: ls908 | Created: 2011-12-04 13:03:51
Subject: Export/record user data

I am trying to find a way to record user data in TORCS. With this I mean the user inputs (accelerator position, brake pedal position, steering angle,...) as well as the users car position (current track segment, distance from middle, speed, de/acceleration, direction,...). Ideally I am trying to achieve something that outputs a text file (or anything else really) for every completed lap.

Is this possible (it seems to be easy to access for robots, is it possible to do it the same way for users?) and if so how would I go about implementing something like this?

Thanks a lot in advance.
Last Edited: 2011-12-04 13:03:51 by ls908
    Author: berniw | Created: 2011-12-07 00:07:13
    Subject: Re: Export/record user data

    The "human driver" is a robot as all others, so you can add code to the human.cpp file, if the update frequency is fast enough for you purposes (the robot is just called with 50Hz, while the simulation runs with 500Hz.

    Best regards

    Last Edited: 2011-12-07 00:07:13 by berniw
    Author: idre713 | Created: 2017-10-01 20:13:39
    Subject: Re: Export/record user data

    Did you manage to do this? I have the same request to understand how all the above variables are recorded to analyse.

    What are the code edits in human.cpp? (not so familiar with cpp)

    Is it not possible to record also from car.cpp?

    Thank you in advance,
    Last Edited: 2017-10-01 20:13:39 by idre713