dynamic-graph
dynamic-graph copied to clipboard
Tracer real-time for double/int/(more?)
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.
For the log, the two functions adding a new line are Tracer::recordSignal and DefaultCastRegister::disp.
Moreover, Eigen vectors are written as in column and not in row.
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 ?