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
3ccfd427
Commit
3ccfd427
authored
Jun 26, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
60-80
parent
60ddb464
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
CMakeLists.txt.user
CMakeLists.txt.user
+0
-0
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+8
-8
No files found.
CMakeLists.txt.user
View file @
3ccfd427
This diff is collapsed.
Click to expand it.
apps/function/multi_traj_functions.cpp
View file @
3ccfd427
...
...
@@ -2,8 +2,8 @@
#include <pcl/octree/octree.h>
using
namespace
boost
::
filesystem
;
const
float
Squared
30
=
30
*
3
0
;
const
float
Squared
40
=
40
*
4
0
;
const
float
Squared
_in
=
60
*
6
0
;
const
float
Squared
_out
=
80
*
8
0
;
vector
<
string
>
getActiveTraces
(
const
string
&
activeTracePath
)
...
...
@@ -286,7 +286,7 @@ void filterByPosition(
closeDirection
=
true
;
}
if
(
inPeriod
){
if
(
sqr_distance
<
Squared
30
&&
closeDirection
){
if
(
sqr_distance
<
Squared
_in
&&
closeDirection
){
end
=
query
.
info
;
inPeriod
=
false
;
if
(
end
-
start
>
1
){
...
...
@@ -300,7 +300,7 @@ void filterByPosition(
filterdPeriod
.
push_back
(
query
);
}
}
else
{
if
(
sqr_distance
>
Squared
30
||
!
closeDirection
){
if
(
sqr_distance
>
Squared
_in
||
!
closeDirection
){
start
=
query
.
info
;
inPeriod
=
true
;
filterdPeriod
.
push_back
(
query
);
...
...
@@ -480,8 +480,8 @@ vector<CloseTrajInfo> crossFilter(
}
}
if
(
inPeriod
){
if
(
sqr_distance
>
Squared
40
||
(
self_sqr_distance
>=
0
&&
self_sqr_distance
<
Squared
30
&&
closeDirection
)){
if
(
sqr_distance
>
Squared
_out
||
(
self_sqr_distance
>=
0
&&
self_sqr_distance
<
Squared
_in
&&
closeDirection
)){
end
=
query
.
info
;
inPeriod
=
false
;
timePeriods
.
push_back
(
make_pair
(
start
,
end
));
...
...
@@ -493,8 +493,8 @@ vector<CloseTrajInfo> crossFilter(
filterdPeriod
.
push_back
(
query
);
}
}
else
{
if
(
sqr_distance
<
Squared
30
&&
(
-
1
==
self_sqr_distance
||
self_sqr_distance
>=
Squared
30
||
!
closeDirection
)){
if
(
sqr_distance
<
Squared
_in
&&
(
-
1
==
self_sqr_distance
||
self_sqr_distance
>=
Squared
_in
||
!
closeDirection
)){
start
=
query
.
info
;
inPeriod
=
true
;
found
=
true
;
...
...
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