|
From: Bernhard W. <be...@bl...> - 2013-09-25 08:32:35
|
Hi The most important thing is to use a development environment which can list/follow references and has a good debugger, I use under Windows (I guess you are under Windows because of the "26" projects) VS2008 with "Virtual Assist X" to navigate code faster, maybe VS2010 or later can do this equally good, I do not know. Under Linux I use usually an editor or IDE which supports "ctags" or a similar technology. For your case I recommend the following: - Read the TORCS FAQ, the researchers section (ReOneStep), have a look at the simulation timestep - Have a look at the file human.cpp, this is the "driver" which is driven by user input. - Have a look at the input setup, files are in src/libs/confscreens, I guess this is in the "client" project IIRC - Build a debug version, set breakpoints and inspect the callstack - You can generate some documents under Linux with "make doc", an old version is available here: http://www.berniw.org/aboutme/publications/api.tar.bz2 Your project sounds interesting, please post a link to the result then (if public available). Depending on your architecture you will not need to modify TORCS at all, e.g. you could consider writing a "hid" driver for your input device (you will need the Microsoft Driver Development Kit/SDK, but Universities have those things usually available), so it would appear to TORCS as any other input device, then you could use your interface as well for any sort of application (other racing games, jump and run, whatever...). Best regards Bernhard On 09/25/2013 07:05 AM, khushali modi wrote: > Hello All > > I am working in torcs for my final B.Tech Project. I am using the emotiv > neuroheadset to drive the car using our mind. Actually, I need to make > emotiv to be able to communicate with torcs. Emotiv will send the data > to torcs to drive the car. I need the documentation of source code to > understand all the 26 projects and to understand how the torcs works. I > am getting lost whenever I read the code to understand it. Can you > suggest me how can I do it? > > -- > Khushali modi > B. Tech. 3rd Year CSE > IIT Mandi > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Torcs-users mailing list > Tor...@li... > https://lists.sourceforge.net/lists/listinfo/torcs-users > |