-
Notifications
You must be signed in to change notification settings - Fork 8
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
No visualization on Ubuntu 20 #1
Comments
Sorry for the late reply. Sorry I haven't tried on 20 yet. We will try soon and see if a similar problem occurs. |
It has been found out that a problem of visualization not the code itself is the case. In ROS noetic, it seems that rviz cannot parse frame id "/map" correctly, change it to "map" simply and the problem is solved. |
Thanks a lot for your detailed explanation! I will add it to Readme in the next update. |
I encontered the same problem. Same with ubuntu 20.04 Noetic.
So I am wondering whether I changed the right file. |
I suppose I did exactly what you have done, changing all the /map to map, no other amendment is made. I only tested uav-depth and uav-2dlidar and both work out fine. |
Did you add --clock parameter when you play rosbag? |
Yes I run exactly Also, I have some new findings. When I launch the nodes by running
That is caused by the mismatch between the GPU driver and toolbox versions. So I updated the driver. I did everything again, including compiling cuTT, then this error disappeared. But it still has no visualization. I notice there is still a warning when I launch the nodes, which may cause the problem.
I am not sure how to take a deeper look on this error. Do you have any suggestions? |
Also, I tried uav-depth and uav-2dlidar. Same problem. |
In this case, I believe you are having a problem with the code, not visualization. Very likely the problem with GPU. You may try removing CUDA, cleaning envs related to CUDAand resinstall a stable version (11.3 in my case) and compile again. If you are using RTX 30XX. always use CUDA>=11. |
Hi Hao, it seems to be a problem with the software. May I ask if this error (stack smashed) occurs before or after you play the rosbag? |
Before playing the bag, after launching the nodes. |
I guess it is because of the development environment... Can you locate which sentence causes the trouble? |
Well... Do you have any idea on how to locate that? I am also trying to set the CUDA environment again, but it may take some time. |
Problem solved yesterday. Here is the record of process and what happened. It make be helpful who suffer from the same problem. Getting detailed ways to do so should refer to blogs on google. First when installing unbuntu 20.04, the driver of GPU is already been installed to the computer, but not the newest version. So it seems we only need to install the cuda toolkits. Actually this usually causes error. There are two ways to do so. The one is installing cuda toolkit from ubuntu repository by simply run the command There are 2 different things may cause the final errors, so do neither of them. 1 Installing from ubuntu repository and official website at the same time. Please only use the second one. Remove the 2 Install the drive and toolkits separately. It will probably cause the incompatibility for the driver and toolkits. Please install them together, by simply follow the instruction of that The reason why driver and toolkits should be installed together is, there is a requirement for the versions compatibility. The version of driver should be newer than the version of cuda toolkits. The version of cuda toolkits should be newer than the computation ability of real GPU. For example, driver version 515.43 can support toolkits version 11.7. If toolkits version is 10.1, it is ok. If driver version is 435.43, not ok. Note that Currently, my version is driver 515.43.04, toolkits 11.7, GPU 1660Ti. The system is ubuntu 20.04, ROS noetic. It succeeds. |
Report a solved bug again: When I run the GIE several days later, the vitalization disappear again. This time there is error message.
So i ran Luckily I found:
See the CUDA by
So the problem is on the driver. See the driver version:
I got
Then I ran
Ran
Great!! The problem is probably caused be the linux kernel. When the linux update, the driver cannot adapt to it. Doing what I did can fix it. |
The issue is solved. Thank you. |
Hello! Thanks a lot for your great work.
I tried installing this project on Ubuntu 20.0.4 with ros noetic and met no problems with building the code. However when I tried to play rosbag, it failed to display proper visualization of the map built (yet robot movement could be seen). I tried on an old computer with Ubuntu 18 and ros melodic, and it worked out pretty good. I did see that you have mentioned that test passed on Ubuntu 16 and 18, and I am wondering why it doesn't work on Ubuntu 20?
The text was updated successfully, but these errors were encountered: