Commit eb727a63 authored by wangdawei's avatar wangdawei

valid

parent 25cd8a84
......@@ -112,14 +112,23 @@ bool getTaskInfo(
uint32_t end_sec;
getline(iss, subline, ',');
std::istringstream(subline) >> start_week;
getline(iss, subline, ',');
std::istringstream(subline) >> start_sec;
getline(iss, subline, ',');
std::istringstream(subline) >> end_week;
getline(iss, subline, ',');
std::istringstream(subline) >>end_sec;
taskInfo.startTime = Trajectory::gpsToUtc(start_week, start_sec);
taskInfo.endTime = Trajectory::gpsToUtc(end_week, end_sec);
if(start_week > 1e10){
taskInfo.startTime = start_week;
uint32_t end_time;
getline(iss, subline, ',');
std::istringstream(subline) >> end_time;
taskInfo.endTime = end_time;
}else{
getline(iss, subline, ',');
std::istringstream(subline) >> start_sec;
getline(iss, subline, ',');
std::istringstream(subline) >> end_week;
getline(iss, subline, ',');
std::istringstream(subline) >>end_sec;
taskInfo.startTime = Trajectory::gpsToUtc(start_week, start_sec);
taskInfo.endTime = Trajectory::gpsToUtc(end_week, end_sec);
}
LOG(INFO) << setprecision(15) << taskPath << " valid startTime: " << taskInfo.startTime
<< " endTime: " << taskInfo.endTime;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment