I have some Pose Update rostopic data that I wrote onto a csv file using rostopic echo /foo > foo.csv
foo.csv looks like:
%time,field
1539675906586600065,0.157465848996
1539675906587352037,0.160723703902
1539675906587656974,0.161057770877
1539675906587693929,0.161579636574
I'm trying to import this into Octave for further processing but it's not exactly a constant delimiter and I have had no luck with dlmread or dlmwrite.
I tried
nsec = dlmread (nsecval,"\n",r1,c1)
error: 'nsecval' undefined near line 1 column 17 error: evaluating argument list element number 1`
I need to:
- Ignore the first row with %time, field
- Take only the second part of each row e.g. 0.157465848996
- Convert the spaces into a format that dlmread or csvread can work with
- Convert all of those values into a column of a matrix.
E.g.
0.157465848996
0.160723703902
0.161057770877
0.161579636574
I'm really new to Octave and scientific computing in general and would really appreciate some help.