Difference between revisions of "Robotics-lab6-data"
Jump to navigation
Jump to search
(First Entry) |
|||
Line 1: | Line 1: | ||
+ | = Comma Separated Value (CSV) Data Format = | ||
We are looking to store the following information for each data point in our data file | We are looking to store the following information for each data point in our data file | ||
− | * identifiers for each | + | * identifiers for each compass sensors used in the reading [S1, S2, ... Sn] |
− | * | + | * the room where the reading was taken [{D124, D128, D129}] |
− | * from which tile | + | * from which tile the readings were taken [x,y] |
− | * when | + | * when the measurement was taken [timestamp: seconds since epoch] |
* what values we expected to get [E1, E2, ... En] | * what values we expected to get [E1, E2, ... En] | ||
* what values we actually read [R1, R2, ... Rn] | * what values we actually read [R1, R2, ... Rn] | ||
− | The following example shows a single line | + | The following example shows a single line i the data file. It represents the readings from a tile at position (7, -10) in Dennis 128. In the CSV format, strings are enclosed in quotation marks only if they contain special characters (commas, newlines etc.). Spaces are omitted unless they are part of the data, blank entries are represented as "" and quotation marks within the data are escaped by placing a second quotation mark beside it. |
sensor 1,sensor 4,sensor 7,sensor 12,D128,7,-10,1270320318,0,90,180,270,355,97,186,265 | sensor 1,sensor 4,sensor 7,sensor 12,D128,7,-10,1270320318,0,90,180,270,355,97,186,265 |
Revision as of 13:57, 3 April 2010
Comma Separated Value (CSV) Data Format
We are looking to store the following information for each data point in our data file
- identifiers for each compass sensors used in the reading [S1, S2, ... Sn]
- the room where the reading was taken [{D124, D128, D129}]
- from which tile the readings were taken [x,y]
- when the measurement was taken [timestamp: seconds since epoch]
- what values we expected to get [E1, E2, ... En]
- what values we actually read [R1, R2, ... Rn]
The following example shows a single line i the data file. It represents the readings from a tile at position (7, -10) in Dennis 128. In the CSV format, strings are enclosed in quotation marks only if they contain special characters (commas, newlines etc.). Spaces are omitted unless they are part of the data, blank entries are represented as "" and quotation marks within the data are escaped by placing a second quotation mark beside it.
sensor 1,sensor 4,sensor 7,sensor 12,D128,7,-10,1270320318,0,90,180,270,355,97,186,265
or generally
S1,S2,S3,S4,{D124,D128,D129},x,y,timestamp,E1,E2,E3,E4,R1,R2,R3,R4