Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mobile_robotics
ADC
ADC_2021
iri_adc_landmarks_slam_solver
Commits
fab69366
Commit
fab69366
authored
Nov 09, 2021
by
Alejandro Lopez Gestoso
Browse files
Fixed bug accessing always front_features_stamp
parent
622c6ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/adc_landmarks_slam_solver_alg_node.cpp
View file @
fab69366
...
...
@@ -708,7 +708,7 @@ bool AdcLandmarksSlamSolverAlgNode::check_landmarks(bool _update_landmarks, bool
landmark
.
source_frame_id
=
(
_front
?
this
->
front_features_frame_
:
this
->
rear_features_frame_
);
landmark
.
type
=
(
_front
?
this
->
front_features_
:
this
->
rear_features_
)[
i
].
type
;
landmark
.
fixed
=
false
;
double
landmark_key
=
std
::
fmod
(
this
->
front_
features_stamp_
.
toSec
(),
L_KEY_DIV
)
*
100
+
i
;
double
landmark_key
=
std
::
fmod
(
this
->
features_stamp_
.
toSec
(),
L_KEY_DIV
)
*
100
+
i
;
(
_front
?
this
->
front_features_
:
this
->
rear_features_
)[
i
].
landmark_key
=
landmark_key
;
this
->
alg_
.
add_landmark
(
landmark_key
,
landmark
);
ROS_DEBUG_STREAM
(
"New landmark "
<<
landmark_key
<<
" at "
<<
(
_front
?
this
->
front_features_
:
this
->
rear_features_
)[
i
].
pose
(
0
)
<<
", "
<<
(
_front
?
this
->
front_features_
:
this
->
rear_features_
)[
i
].
pose
(
1
)
<<
"; yaw "
<<
(
_front
?
this
->
front_features_
:
this
->
rear_features_
)[
i
].
pose
(
2
));
...
...
Write
Preview
Supports
Markdown
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