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
5e941489
Commit
5e941489
authored
Mar 04, 2022
by
limingbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
11051c33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CMakeLists.txt.user
CMakeLists.txt.user
+1
-1
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+4
-2
multi_traj_functions.h
apps/function/multi_traj_functions.h
+1
-0
No files found.
CMakeLists.txt.user
View file @
5e941489
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.2, 2022-0
2-28T19:02:00
. -->
<!-- Written by QtCreator 4.5.2, 2022-0
3-04T11:51:45
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
apps/function/multi_traj_functions.cpp
View file @
5e941489
...
...
@@ -91,6 +91,8 @@ bool getTaskInfo(
if
(
exists
(
meshOutPath
)){
taskInfo
.
meshOutPath
=
meshOutPath
;
}
taskInfo
.
meshId
=
stoi
(
boost
::
filesystem
::
path
(
taskPath
).
filename
().
string
());
return
true
;
}
...
...
@@ -173,9 +175,9 @@ vector<pair<string, vector<pair<uint64_t, uint64_t>>>> crossFilter(
pcl
::
octree
::
OctreePointCloudSearch
<
PointExport
>
octree
(
resolution
);
octree
.
setInputCloud
(
pointClouds
.
front
());
octree
.
addPointsFromInputCloud
();
pcl
::
io
::
savePCDFileBinary
(
"/home/juefx/
0
.pcd"
,
*
pointClouds
[
0
]);
pcl
::
io
::
savePCDFileBinary
(
"/home/juefx/
"
+
to_string
(
filteredTaskInfo
[
0
].
meshId
)
+
"
.pcd"
,
*
pointClouds
[
0
]);
for
(
size_t
pcIndex
=
1
;
pcIndex
<
pointClouds
.
size
();
pcIndex
++
){
pcl
::
io
::
savePCDFileBinary
(
"/home/juefx/"
+
to_string
(
pcIndex
)
+
".pcd"
,
*
pointClouds
[
pcIndex
]);
pcl
::
io
::
savePCDFileBinary
(
"/home/juefx/"
+
to_string
(
filteredTaskInfo
[
i
].
meshId
)
+
".pcd"
,
*
pointClouds
[
pcIndex
]);
bool
found
=
false
;
bool
inPeriod
=
false
;
uint64_t
start
=
0
,
end
=
0
;
...
...
apps/function/multi_traj_functions.h
View file @
5e941489
...
...
@@ -9,6 +9,7 @@ struct TaskInfo{
string
taskPath
=
""
;
string
trajPath
=
""
;
string
meshOutPath
=
""
;
uint32_t
meshId
=
0
;
};
vector
<
string
>
getActiveTraces
(
...
...
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