dynamic-graph icon indicating copy to clipboard operation
dynamic-graph copied to clipboard

Tracer real-time for double/int/(more?)

Open MaximilienNaveau opened this issue 5 years ago • 3 comments

What I noticed:

I noticed that upon tracing a signal of type int or double the output file contains extra endline character.

For example:

1	1

2	1

3	1

Where the first column is the time and the second column is the data.

Potential Solution:

I suspect the tracer to dump an extra end line upon writing data that are not Eigen::Matrix. I did not look at the tracer code yet.

MaximilienNaveau avatar Feb 10 '20 12:02 MaximilienNaveau

For the log, the two functions adding a new line are Tracer::recordSignal and DefaultCastRegister::disp.

jmirabel avatar Feb 10 '20 14:02 jmirabel

Moreover, Eigen vectors are written as in column and not in row.

jmirabel avatar Feb 25 '20 17:02 jmirabel

Dear Maximilien, Sorry again for the time taken, but right now, the real time tracer is recording information according to https://github.com/stack-of-tasks/dynamic-graph/blob/0a0da890aa066ec1fd5b884c647d0bb871ec72f3/src/traces/tracer-real-time.cpp#L266 therefore it follows the tracer format specified by https://github.com/stack-of-tasks/dynamic-graph/blob/0a0da890aa066ec1fd5b884c647d0bb871ec72f3/src/traces/tracer.cpp#L220

So the added information is the time. Could you propose another mechanism if the format does not suits you ?

olivier-stasse avatar May 21 '20 10:05 olivier-stasse