Skip to content

Read Csv Data #1

@difrancosimone

Description

@difrancosimone

Hi Nils,

i'm trying to import data from a csv using the functions:

csv_data.csv_nav_entry.parse_file(filepathname)
utils.parse_or_load_csv(filepathname)

but data is not parsed correctly, i have some csv files as follow:

rosbagTimestamp,header,seq,stamp,secs,nsecs,frame_id,position,latitude,longitude,depth,fix,h_dop,p_acc,s_acc,speed,x,y,z,utc_time,iTOW,tAcc,nano,year,month,day,hour,min,sec,valid
1575545418841774064,,10287,,1575545418,772044525,'',,43.8385568,10.8102144,0.0,1,1.22000002861,0.432000011206,0.00999999977648,,0.038,-0.014,-0.008,,387039900,1,900395048,2019,12,5,11,30,21,1
1575545418873250316,,10288,,1575545418,872536127,'',,43.8385568,10.8102144,0.0,1,1.22000002861,0.430999994278,0.00999999977648,,0.038,-0.014,-0.008,,387040000,1,395036,2019,12,5,11,30,22,1
.......

rosbagTimestamp,header,seq,stamp,secs,nsecs,frame_id,position,latitude,longitude,depth,fix,h_dop,p_acc,s_acc,speed,x,y,z,utc_time,iTOW,tAcc,nano,year,month,day,hour,min,sec,valid
1575545418841774064,,10287,,1575545418,772044525,'',,43.8385568,10.8102144,0.0,1,1.22000002861,0.432000011206,0.00999999977648,,0.038,-0.014,-0.008,,387039900,1,900395048,2019,12,5,11,30,21,1
1575545418873250316,,10288,,1575545418,872536127,'',,43.8385568,10.8102144,0.0,1,1.22000002861,0.430999994278,0.00999999977648,,0.038,-0.014,-0.008,,387040000,1,395036,2019,12,5,11,30,22,1
.....

rosbagTimestamp,header,seq,stamp,secs,nsecs,frame_id,left_beam,layout,dim,data_offset,data,right_beam,layout,dim,data_offset,data
1575545418842649766,,7378,,0,0,'',,,[],0,"[94, 97, 96, 98, 95, 91, 94, 92, 95, 95, 96, 96, 92, 96, 139, 154, 156, 154, 157, 151, 145, 142, 151, 151, 149, 141, 140, 142, 137, 132, 131, 146, 146, 141, 136, 136, 130, 129, 130, 129, 129, 124, 128, 128, 116, 113, 116, 117, 122, 123, 107, 107, 108, 106, 106, 112, 106, 106, 100, 101, 101, 96, 96, 98, 96, 97, 98, 97, 99, 101, 97, 104, 114, 122, 134, 132, 137, 137, 136, 133, 133, 133, 135, 134, 126, 126, 130, 141, 144, 144, 144, 141, 140, 139, 139, 146, 146, 129, 126, 133, 134, 134, 135, 125, 136, 137, 138, 129, 140, 138, 131, 132, 130, 128, 124, 126, 135, 132, 133, 133, 128, 124, 121, 117, 131, 128, 121, 120, 119, 113, 117, 120, 120, 121, 121, 130, 128, 128, 121, 124, 125, 124, 123, 123, 125, 125, 130, 129, 128, 129, 121, 125, 120, 122, 127, 120, 134, 136, 111, 112, 117, .......
......

I checked the repo and docs but i can't find a sample csv or input csv file definition.

My environment is: Ubuntu 18.04, Python2.7 with last auvlib available.

Thank you in advance.
Simone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions