Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LIO-SAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Siyuan Ren
LIO-SAM
Commits
a53730e9
Commit
a53730e9
authored
4 years ago
by
tixiaoshan
Browse files
Options
Downloads
Patches
Plain Diff
minor bug fix
parent
18ebdbe1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mapOptmization.cpp
+6
-4
6 additions, 4 deletions
src/mapOptmization.cpp
with
6 additions
and
4 deletions
src/mapOptmization.cpp
+
6
−
4
View file @
a53730e9
...
...
@@ -128,7 +128,7 @@ public:
std
::
mutex
mtxLoopInfo
;
bool
isDegenerate
=
false
;
Eigen
::
Matrix
<
float
,
6
,
6
>
matP
;
cv
::
Mat
matP
;
int
laserCloudCornerFromMapDSNum
=
0
;
int
laserCloudSurfFromMapDSNum
=
0
;
...
...
@@ -222,7 +222,7 @@ public:
transformTobeMapped
[
i
]
=
0
;
}
matP
.
setZero
(
);
matP
=
cv
::
Mat
(
6
,
6
,
CV_32F
,
cv
::
Scalar
::
all
(
0
)
);
}
void
laserCloudInfoHandler
(
const
lio_sam
::
cloud_infoConstPtr
&
msgIn
)
...
...
@@ -671,6 +671,9 @@ public:
void
visualizeLoopClosure
()
{
if
(
loopIndexContainer
.
empty
())
return
;
visualization_msgs
::
MarkerArray
markerArray
;
// loop nodes
visualization_msgs
::
Marker
markerNode
;
...
...
@@ -693,7 +696,7 @@ public:
markerEdge
.
ns
=
"loop_edges"
;
markerEdge
.
id
=
1
;
markerEdge
.
pose
.
orientation
.
w
=
1
;
markerEdge
.
scale
.
x
=
0.1
;
markerEdge
.
scale
.
y
=
0.1
;
markerEdge
.
scale
.
z
=
0.1
;
markerEdge
.
scale
.
x
=
0.1
;
markerEdge
.
color
.
r
=
0.9
;
markerEdge
.
color
.
g
=
0.9
;
markerEdge
.
color
.
b
=
0
;
markerEdge
.
color
.
a
=
1
;
...
...
@@ -1126,7 +1129,6 @@ public:
cv
::
Mat
matB
(
laserCloudSelNum
,
1
,
CV_32F
,
cv
::
Scalar
::
all
(
0
));
cv
::
Mat
matAtB
(
6
,
1
,
CV_32F
,
cv
::
Scalar
::
all
(
0
));
cv
::
Mat
matX
(
6
,
1
,
CV_32F
,
cv
::
Scalar
::
all
(
0
));
cv
::
Mat
matP
(
6
,
6
,
CV_32F
,
cv
::
Scalar
::
all
(
0
));
PointType
pointOri
,
coeff
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment