Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
steering through text file
12-04-2011, 03:02 AM,
#1
steering through text file
Hey,

I am working on a project in which I am getting directional coordinates in a text file. The coordinates are of my head movement. Now I want to steer a vehicle through my head movement. Means if I bent my head left/right then the car moves left/right.

How could I do that with vdrift.

Please tell me where I have to make changes in the source code, so that the car gets its direction from the text file??

I am using opencv to track head center coordinates in visual studio 2010. My project is working in windows only (some problem with camera capture in ubuntu). Can I edit the source code of vdrift in ubuntu and after building with that source code can I use it in windows with my project??

Please tell me asap.......
Reply
12-04-2011, 01:44 PM,
#2
 
Hi sisso.

I think the most simple way would be to modify CARCONTROLMAP_LOCAL:TonguerocessInput to use your file input.

Or just CARCONTROLMAP_LOCAL:TonguerocessSteering if you are interested in steering only.

Btw you can build vdrift with vs2010. Checkout vdrift-win into vdrift/vdrift-win and run "vdrift-win\premake4 vs2010" to generate the solution.
Reply
12-04-2011, 10:43 PM,
#3
 
Hi NaN,

thanks for replying, I have downloaded project source from github.com but there is no project in it that could run and built in vs2010. There is a file named premake4.lua file in the main folder, is it the right file ? how could i make it built in vs2010 as a project(.lua is not supported format for vs2010 project). Also the folder vdrift contains only a subfolder named raw.
Reply
12-05-2011, 06:14 AM,
#4
 
premake4.lua is a script to create project files.

You need to download vdrift-win(windows dependencies) https://github.com/VDrift and place/extract it in the vdrift directory. Then from vdrift directory run the command vdrift-win\premake4 vs2010 to create the project files for vs2010.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)