Export/record user data

Information about the inner-side magic

Moderator: kilo

Export/record user data

Postby ls908 » Sun Dec 04, 2011 8:09 pm

Hi,

I am trying to find a way to record user data in Speed Dreams. With this I mean the user inputs (accelerator position, brake pedal position, steering angle,...) as well as the users car position (current track segment, exact track position, speed, de/acceleration, direction,...). Ideally I am trying to achieve something that outputs a text file for every completed lap but any other output would be great as well.

Is this possible in Speed Dreams or any other racing simulation for that matter? Is it possible to record similar data for AI drivers?

Any pointers would be greatly appreciated.
ls908
 
Posts: 1
Joined: Sun Dec 04, 2011 3:44 pm

Re: Export/record user data

Postby mungewell » Mon Dec 05, 2011 6:45 pm

There was some discussion on the mailing list regarding 'telemetry', which looks to be what you're asking for:
https://sourceforge.net/mailarchive/for ... eams-devel

Don't know the current state of things, perhaps another dev can confirm.

You don't say which platform you are on; it's been mentioned that the 'Telemetry module' only supports linux, although I might be wrong as I have never tried using it....
Simon
mungewell
 
Posts: 307
Joined: Fri May 20, 2011 4:05 pm
Location: Southen Alberta, Canada

Re: Export/record user data

Postby asic_designer » Thu Dec 05, 2013 5:51 pm

Hi All

Has there been any progress made on this issue? I would very much like to use the SD simulator for a project I am currently working on. We will need SD to output telemetry and gps data, has this feature been added to the simulator?
asic_designer
 
Posts: 5
Joined: Wed Dec 04, 2013 11:44 pm

Re: Export/record user data

Postby mungewell » Sat Dec 07, 2013 9:09 pm

I don't believe that anyone did any work on that, but we're happy for any contributions of code. :-)

BTW you may be interested in the 'replay' functionality which I've been working on. This saves the state/position/etc of each car out to a SQLite database, and allows it to be replayed later. It's not in the main tree, but we'll probably included it after the next release.
http://sourceforge.net/apps/trac/speed-dreams/ticket/692

You might be able to use the resultant SQLite DB, or modify the code for your specific needs.
Cheers,
Simon.
mungewell
 
Posts: 307
Joined: Fri May 20, 2011 4:05 pm
Location: Southen Alberta, Canada

Re: Export/record user data

Postby asic_designer » Mon Dec 09, 2013 1:34 am

I was hoping this was going to be a little easier. OK so now I have to ask, do you know of any other open source racing simulators out there which do offer this feature? I'm not sure why you guys don't offer it, maybe its a resources thing, but it would make the simulator a lot more useful to engineers, and embedded programmers in the robotics and automotive fields.
asic_designer
 
Posts: 5
Joined: Wed Dec 04, 2013 11:44 pm

Re: Export/record user data

Postby mungewell » Mon Dec 09, 2013 9:27 pm

asic_designer wrote:I'm not sure why you guys don't offer it, maybe its a resources thing


Yes, we're resource limited in 'meat-space'; we have a very small team of volunteers who like to work on features important to the game and one's which they think are 'cool'. Quite often I am frustrated as I don't have enough time to do this features I'd like to work on.

asic_designer wrote:, but it would make the simulator a lot more useful to engineers, and embedded programmers in the robotics and automotive fields.


We'd be happy for you to contribute code, and give you pointers on how to achieve your tasks. For example the fore-mentioned patch has already figured out all the difficult stuff about getting a function called at the right time to write to simulator/car states out to a database. It would be trivial to write this info to a file, or TCP/IP or UDP port...

Simon
mungewell
 
Posts: 307
Joined: Fri May 20, 2011 4:05 pm
Location: Southen Alberta, Canada

Re: Export/record user data

Postby asic_designer » Tue Dec 10, 2013 4:32 am

Yes you are probably right, I'll give this some thought, I would really like to use the Simulator. I'd even be interested in paying someone to write the patch for me, I have a ton of work on my hands now, adding this to the stack wouldn't be good. :twisted:
asic_designer
 
Posts: 5
Joined: Wed Dec 04, 2013 11:44 pm


Return to SD Physics & Internals

Who is online

Users browsing this forum: No registered users and 1 guest

cron