mpu6050_serial_to_imu
mpu6050_serial_to_imu copied to clipboard
Proper transform for IMU
hi @fsteinhardt I followed README, accordingly i set up, my imu_frame_id as "imu_link". Similar imu_link has been defined in my urdf as well, my parent link is "base_link", now i define "tf_frame_id" as "imu_link" and "tf_parent_frame_id" as "base_link", however when i check in rviz, the tf tree shows base_link as well as imu_link coinciding instead of the actual position of imu link. the urdf contains as
<joint name="imu_joint" type="fixed"> <axis xyz="1 0 0"/> <!-- 0 1 0 --> <origin xyz="0.1 0 0.1"/> <parent link="base_link"/> <child link="imu_link"/> </joint>
and in my launch file i have
<launch> <node pkg="mpu6050_serial_to_imu" type="mpu6050_serial_to_imu_node" name="mpu6050_serial_to_imu_node" required="true"> <param name="port" value="/dev/ttyACM1"/> <param name="time_offset_in_seconds" value = "0.0"/> <param name="broadcast_tf" value="true"/> <param name="imu_frame_id" value="imu_link"/> <param name="tf_frame_id" value="imu_link"/> <param name="tf_parent_frame_id" value="base_link"/> </node> </launch>
please help me to find a solution to this.