Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_lib
plugins
laser
Commits
03182efe
Commit
03182efe
authored
5 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Fix state initialization odom icp
parent
3a01d91b
No related branches found
No related tags found
2 merge requests
!30
Release after RAL
,
!29
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_odom_icp.cpp
+11
-1
11 additions, 1 deletion
src/processor/processor_odom_icp.cpp
with
11 additions
and
1 deletion
src/processor/processor_odom_icp.cpp
+
11
−
1
View file @
03182efe
...
...
@@ -277,6 +277,16 @@ FactorBasePtr ProcessorOdomIcp::emplaceFactor(FeatureBasePtr _feature)
VectorComposite
ProcessorOdomIcp
::
getState
(
const
StateStructure
&
_structure
)
const
{
if
(
origin_ptr_
==
nullptr
or
origin_ptr_
->
isRemoving
()
or
last_ptr_
==
nullptr
or
last_ptr_
->
getFrame
()
==
nullptr
)
// We do not have any info of where to find a valid state
// Further checking here for origin_ptr is redundant: if last=null, then origin=null too.
{
WOLF_DEBUG
(
"Processor has no state. Returning an empty VectorComposite with no blocks"
);
return
VectorComposite
();
// return empty state
}
auto
w_T_ro
=
laser
::
trf2isometry
(
origin_ptr_
->
getFrame
()
->
getP
()
->
getState
(),
origin_ptr_
->
getFrame
()
->
getO
()
->
getState
());
auto
ro_T_so
=
laser
::
trf2isometry
(
origin_ptr_
->
getSensorP
()
->
getState
(),
origin_ptr_
->
getSensorO
()
->
getState
());
const
auto
&
rl_T_sl
=
ro_T_so
;
// A reference just to have nice names without computing overhead
...
...
@@ -295,7 +305,7 @@ VectorComposite ProcessorOdomIcp::getState( const StateStructure& _structure ) c
TimeStamp
ProcessorOdomIcp
::
getTimeStamp
()
const
{
if
(
last_ptr_
==
nullptr
)
return
0
;
return
TimeStamp
::
Invalid
()
;
else
return
last_ptr_
->
getTimeStamp
();
}
...
...
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