-
Notifications
You must be signed in to change notification settings - Fork 219
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
Rviz unable to visualize lidar map created by slam_toolbox #1279
Comments
i dont think it's my pi specific either, i tried
and then ran rviz on my ubuntu 22, ros humble, i7-gtx1650 laptop. I subscrivbed to /map there and i got the exact same behaviour and result, the same partial map formation and freezing on rviz and the same error on the terminal |
@Yadunund can you assign yourself to this? |
@iCaran there are a number of things that could cause this so let's try to isolate the problem.
|
Hi, sorry for the delayed response, but here's an update: I've created a minimal reproducible example as requested. You can find the code in this repository: https://github.com/iCaran/SimpleRvizMapVisualizationTest. This is a ROS 2 package that publishes a simple occupancy grid, which when visualized in RViz, results in the same error I reported. Testing EnvironmentsI tested this on two systems:
The results were nearly identical on both platforms. However, there was a slight difference in the reported OpenGL version:
Answers to Your Questions
Let me know if you need any further information or testing. Thanks! |
@iCaran I haven't had a chance to run your example yet but coincidentally I had to the chance to run |
@iCaran did you solve your problem because I'm facing the same problem as yours |
No updates on this issue? @Yadunund |
@koa-ellie I haven't been able to solve it yet actually, but for my case, I've begun to think it may not be a big deal, or the real problem so to say. Since im using slam_toolbox, upon later research i found that the problem in my case more likely is that I've incorrectly setup my odometry and slam isnt recieving it well. That's why the map stops forming. So I'm midway trying to fix that, I'll update when I'm done. Sure the graphics issue remains as is, but I'm trying to get my odom right first, cause I think that, that is the actual issue, not the OpenGL error. Edit: @koa-ellie could you please confirm if your odom is correctly configired? |
I am running Ros2 Jazzy on Ubuntu 24 on a Raspberry Pi 5. I have attached an RPLidar A1M8 to it. I want to use it to create a map of my environment, for that, I'm using the Slam_Toolbox.
But I encounter some errors while trying to visualize the map in Rviz2.
Here's my process:
Terminal 1:
Ignore the libthrottle_node.so warning, I was trying to create a throttled /scan topic with less frequency (i thought of trying to start with 1/sec), so as to try to not overwhelm my Pi5, but even with Ros2 topic_tools properly installed and the libthrottle_node.so in the correct place, for some reason I keep getting this error.
If someone could help me with that it would be great help.
Terminal 2:
Terminal 3:
This is the error part, when I open Rviz2, and subscribe to the /map topic, for the first second, a map begins to take shape, and then this error happens and the map stops to update any further. I have checked by scanning the /scan topic after the crash, and it is fine, it's rviz which is having trouble visualizing the map. See the image below:
I have done:
due to some suggestions I read online while trying to debug this issue, but these don't seem to work. I'm not sure if all of this is important, but here are my slam_toolbox params for the lidar, as i read that maybe decreasing the resolution may help with the issue:
I found a question exactly similar to mine, but it has no responses.
https://stackoverflow.com/questions/77907899/error-while-visualizing-map-from-slam-toolbox-on-rviz
The text was updated successfully, but these errors were encountered: