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
3a66a0a2
Commit
3a66a0a2
authored
2 years ago
by
limingbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add period
parent
9aec7740
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+6
-6
multi_traj_functions.h
apps/function/multi_traj_functions.h
+2
-2
multi_traj.cpp
apps/multi_traj.cpp
+1
-1
pcl_point_type.h
libs/utils/pcl_point_type.h
+2
-2
No files found.
apps/function/multi_traj_functions.cpp
View file @
3a66a0a2
...
...
@@ -22,7 +22,7 @@ vector<string> getActiveTraces(
void
getCrossTasks
(
const
vector
<
string
>
&
allTask
,
vector
<
pair
<
string
,
vector
<
pair
<
float
,
float
>>>>
&
crossTasks
)
vector
<
pair
<
string
,
vector
<
pair
<
double
,
double
>>>>
&
crossTasks
)
{
if
(
allTask
.
size
()
<
2
){
return
;
...
...
@@ -152,9 +152,9 @@ bool checkMeshOut(
return
false
;
}
vector
<
pair
<
string
,
vector
<
pair
<
float
,
float
>>>>
crossFilter
(
vector
<
pair
<
string
,
vector
<
pair
<
double
,
double
>>>>
crossFilter
(
const
vector
<
TaskInfo
>
&
filteredTaskInfo
){
vector
<
pair
<
string
,
vector
<
pair
<
float
,
float
>>>>
ret
;
vector
<
pair
<
string
,
vector
<
pair
<
double
,
double
>>>>
ret
;
if
(
filteredTaskInfo
.
size
()
<
2
){
return
ret
;
}
...
...
@@ -176,9 +176,9 @@ vector<pair<string, vector<pair<float, float>>>> crossFilter(
for
(
size_t
pcIndex
=
1
;
pcIndex
<
pointClouds
.
size
();
pcIndex
++
){
bool
found
=
false
;
bool
inPeriod
=
false
;
float
start
=
0
,
end
=
0
;
pair
<
string
,
vector
<
pair
<
float
,
float
>>>
oneRet
;
vector
<
pair
<
float
,
float
>>
timePeriods
;
double
start
=
0
,
end
=
0
;
pair
<
string
,
vector
<
pair
<
double
,
double
>>>
oneRet
;
vector
<
pair
<
double
,
double
>>
timePeriods
;
float
currTime
;
for
(
const
PointExport
&
query
:
pointClouds
[
pcIndex
]
->
points
){
int
result_index
;
...
...
This diff is collapsed.
Click to expand it.
apps/function/multi_traj_functions.h
View file @
3a66a0a2
...
...
@@ -20,7 +20,7 @@ vector<string> getCloseTasks(
void
getCrossTasks
(
const
vector
<
string
>
&
allTask
,
vector
<
pair
<
string
,
vector
<
pair
<
float
,
float
>
>
>
>
&
crossTasks
);
vector
<
pair
<
string
,
vector
<
pair
<
double
,
double
>
>
>
>
&
crossTasks
);
bool
getTaskInfo
(
const
string
&
taskPath
,
...
...
@@ -37,7 +37,7 @@ bool checkMeshOut(
const
MeshOut
&
query
,
const
MeshOut
&
target
);
vector
<
pair
<
string
,
vector
<
pair
<
float
,
float
>>>
>
crossFilter
(
vector
<
pair
<
string
,
vector
<
pair
<
double
,
double
>
>
>
>
crossFilter
(
const
vector
<
TaskInfo
>
&
filteredTaskInfo
);
bool
initTrajectory
(
const
string
&
trajPath
,
...
...
This diff is collapsed.
Click to expand it.
apps/multi_traj.cpp
View file @
3a66a0a2
...
...
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
}
activeTraces
.
insert
(
activeTraces
.
begin
(),
FLAGS_base_dir
);
vector
<
pair
<
string
,
vector
<
pair
<
float
,
float
>>>>
crossTasks
;
vector
<
pair
<
string
,
vector
<
pair
<
double
,
double
>>>>
crossTasks
;
getCrossTasks
(
activeTraces
,
crossTasks
);
if
(
crossTasks
.
size
()
==
0
){
LOG
(
WARNING
)
<<
"crossTasks.size() == 0"
;
...
...
This diff is collapsed.
Click to expand it.
libs/utils/pcl_point_type.h
View file @
3a66a0a2
...
...
@@ -58,14 +58,14 @@ struct PointExport {
PCL_ADD_RGB
float
intensity
=
0
;
float
label
=
0
;
float
info
=
0
;
double
info
=
0
;
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
// make sure our new allocators are aligned
}
EIGEN_ALIGN16
;
}
//end namespace pcl
POINT_CLOUD_REGISTER_POINT_STRUCT
(
pcl
::
PointExport
,
(
float
,
x
,
x
)(
float
,
y
,
y
)(
float
,
z
,
z
)(
float
,
rgb
,
rgb
)
(
float
,
intensity
,
intensity
)(
float
,
label
,
label
)(
float
,
info
,
info
))
(
float
,
intensity
,
intensity
)(
float
,
label
,
label
)(
double
,
info
,
info
))
typedef
pcl
::
PointExport
PointExport
;
typedef
pcl
::
PointCloud
<
PointExport
>
PointCloudExport
;
...
...
This diff is collapsed.
Click to expand it.
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