Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
multiTraj
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangdawei
multiTraj
Commits
eb727a63
Commit
eb727a63
authored
Jul 11, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
valid
parent
25cd8a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+17
-8
No files found.
apps/function/multi_traj_functions.cpp
View file @
eb727a63
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment