diff options
author | Martin Miller | 2017-03-19 15:16:01 -0500 |
---|---|---|
committer | Martin Miller | 2017-03-19 15:16:01 -0500 |
commit | b0d5345cb36ad7dc82eb6fccd9521d1f09d4f6b7 (patch) | |
tree | e408eb730b20e22a205ae6cf6e259a67a555c32d /src | |
parent | 92e9c6c89ec789926084e885d6439a3477b91b04 (diff) | |
download | refslam-b0d5345cb36ad7dc82eb6fccd9521d1f09d4f6b7.zip refslam-b0d5345cb36ad7dc82eb6fccd9521d1f09d4f6b7.tar.gz |
Fix img handling
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 9 | ||||
-rw-r--r-- | src/main.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index f1f2cd8..f1f192c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,7 +43,7 @@ covCallback(const message &msg, State &mu, const Quaterniond &q) } void -imgCallback(const message *msg) +imgCallback(const message &msg) { return; } @@ -127,11 +127,10 @@ parseLine(char *line, message *data) &data->utm.up); } else if (!strcmp(msg_type,"IMG")) { data->msg_type = IMG; - char *lfn,*rfn; + char *lfn; lfn = strsep(&line, ","); sscanf(lfn, "%s", &data->image_names); - rfn = strsep(&line, ","); - sscanf(rfn, "%s", &data->image_names+1); + sscanf(line, "%s", &data->image_names[1]); } else if (!strcmp(msg_type,"inscovs")) { double pos[9]; double att[9]; @@ -242,7 +241,7 @@ while (scanf("%s", line)!=EOF) { break; case IMG: - imgCallback(&msg); + imgCallback(msg); break; case INSPVAS: @@ -21,7 +21,7 @@ int parseLine(char *line, message *msg); timestamp update_dt(const timestamp t, timestamp *t_old); void covCallback(const message &msg, Matrix<double,9,9> &P, const Quaterniond &q); -void imgCallback(const message *msg); +void imgCallback(const message &msg); void imuCallback(const message &msg, State &mu, const Quaterniond &q, const timestamp dt); void pvaCallback(const message &msg, Matrix<double,9,1> &X, Quaterniond &q); void utmCallback(const message &msg, State &mu); |