imu frame_id doesn't match base_link
The frame_id of imu data in my bagfile is imu_link, not base_link. After rosrun the node, I didn't get odometry/filtered data flow. I assume there's problem with frame_id mismatching .So I add
<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="0 0 0 3.14 0 0 base_link imu_link 100" />
into ekf_customized.launch(mostly copied from ekf_template.launch) to realize static transform but it's not working. Shall I add code about transforming into the package ?
I do appreciate it if someone can give me some tips. Thank you so much!
use the preformatted text buttons to make your code readable. Also, some more hints about what you are trying to achieve and what the actual problem is might help.
What can be seen here is that you are publishing the static tranform from
base_link
tobase_link
which should not work at all....Thank you. I try to achieve static transform between imu_link which is the frame_id of my imu data and base_link. But I don't know how
replace second
base_link
withimu_link
?Yeap, because I need to transform imu_link to base_link. The data to be fused into the format is required to be in base_link frame.