On 05/04/12 04:33, nabaraj dahal wrote:
> Hi torcs-users,
>
> I am a novice user of this software.
> I was attracted to this software because it might me useful for me for
> my experimental setup for my research purpose.
> I need to track the behavior of driving like pressing of brake and gas
> pedal by exporting the marker to the next computer in real time through
> serial port. The marker can be any data like digits 1 ,2 etc that would
> indicate the precise timing of application of brake or gas pedal.
> Will someone suggest me whether it is feasible to do such thing in this
> software.
> If yes, will some one please advice me the way of doing it.
>
> Regard,
> Nabaraj Dahal
> University of South Australia.
>
>
Hi,
I think I can see where you're going with this and it's something I've
wanted to do for years but never got to the top of my priority list.
You probably want to output the time and an identifier for the event (
and likely some other supplementary data like direction/magnitude in
some cases).
Fairly obviously, you just hack into the code where it starts
calculating the response to the brake pedal event , output your line of
data, and continue.
> I am a novice user of this software.
Are you also a novice programmer? Unless I'm misunderstanding your
question it seems a bit obvious. Maybe you could specify better what you
are wanting to do and why you are stuck.
You could write this to a file or a pipe, the file could /dev/ttyS0
(assuming linux/unix system, you don't specify). Writing timing data as
well would mean you don't need to be hard real time (which may not be
reactive enough) , you could even process it later depending upon
exactly what you're doing.
If you can better explain what you are aiming to do , without giving
away any secrets, it may help to give better advice.
best regards.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.