rapyuta-robotics / turtlebot3-UE

Apache License 2.0
40 stars 16 forks source link

Invalid frame ID + Lookup would require extrapolation into the future... Navigation not working in rviz2 #70

Closed alexzhang13 closed 1 year ago

alexzhang13 commented 1 year ago

I'm trying to get the Turtlebot example working on my machine. Currently using UE5.1 on Ubuntu 22.04 w/ ROS2 Humble. I have checked out the corresponding branches (Jammy, devel-humble, etc.) for this repository and the sub-repository plugins.

In UE5, I can see the LiDAR scans, but I can't get the robot to move with rviz2. After putting in the initial pose estimate, I can't actually get the robot to navigate and move around. I've also tested, and I'm able to get the robot to move in UE5 with teleop control from ROS2. Checking the logs, this is what gets returned constantly from rviz:

[rviz2-3] [ERROR] [1690931335.516706034] [rviz2]: Lookup would require extrapolation into the future.  Requested time 683.613197 but the latest data is at time 683.589966, when looking up transform from frame [base_scan] to frame [map]
[rviz2-3] Warning: Invalid frame ID "wheel_left_link" passed to canTransform argument source_frame - frame does not exist
[rviz2-3]          at line 93 in ./src/buffer_core.cpp
[rviz2-3] Warning: Invalid frame ID "wheel_right_link" passed to canTransform argument source_frame - frame does not exist
...

This is what the rviz displays look like. image

I'm new to ROS2 and rviz, so I was wondering if I was doing something wrong here, or if this was a bug. Thanks.

yuokamoto commented 1 year ago
alexzhang13 commented 1 year ago

So I ran the commands from the video above in the exact same steps, but when I click 2D Pose Estimate, I see the green arrows and the LiDAR scan, but I don't get the pink and light blue visualization effect you have there. Also, clicking on Nav2 Goal and a location doesn't do anything and I always get Navigation: inactive on the left.

I can send a video of my steps as well: Screencast from 08-02-2023 02:28:39 PM.webm

james-yoo commented 1 year ago

@alexzhang13 You should check TF between 'base_scan' and 'map'. There is missing link between them.

alexzhang13 commented 1 year ago

@james-yoo Is this something I have to explicitly define? I'm basically just loading in their example and trying to replicate their steps.

james-yoo commented 1 year ago

@alexzhang13 Your Nav 2 stack was not loaded successfully as below. This may cause the wrong transform as you mentioned above image

alexzhang13 commented 1 year ago

Gotcha thanks, I'll go back and see what might be going wrong here in my installation setup.