-
Notifications
You must be signed in to change notification settings - Fork 47
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
Long camera update #810
Comments
I have found that if this object is not in the scene it responds as I would expect. Any thoughts on what might be causing the issues? Here is a link to the dae files. |
I assume you mean the GUI camera right and not a camera sensor? I don't see anything weird with these 2 dae meshes. I just did a quick test and created a model consisting of 2 visuals, one for each dae mesh ( |
I will try just this link and see if I see an issue. |
It looks like if you only load the model independently they have less of an affect. Also the more models in the environment in addition to these two models increase the pause time.
@iche033 Here is the spindle model which combined with the other model is causing the 24 second pause. It almost looks like it is loading the model again because it is around the same amount of time. Also these models are not water tight if that may have an affect. Original Model (Compliance device)
Just Spindle
Original Model + Spindle
|
Loading this environment below only takes 11ms and click drag takes 4ms.
|
hmm I created a minimal example to test this but still haven't been able to reproduce the long pause and camera updates. Can you give the following test world a try and see if you get the same issue? ign gazebo -v 4 test_dae.sdf test_dae.sdf
Launching the world will download this test_dae model which consists of the 3 daes that I got from your repo (compliance device and spindle; spindle's |
I ran the command but it prints out the help info. Do I need to install something for this command to work?
|
oh I just assumed you're running Fortress and have gazebo already installed. You'll need |
I will give it a try. It looks like these models had a lot of objects. One had ~80 and the other had ~150. I went through and cleaned up each of the models and made them water tight where each one has around 8 objects in the dae. After cleaning things up everything loads fast and the update rate is around 10ms and the load takes around 85ms. |
After install I get the following error. I did a quick google search but nothing worked. I mostly use ign/gz libraries directly in my own application so not familiar with a lot of the tools.
|
So I tried downloading the model locally and navigating to the folder and running the following command, but the GUI pops up and then promptly closes.
|
Okay, after creating the file below and using this file to load everything worked. Using this I did not see a pause. In my case I am not using gazebo or qml, but instead I have ported the qml render widget to Qt Widget here specifically the QOpenGLWidget. It currently is not running the update in another thread like how the qml component is doing so the update call is happening in the main gui thread which may be causing the issue. If you have time to take a look a look at the render widget let me know if you see any issues. My hope is once I have worked out the issues is create an example to add to gui repository.
|
I see. Having a separate rendering thread from gui is a good idea. Another thing to try is throttle camera updates to something like 60Hz. Another minor optimization is that the |
I have made the update rate configurable with the default set to 60Hz. I am going to create a minimal example only using the API and no GUI to see if the update take a long time. |
From reading through the thread, this doesn't seem to be an issue with gz-rendering. I'll go ahead and close the issue, but feel free to reopen. |
I think there is still an issue with gz-rendering because the same mesh was not an issue when using rviz, but not sure what the difference is. |
I was under the impression that it is working fine in Gazebo ( |
Environment
Description
I have tested this with both Ogre and Ogre2 rendering and they both have the same long camera update..
The text was updated successfully, but these errors were encountered: