Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My AI Thesis
03-08-2010, 11:18 PM,
#4
Re: My AI Thesis
fresbeeplayer Wrote:3. Is it possible for VDrift to run in text mode only, and thus simulating thousands of laps (with only the AI car) in an acceptable time frame, in order to train the neural net? This is a critical step.

I think you should start by looking at the car performance testing code. If you run VDrift with the option -cartest CARNAME (where CARNAME is XS or so on), game.cpp does this (in ParseArguments):
Code:
    if (!argmap["-cartest"].empty())
    {
        pathmanager.Init(info_output, error_output);
        PERFORMANCE_TESTING perftest;
        perftest.Test(pathmanager.GetCarPath(), argmap["-cartest"], info_output, error_output);
        continue_game = false;
    }

Then if you look at performance_testing.h and .cpp you'll see how a car is set up in an environment that's an infinite plane. You would need to add some code for setting up a track and replace SimulateFlatRoad with a function that does raycasts on the track to feed to the car. You can see how this is done by looking through all of the code called from AdvanceGameLogic in game.cpp.
Reply


Messages In This Thread
My AI Thesis - by fresbeeplayer - 03-07-2010, 10:49 PM
[No subject] - by NaN - 03-08-2010, 11:57 AM
[No subject] - by fresbeeplayer - 03-08-2010, 04:33 PM
Re: My AI Thesis - by joevenzon_phpbb2_import3 - 03-08-2010, 11:18 PM
[No subject] - by fresbeeplayer - 04-23-2010, 07:01 PM
[No subject] - by NaN - 04-24-2010, 02:29 AM
[No subject] - by fresbeeplayer - 04-24-2010, 06:19 AM
[No subject] - by NaN - 04-24-2010, 07:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)