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
4b2551ef
Commit
4b2551ef
authored
Jan 05, 2022
by
limingbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
437dabf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
multi_traj.cpp
apps/multi_traj.cpp
+12
-8
No files found.
apps/multi_traj.cpp
View file @
4b2551ef
...
...
@@ -37,22 +37,26 @@ int main(int argc, char *argv[])
vector
<
string
>
crossTasks
;
getCrossTasks
(
activeTraces
,
crossTasks
);
if
(
crossTasks
.
size
()
==
0
){
LOG
(
WARNING
)
<<
"crossTasks.size() == 0"
;
}
sort
(
crossTasks
.
begin
(),
crossTasks
.
end
(),
[](
const
string
&
query
,
const
string
&
target
)
{
return
stoi
(
boost
::
filesystem
::
path
(
query
).
filename
().
string
())
>
return
stoi
(
boost
::
filesystem
::
path
(
query
).
filename
().
string
())
<
stoi
(
boost
::
filesystem
::
path
(
target
).
filename
().
string
());
});
for
(
string
task
:
crossTasks
){
LOG
(
INFO
)
<<
"cross task chekc in: "
<<
task
;
}
// string outputPath = FLAGS_base_dir + "/slam/cartographer.bag.pbstream.interpolated.pose";
// std::ofstream ofs(outputPath);
// if(!ofs){
// LOG(WARNING) << outputPath << " load fail!";
// return 0;
// }
// ofs.close();
string
outputPath
=
FLAGS_base_dir
+
"/multiTraj.txt"
;
std
::
ofstream
ofs
(
outputPath
);
if
(
!
ofs
){
LOG
(
WARNING
)
<<
outputPath
<<
" load fail!"
;
return
0
;
}
ofs
<<
crossTasks
.
back
()
<<
std
::
endl
;
ofs
.
close
();
return
1
;
}
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