There was an error while loading. Please reload this page.
1 parent a98c9ce commit d6a76d3Copy full SHA for d6a76d3
1 file changed
crates/nodes/odometry/src/lib.rs
@@ -46,7 +46,6 @@ async fn run(ctx: Arc<Context>) -> Result<()> {
46
let parameters = parameters.snapshot().typed().clone();
47
let imu_state = imu_state_sub.recv_with_metadata().await?;
48
let imu_time = imu_state.source_time;
49
- let odometry_pub = odometry_pub.announce(imu_time).await?;
50
let maybe_robot_kinematics_wrapper = robot_kinematics_cache.get_nearest(imu_time);
51
let maybe_fall_down_state = fall_down_state_cache.get_nearest(imu_time);
52
let imu_state = imu_state.into_message();
@@ -62,7 +61,11 @@ async fn run(ctx: Arc<Context>) -> Result<()> {
62
61
},
63
¶meters,
64
) {
65
- odometry_pub.publish(&pose).await?;
+ odometry_pub
+ .announce(imu_time)
66
+ .await?
67
+ .publish(&pose)
68
+ .await?;
69
}
70
71
0 commit comments