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
25cd8a84
Commit
25cd8a84
authored
Jul 11, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check pc size
parent
3ccfd427
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
CMakeLists.txt.user
CMakeLists.txt.user
+1
-1
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+8
-2
No files found.
CMakeLists.txt.user
View file @
25cd8a84
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.11.1, 2023-06-26T1
8:52:18
. -->
<!-- Written by QtCreator 4.11.1, 2023-06-26T1
9:12:39
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
apps/function/multi_traj_functions.cpp
View file @
25cd8a84
...
...
@@ -436,9 +436,15 @@ vector<CloseTrajInfo> crossFilter(
pcl
::
octree
::
OctreePointCloudSearch
<
PointExport
>
octree
(
resolution
);
octree
.
setInputCloud
(
pointClouds
.
front
());
octree
.
addPointsFromInputCloud
();
pcl
::
io
::
savePCDFileBinary
(
"/tmp/"
+
to_string
(
filteredTaskInfo
[
0
].
meshId
)
+
".pcd"
,
*
pointClouds
[
0
]);
LOG
(
INFO
)
<<
"pointClouds["
<<
0
<<
"]->size(): "
<<
pointClouds
[
0
]
->
size
();
if
(
pointClouds
[
0
]
->
size
()){
pcl
::
io
::
savePCDFileBinary
(
"/tmp/"
+
to_string
(
filteredTaskInfo
[
0
].
meshId
)
+
".pcd"
,
*
pointClouds
[
0
]);
}
for
(
size_t
pcIndex
=
1
;
pcIndex
<
pointClouds
.
size
();
pcIndex
++
){
pcl
::
io
::
savePCDFileBinary
(
"/tmp/"
+
to_string
(
filteredTaskInfo
[
pcIndex
].
meshId
)
+
".pcd"
,
*
pointClouds
[
pcIndex
]);
LOG
(
INFO
)
<<
"pointClouds["
<<
pcIndex
<<
"]->size(): "
<<
pointClouds
[
0
]
->
size
();
if
(
pointClouds
[
0
]
->
size
()){
pcl
::
io
::
savePCDFileBinary
(
"/tmp/"
+
to_string
(
filteredTaskInfo
[
pcIndex
].
meshId
)
+
".pcd"
,
*
pointClouds
[
pcIndex
]);
}
bool
found
=
false
;
bool
inPeriod
=
false
;
uint64_t
start
=
0
,
end
=
0
;
...
...
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