Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
aicp_mapping
Commits
777d0a17
Commit
777d0a17
authored
Apr 24, 2019
by
Maurice Fallon
Browse files
publish the transform
parent
d108802a
Changes
1
Hide whitespace changes
Inline
Side-by-side
aicp_core/src/registration/app.cpp
View file @
777d0a17
...
...
@@ -405,6 +405,20 @@ void App::operator()() {
{
vis_
->
publishPoses
(
aligned_clouds_graph_
->
getLastCloud
()
->
getCorrectedPose
(),
0
,
""
,
cloud
->
getUtime
());
vis_
->
publishPriorPoses
(
aligned_clouds_graph_
->
getLastCloud
()
->
getPriorPose
(),
0
,
""
,
cloud
->
getUtime
());
vis_
->
publishOdomPoses
(
aligned_clouds_graph_
->
getLastCloud
()
->
getOdomPose
(),
0
,
""
,
cloud
->
getUtime
());
std
::
cout
<<
"odom_to_map publish <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
\n
"
;
Eigen
::
Isometry3d
base_to_odom
=
aligned_clouds_graph_
->
getLastCloud
()
->
getOdomPose
();
Eigen
::
Isometry3d
base_to_map
=
aligned_clouds_graph_
->
getLastCloud
()
->
getCorrectedPose
();
Eigen
::
Isometry3d
odom_to_map
=
(
base_to_map
.
inverse
()
*
base_to_odom
).
inverse
();
std
::
cout
<<
odom_to_map
.
translation
().
transpose
()
<<
" odom_to_map publish
\n
"
;
vis_
->
publishOdomToMapPose
(
odom_to_map
,
cloud
->
getUtime
());
}
// Store aligned map and VISUALIZE
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment