Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
localize_for_ppk
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
localize_for_ppk
Commits
6ed1a7ee
Commit
6ed1a7ee
authored
May 31, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
a0457f09
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
fast_voxel_matcher.cc
libs/localize/voxel_map/fast_voxel_matcher.cc
+3
-1
voxel_map_matcher.cc
libs/localize/voxel_map_matcher.cc
+0
-1
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+9
-7
mesharea.cpp
libs/voxel_map/libs/area/mesharea.cpp
+2
-2
No files found.
libs/localize/voxel_map/fast_voxel_matcher.cc
View file @
6ed1a7ee
...
...
@@ -382,7 +382,9 @@ void FastVoxelMatcher::ScoreCandidates(const VoxelMap &voxel_map,
no_map_cnt
++
;
}
}
LOG
(
INFO
)
<<
"grid_indexes: "
<<
candidates
->
front
().
scan
->
grid_indexes
.
size
()
<<
", no_map_cnt: "
<<
no_map_cnt
;
LOG
(
INFO
)
<<
"search_depth: "
<<
candidates
->
front
().
search_depth
<<
" grid_indexes: "
<<
candidates
->
front
().
scan
->
grid_indexes
.
size
()
<<
", no_map_cnt: "
<<
no_map_cnt
;
}
if
(
0
!=
no_map_cnt
)
{
float
multi
=
(
float
)
candidates
->
front
().
scan
->
grid_indexes
.
size
()
/
...
...
libs/localize/voxel_map_matcher.cc
View file @
6ed1a7ee
...
...
@@ -46,7 +46,6 @@ inline float fast_match(FastVoxelMatcher *matcher, const VoxelMap *map, const Fa
if
(
result
!=
NULL
)
{
estimate_pose
=
result
->
pose_estimate
.
cast
<
double
>
();
LOG
(
INFO
)
<<
"estimate_pose.translation(): "
<<
estimate_pose
.
translation
().
transpose
();
#ifdef VOXEL_MAP_DEBUG
char
buf
[
200
];
// add by weiji: Trans from estimate to predict
...
...
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
6ed1a7ee
...
...
@@ -382,10 +382,12 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
GnssPoint
finalGnssPose
;
GuessPose
guessPose
;
guessPose
.
map_point
=
mapPose_
;
auto
increaseRpy
=
RotationQuaternionToEulerVector
(
Quaterniond
(
cloudInfo
.
filterPoseInfo
.
increasePose
.
linear
()));
guessPose
.
movement
=
cloudInfo
.
filterPoseInfo
.
increasePose
.
translation
().
norm
();
guessPose
.
rotation
=
fabs
(
increaseRpy
.
z
());
// auto increaseRpy = RotationQuaternionToEulerVector(
// Quaterniond(cloudInfo.filterPoseInfo.increasePose.linear()));
// guessPose.movement = cloudInfo.filterPoseInfo.increasePose.translation().norm();
// guessPose.rotation = fabs(increaseRpy.z());
guessPose
.
movement
=
0.6
;
guessPose
.
rotation
=
0.003
;
guessPose
.
use_gnss
=
false
;
if
(
!
currMatcher_
->
IsMapLoaded
(
mapPose_
.
translation
())){
currMatcher_
->
loadArea
(
mapPose_
.
translation
());
...
...
@@ -484,10 +486,10 @@ bool AdjustPPK::LoadMesh(const string &streamPath, boost::shared_ptr<VoxelMapMat
LOG
(
INFO
)
<<
"mesh to load: "
<<
streamPath
;
VoxelMapMatcherOption
option
;
option
.
option
.
filter_resolution
=
1.
0
;
option
.
option
.
filter_resolution
=
1.
2
;
option
.
option
.
cloud_range
=
80
;
option
.
fast_option
.
accepted_score
=
0.
35
;
option
.
fast_option
.
accepted_low_score
=
0.
4
5
;
option
.
fast_option
.
accepted_score
=
0.
4
;
option
.
fast_option
.
accepted_low_score
=
0.5
;
matcher
.
reset
(
new
VoxelMapMatcher
(
option
));
matcher
->
SetMapPath
(
streamPath
);
return
true
;
...
...
libs/voxel_map/libs/area/mesharea.cpp
View file @
6ed1a7ee
...
...
@@ -270,7 +270,6 @@ void MeshArea::loadBlockAtArea(const Vector3d &position)
uint16_t
blockCntLoaded
=
0
;
Vector2i
centerIndex
=
calShiftedIndex
(
position
.
x
(),
position
.
y
());
LOG
(
INFO
)
<<
"shiftedIndexToLoad: "
<<
centerIndex
.
transpose
();
vector
<
Vector2i
>
neighbors
;
if
(
fstLoadMap
){
neighbors
=
firstLoadNeighbors_
;
...
...
@@ -324,7 +323,8 @@ void MeshArea::loadBlockAtArea(const Vector3d &position)
blockContent
.
blockState
=
Empty
;
}
}
LOG
(
INFO
)
<<
"blockCntLoaded: "
<<
blockCntLoaded
;
// LOG(INFO) << "shiftedIndexToLoad: " << centerIndex.transpose()
// << " blockCntLoaded: " <<blockCntLoaded;
}
}
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