Commit eb727a63 authored by wangdawei's avatar wangdawei

valid

parent 25cd8a84
...@@ -112,6 +112,14 @@ bool getTaskInfo( ...@@ -112,6 +112,14 @@ 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;
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, ','); getline(iss, subline, ',');
std::istringstream(subline) >> start_sec; std::istringstream(subline) >> start_sec;
getline(iss, subline, ','); getline(iss, subline, ',');
...@@ -120,6 +128,7 @@ bool getTaskInfo( ...@@ -120,6 +128,7 @@ bool getTaskInfo(
std::istringstream(subline) >>end_sec; std::istringstream(subline) >>end_sec;
taskInfo.startTime = Trajectory::gpsToUtc(start_week, start_sec); taskInfo.startTime = Trajectory::gpsToUtc(start_week, start_sec);
taskInfo.endTime = Trajectory::gpsToUtc(end_week, end_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