Localization issue: Waiting for Transform odom -> base_link
Hi I am doing this nav2 tutorial https://navigation.ros.org/setup_guid... However instead of a differential drive robot, I am using a car-like robot (Ackermann kinematics). It also published odometry message as well as imu. These are my topics being published:
/accel/filtered
/clock
/demo/cmd_vel
/demo/distance
/demo/imu
/demo/odom
/diagnostics
/joint_states
/odometry/filtered
/parameter_events
/performance_metrics
/robot_description
/rosout
/set_pose
/tf
/tf_static
My issue is that when I run the command:
ros2 run tf2_ros tf2_echo odom base_link
I do not receive the transform data as I should (as below):
At time 8.842000000
- Translation: [0.003, -0.000, 0.127]
- Rotation: in Quaternion [-0.000, 0.092, 0.003, 0.996]
At time 9.842000000
- Translation: [0.002, -0.000, 0.127]
- Rotation: in Quaternion [-0.000, 0.092, 0.003, 0.996
Instead, I get this error message when launching just rviz:
[INFO] [1680639826.322243365] [tf2_echo]: Waiting for transform odom -> base_link: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[INFO] [1680639826.322243365] [tf2_echo]: Waiting for transform odom -> base_link: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
If i include to launch Gazebo on my launch file I get this error message:
[INFO] [1680639826.322243365] [tf2_echo]: Waiting for transform odom -> base_link: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
Warning: TF_OLD_DATA ignoring data from the past for frame front_right_wheel_link at time 30.685000 according to authority Authority undetectable
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 355 in /tmp/binarydeb/ros-galactic-tf2-0.17.5/src/buffer_core.cpp
Warning: TF_OLD_DATA ignoring data from the past for frame front_left_wheel_link at time 30.685000 according to authority Authority undetectable
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 355 in /tmp/binarydeb/ros-galactic-tf2-0.17.5/src/buffer_core.cpp
Warning: TF_OLD_DATA ignoring data from the past for frame rear_second_right_wheel_link at time 30.685000 according to authority Authority undetectable
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 355 in /tmp/binarydeb/ros-galactic-tf2-0.17.5/src/buffer_core.cpp
Warning: TF_OLD_DATA ignoring data from the past for frame rear_second_left_wheel_link at time 30.685000 according to authority Authority undetectable
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 355 in /tmp/binarydeb/ros-galactic-tf2-0.17.5/src/buffer_core.cpp
Warning: TF_OLD_DATA ignoring data from the past for frame front_right_axle_link at time 30.685000 according to authority Authority undetectable
Does it seem that my TF2 publisher is delayed? I don't understand why because I am using a very powerful computer (NUC). Some expert suggestions?
My robot xacro file: urdf My launch file: dispaly.launch.py localization configuration file: ekf.yaml