-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What does "unknown reason for failure" mean when rviz is trying to display Lidar (/scan) data? #1796
Comments
Please provide the full error message. Particularly, I am missing the two involved TF frames. |
The error originates from here: rviz/src/rviz/frame_manager.cpp Line 331 in f35dee1
This means that this call doesn't report an error anymore, which is strange: rviz/src/rviz/frame_manager.cpp Line 325 in f35dee1
|
You're saying that `discoverFailureReason` was called because `transformHasProblems` had returned true but now it is no longer doing so...
… On May 21, 2023, at 2:20 PM, Robert Haschke ***@***.***> wrote:
The error originates from here:
https://github.com/ros-visualization/rviz/blob/f35dee1b8ebd0dccd225f2b48832dc0036dc6bfc/src/rviz/frame_manager.cpp#L331
This means that this call doesn't report an error anymore, which is strange:
https://github.com/ros-visualization/rviz/blob/f35dee1b8ebd0dccd225f2b48832dc0036dc6bfc/src/rviz/frame_manager.cpp#L325
—
Reply to this email directly, view it on GitHub <#1796 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAK5CLEQXSPVEUVR2H65MTXHJMIBANCNFSM6AAAAAAYJQF47U>.
You are receiving this because you authored the thread.
|
Could you please record and post a rosbag file including all the topics, i.e. /clock, /tf*, and /scan? 10s should be enough. |

Let me know if this contains what you can look at. No /clock topic. Is that supposed to be there?
… On May 22, 2023, at 2:00 AM, Robert Haschke ***@***.***> wrote:
Could you please record and post a rosbag file including all the topics, i.e. /clock, /tf*, and /scan? 10s should be enough.
—
Reply to this email directly, view it on GitHub <#1796 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAK5CIABUA7Y3RXYUGTD23XHL6GFANCNFSM6AAAAAAYJQF47U>.
You are receiving this because you authored the thread.
|
Please upload the file at github. Your email didn't comprise an attachment... |
In the meanwhile I totally rebuilt the software on my robot. I thought maybe I had corrupted something inadvertently. I also discovered that Noetic is not "officially" supported on Ubuntu 22.04 so I rebuilt the robot on Ubuntu 20.04. Unfortunately, the problem still appears. I appreciate your help so far! I have been stumped by this for a week so I hope that you can find a moment to lookl into this. |
@rhaschke I am using linorobot.org. My Launch file uses a kalman filter to fuse the raw odom with the imu:
If the IMU is not physically oriented correctly, could that somehow lead to the odom -> laser transfor to "failing"? The thinking is that somehow a badly callibrated IMU would lead to a somehow invalid odom tf which would lead to the problem. However I have since determined that the IMU is fine as it is. |
I did, did you see it? https://github.com/ros-visualization/rviz/files/11530872/2023-05-22-11-30-36.bag.txt Thanks! |
Thanks for providing the bag file. I can reproduce your issue and will look into it right now. |
After searching for quite a while into the wrong direction, I found the culprit: The problem is in your
rviz expects TF lookups to be possible within the whole time range from Note, Please consider donating as I spent a bunch of time hunting a rviz bug that turned out to be a message issue. |
@rhaschke Great catch, thank you thank you! Your diagnosis makes perfect sense. I've been tracing through the ydlidar ros code that I am using and I can see where it goes wrong. But I dont understand it well enough to fix it. I have posted on their issues list. If you know anything about ydlidar X4 on ROS Noetic I would be interested. In the meanwhile I will certainly donate. I can either donate 5/month for a year or donate $75 right now. Do you prefer one or the other? And is that an appropriate amount? |
I don't know the ydlidar X4, but great that my analysis helps you. I guess the time units are chosen wrongly (e.g. nanoseconds instead of seconds). Feel free to link the source repository here. |
The ydldar repo is: https://github.com/EAIBOT/ydlidar.git |
Thanks for supporting me by a donation. See here for a fixup of |
Thanks! It worked. Your fix was simple… I saw that it could work but didn’t do it myself because I feared that there were other interactions that I didn’t see. Thanks again!Pito Salas Computer ScienceBrandeis University On May 26, 2023, at 3:19 AM, Robert Haschke ***@***.***> wrote:
Thanks for supporting me by a donation. See here for a fixup of ydlidar.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
ROS1, Ubuntu 22.04, Noetic.
When displaying LaserScan data in Rviz, I get this error:
The tf and tf tree all look reasonable to me. I am not sure what the problem is with the tf that is causing the problem. I suspect it's the transform from /odom to /base_footprint but that looks ok:
Can someone help me figure out what is causing it? I am happy to look at rviz source code if I knew where to look. Or any hint at all? Thanks!
The text was updated successfully, but these errors were encountered: