Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI driver
11-27-2006, 03:33 AM,
#13
 
rookie1 Wrote:Probably due to the roads.trk and starting position of the tracks. Starting position of some tracks are in the pit lane, and there is no proper traced road leading to the main track. AI can only follow the bezier patch 1 by 1 on the traced road. I propose we should set the starting position at the starting line, not the pit lane.
This seems like a good idea. Anybody want to work on this?

rookie1 Wrote:No segfault when i do pause -> quit. No segfault at pause -> leave game either, but I do get 'NaN in origin vector' quite frequently in this case. Haven't found out why yet.
OK, on some cars it does segfault, on others it doesn't. I'll do a little more testing and let you know which ones do/don't.

rookie1 Wrote:<edit>segfault fixed in r1372
Good work, thanks Smile

rookie1 Wrote:The AI code is base on Berniw's TORCS robot tutorial. However, it's not using TORCS API. Bascially, there are 4 functions in the AI module,

updateGasBrake()
updateGear()
updateClutch()
updateSteer()

Each function handles 1 particular aspect of the input, and pass the input similar to a player controlled car, via Vamos_Body::Car::gas(), Vamos_Body::Car::brake(), etc.
I see, I have been investigating the TORCS robot system and I'll start a new thread about it soon...

rookie1 Wrote:I'm not familiar with the collision code. But do note that the AI currently does not have the capability to avoid colliding with other cars. It also lacks the ability to return back on track once it's off.
I've noticed that some of the cars can get back on the track (XS for example, but since your last updates it doesn't go off-track anymore on Jarama at least), on others it can't. This is probably the fault of it being very hard to get out of the sand traps in some cars (probably due to clutch force or tire friction problems, for instance the 3S).

joevenzon Wrote:The timer class (see timer.h) could be easily extended to do this.
If we could have a timer object associated with each robot that is triggered when the robot crosses the finish line, that would work well... I'm guessing this should go in vamosworld.cc somewhere.
Reply


Messages In This Thread
AI driver - by rookie1 - 11-23-2006, 09:51 PM
[No subject] - by thelusiv - 11-24-2006, 01:40 AM
[No subject] - by rookie1 - 11-24-2006, 02:19 AM
[No subject] - by thelusiv - 11-24-2006, 02:34 AM
[No subject] - by rookie1 - 11-24-2006, 02:51 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-24-2006, 04:14 AM
[No subject] - by rookie1 - 11-24-2006, 09:29 AM
[No subject] - by reece146 - 11-24-2006, 09:39 AM
[No subject] - by rookie1 - 11-25-2006, 08:36 AM
[No subject] - by thelusiv - 11-26-2006, 03:32 AM
[No subject] - by rookie1 - 11-26-2006, 09:48 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-26-2006, 10:31 PM
[No subject] - by thelusiv - 11-27-2006, 03:33 AM
[No subject] - by thelusiv - 11-27-2006, 01:21 PM
[No subject] - by rookie1 - 11-27-2006, 09:58 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-28-2006, 01:57 AM
[No subject] - by thelusiv - 11-28-2006, 01:59 AM
[No subject] - by rookie1 - 11-28-2006, 09:21 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-28-2006, 02:39 PM
[No subject] - by kcid - 11-29-2006, 05:40 PM
[No subject] - by rookie1 - 11-29-2006, 08:47 PM
[No subject] - by rookie1 - 11-30-2006, 01:42 AM
[No subject] - by kcid - 11-30-2006, 09:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)