Commit eb727a63 authored by wangdawei's avatar wangdawei

valid

parent 25cd8a84
...@@ -112,14 +112,23 @@ bool getTaskInfo( ...@@ -112,14 +112,23 @@ bool getTaskInfo(
uint32_t end_sec; uint32_t end_sec;
getline(iss, subline, ','); getline(iss, subline, ',');
std::istringstream(subline) >> start_week; std::istringstream(subline) >> start_week;
getline(iss, subline, ','); if(start_week > 1e10){
std::istringstream(subline) >> start_sec; taskInfo.startTime = start_week;
getline(iss, subline, ','); uint32_t end_time;
std::istringstream(subline) >> end_week; getline(iss, subline, ',');
getline(iss, subline, ','); std::istringstream(subline) >> end_time;
std::istringstream(subline) >>end_sec; taskInfo.endTime = end_time;
taskInfo.startTime = Trajectory::gpsToUtc(start_week, start_sec);
taskInfo.endTime = Trajectory::gpsToUtc(end_week, end_sec); }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 LOG(INFO) << setprecision(15) << taskPath << " valid startTime: " << taskInfo.startTime
<< " endTime: " << taskInfo.endTime; << " 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