Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bmm forward propagation publishing #16

Open
dwisth opened this issue Jun 29, 2019 · 0 comments
Open

Add bmm forward propagation publishing #16

dwisth opened this issue Jun 29, 2019 · 0 comments

Comments

@dwisth
Copy link

dwisth commented Jun 29, 2019

If you add the below then you can visualise the BMM forward propagated pose using the \T_w_i message. This is useful for task 2 of the visual-inertial tutorial.

diff --git a/summer_school_private/smb_confusor/src/SmbConFusor.cpp b/summer_school_private/smb_confusor/src/SmbConFusor.cpp
index 8b12033..fa4f503 100644
--- a/summer_school_private/smb_confusor/src/SmbConFusor.cpp
+++ b/summer_school_private/smb_confusor/src/SmbConFusor.cpp
@@ -282,6 +282,7 @@ void SmbConFusor::baseOdometryCallback(const std_msgs::Float64MultiArray::ConstP
       BaseMotionModelParameters bmmParams = bmmPropagator_.propagate(t_meas);
       confusion::Pose<double> T_w_i = bmmParams.T_w_b * T_imu_base_.inverse();
       tfBroadcaster_.sendTransform(tf::StampedTransform(getTfMsg(T_w_i), ros::Time::now(), "world", "imu"));
+      pubRtPose_.publish(getMsg(T_w_i, "/world"));
     }
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant