We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae0b39 commit c132678Copy full SHA for c132678
1 file changed
src/Composer.cpp
@@ -473,7 +473,9 @@ void Composer::path_publish_thread( int looprate )
473
)
474
continue;
475
}
476
- Matrix4d wi_T_latest = global_lmb.at( n-1 );
+
477
+ Matrix4d imu_T_cam = manager->get_imu_T_cam();
478
+ Matrix4d wi_T_latest = global_lmb.at( n-1 ) * imu_T_cam.inverse();
479
480
if( rand()%100 > 2 ) {
481
//add to msg
@@ -501,7 +503,7 @@ void Composer::path_publish_thread( int looprate )
501
503
path_msg.header.frame_id = "world";
502
504
geometry_msgs::PoseStamped pxl;
505
pxl.header.stamp = stamp_of_it;
- auto ___wi_T_c = global_lmb.at( h );
506
+ auto ___wi_T_c = global_lmb.at( h ) * imu_T_cam.inverse();
507
PoseManipUtils::eigenmat_to_geometry_msgs_Pose( ___wi_T_c, pxl.pose );
508
path_msg.poses.push_back( pxl );
509
0 commit comments