Skip to content

Commit

Permalink
another warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shaozu committed Jan 23, 2018
1 parent 649c0ba commit 6b9760e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions benchmark_publisher/src/benchmark_publisher_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ struct Data
{
Data(FILE *f)
{
fscanf(f, " %lf,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f", &t,
if (fscanf(f, " %lf,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f", &t,
&px, &py, &pz,
&qw, &qx, &qy, &qz,
&vx, &vy, &vz,
&wx, &wy, &wz,
&ax, &ay, &az);
t /= 1e9;
&ax, &ay, &az) != EOF)
{
t /= 1e9;
}
}
double t;
float px, py, pz;
Expand Down Expand Up @@ -138,7 +140,10 @@ int main(int argc, char **argv)
return 0;
}
char tmp[10000];
fgets(tmp, 10000, f);
if (fgets(tmp, 10000, f) == NULL)
{
ROS_WARN("can't load ground truth; no data available");
}
while (!feof(f))
benchmark.emplace_back(f);
fclose(f);
Expand Down

0 comments on commit 6b9760e

Please sign in to comment.