robots_localization:Transform from gyro_link to base_footprint was unavailable for the time requested. Using latest instead.
Hello everyone, when I use the robots_localization function package to fuse odom, imu, and gps data, the navsat_transform_node node will always flash the following alarms: "Transform from base_footprint to map was unavailable for the time requested. Using latest instead." The frequency of my /odom and /imu topics are both 50hz (but I don't think it has anything to do with the topic's frequency), the frequency of /gps/fix is 100hz, and the running files and parameters are in this repository: link text
here is a sample of sensor output: IMU:
header:
seq: 18463
stamp:
secs: 1640865037
nsecs: 422120658
frame_id: "gyro_link"
orientation:
x: 0.00215925741941
y: 0.0136082665995
z: 0.0671876072884
w: 0.995954573154
orientation_covariance: [1000000.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 1e-06]
angular_velocity:
x: -0.0770011618733
y: 0.0367687195539
z: -0.0532880015671
angular_velocity_covariance: [1000000.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 1e-06]
linear_acceleration:
x: -0.026318307966
y: -0.346923172474
z: 8.07015037537
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
from the GPS:
header:
seq: 15480
stamp:
secs: 1640865044
nsecs: 650466853
frame_id: "navsat_link"
status:
status: 0
service: 0
latitude: 22.969099335
longitude: 113.904337186
altitude: 23.2730484009
position_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
position_covariance_type: 0
from the odom:
header:
seq: 18809
stamp:
secs: 1640865054
nsecs: 970831849
frame_id: "odom_combined"
child_frame_id: "base_footprint"
pose:
pose:
position:
x: 9.72226047516
y: 0.114874176681
z: 5.24148702621
orientation:
x: -0.0
y: 0.0
z: 0.497616859017
w: -0.867396945822
covariance: [0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0]
twist:
twist:
linear:
x: 0.603999972343
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: -0.00700000021607
covariance: [0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1000.0]
My robot_localization_package launch file is:
<?xml version="1.0"?>
<launch>
<rosparam command="load" file="$(find outdoor_waypoint_nav)/params/ekf_params.yaml" />
<rosparam command="load" file="$(find outdoor_waypoint_nav)/params/navsat_params.yaml" />
<node pkg="robot_localization" type="ekf_localization_node" name="ekf_se_odom" clear_params="true"/>
<node pkg="robot_localization" type="ekf_localization_node" name="ekf_se_map" clear_params="true">
<remap from ...