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
ae9077e4
Commit
ae9077e4
authored
Oct 31, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cancel traja time duration
parent
be1956b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+1
-1
trajectory.cpp
libs/trajectory/trajectory.cpp
+13
-12
No files found.
apps/function/multi_traj_functions.cpp
View file @
ae9077e4
...
...
@@ -568,7 +568,7 @@ bool initTrajectory(
auto
trajPath
=
taskInfo
.
trajPath
;
string
trajFileName
=
boost
::
filesystem
::
path
(
trajPath
).
filename
().
string
();
//
LOG(INFO) << "trajFileName: " << trajFileName;
LOG
(
INFO
)
<<
"trajFileName: "
<<
trajFileName
;
if
(
trajFileName
==
"ie.txt"
){
trajectory
.
reset
(
new
Trajectory
(
trajPath
,
PPK
));
}
else
if
(
trajFileName
==
"sample.gps"
){
...
...
libs/trajectory/trajectory.cpp
View file @
ae9077e4
...
...
@@ -351,22 +351,23 @@ void Trajectory::parseAndPush(const vector<string> &vec, uint8_t index)
*
Eigen
::
AngleAxisd
(
ppk_raw_info
.
roll
/
180
*
M_PI
,
Eigen
::
Vector3d
::
UnitY
());
trajPoint
.
nodeId
=
trajectory_
.
size
();
trajPoint
.
timestamp
=
timestamp
;
// if(fabs(trajPoint.timestamp - 1675018189.7) < 0.01){
// LOG(INFO) << "1675018189.7: " << ppk_raw_info.yaw;
// if(trajPoint.timestamp > startTime_ && trajPoint.timestamp < endTime_){
// if(multiTrajectory_[index].size() == 0){
// multiTrajectory_[index].push_back(trajPoint);
// }else{
// if((trajPoint.translation - multiTrajectory_[index].back().translation).norm() > 1){
// multiTrajectory_[index].push_back(trajPoint);
// }
// }
// }
// if(fabs(trajPoint.timestamp - 1675021549.1) < 0.01){
// LOG(INFO) << "1675021549.1: " << ppk_raw_info.yaw;
// }
if
(
trajPoint
.
timestamp
>
startTime_
&&
trajPoint
.
timestamp
<
endTime_
)
{
if
(
multiTrajectory_
[
index
].
size
()
==
0
){
if
(
multiTrajectory_
[
index
].
size
()
==
0
){
multiTrajectory_
[
index
].
push_back
(
trajPoint
);
}
else
{
if
(
(
trajPoint
.
translation
-
multiTrajectory_
[
index
].
back
().
translation
).
norm
()
>
1
){
multiTrajectory_
[
index
].
push_back
(
trajPoint
);
}
else
{
if
((
trajPoint
.
translation
-
multiTrajectory_
[
index
].
back
().
translation
).
norm
()
>
1
){
multiTrajectory_
[
index
].
push_back
(
trajPoint
);
}
}
}
break
;
}
case
NODE
:
...
...
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