From cd85d1d1f935253d5bf016d86e7666fbf2bc049a Mon Sep 17 00:00:00 2001 From: mdleiton Date: Sat, 12 Feb 2022 01:22:50 -0500 Subject: [PATCH] Renames node frame_id to skip warnings in tf2. fixes #6 --- src/MPU9255_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MPU9255_node.cpp b/src/MPU9255_node.cpp index 2d2c5e1..00b7aa0 100644 --- a/src/MPU9255_node.cpp +++ b/src/MPU9255_node.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv){ data_mag.header.stamp = ros::Time::now(); data_imu.header.stamp = data_mag.header.stamp; - data_imu.header.frame_id = "/imu_link"; + data_imu.header.frame_id = "imu_link"; float conversion_gyro = 3.1415/(180.0*32.8f); float conversion_acce = 9.8/16384.0f;