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
c8401a71
Commit
c8401a71
authored
Aug 26, 2022
by
limingbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order timestamp
parent
6daaa8b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt.user
CMakeLists.txt.user
+1
-1
multi_traj.cpp
apps/multi_traj.cpp
+5
-1
No files found.
CMakeLists.txt.user
View file @
c8401a71
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.2, 2022-07-04T1
3:50:33
. -->
<!-- Written by QtCreator 4.5.2, 2022-07-04T1
5:04:40
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
apps/multi_traj.cpp
View file @
c8401a71
...
...
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
}
for
(
auto
task
:
crossTasks
){
LOG
(
INFO
)
<<
"cross task che
kc
in: "
<<
task
.
trajPath
;
LOG
(
INFO
)
<<
"cross task che
ck
in: "
<<
task
.
trajPath
;
}
string
outputPath
=
FLAGS_base_dir
+
"/multiTraj.txt"
;
...
...
@@ -62,6 +62,10 @@ int main(int argc, char *argv[])
for
(
auto
task
:
crossTasks
){
uint32_t
meshId
=
stoi
(
boost
::
filesystem
::
path
(
task
.
trajPath
).
filename
().
string
());
sort
(
task
.
periods
.
begin
(),
task
.
periods
.
end
(),
[](
const
auto
&
query
,
const
auto
&
target
)
{
return
query
.
first
<
target
.
first
;
});
ofs
<<
meshId
;
for
(
auto
period
:
task
.
periods
){
ofs
<<
setprecision
(
15
)
<<
" "
<<
period
.
first
<<
" "
<<
period
.
second
-
period
.
first
;
...
...
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