Gazebo | Ignition | Community
Ask Your Question
0

why gui becomes very slow when implementing system_gui plugin to save frames using user camera?

asked 2013-09-22 05:55:28 -0600

Zahra gravatar image

Hello

I am implementing the gui system plugin to save frames using user camera and following this tutorial http://gazebosim.org/wiki/Tutorials/1.9/plugins/camera_plugin

I have compiled and run the plugin just fine. But my concern is regarding the gui interface became very slow when I run the plugin as following: gzclient –g libsystem_gui.so And when I tested the CPU% usage by gzclient using (top) command I found that gzclient jumped up to 120% while running gzclient without the plugin CPU% was around 28%

So is there away to get around this issue when implementing this plugin.

Note: I am using 1.9.1 gazebo version and groovy.

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2013-09-23 09:49:32 -0600

nkoenig gravatar image

The problem is probably just that you're saving frames. This is a slow and expensive process. Try turning the save frames functionality off. Performance will likely improve.

edit flag offensive delete link more

Comments

The whole point of using this plugin , is that I want to use gui camera to save images. And disabling save frames functions would be not useful in my case. However I disenabled this function to test the plugin as following :this->userCam->EnableSaveFrame(false); and the performance didn't change!

Zahra gravatar imageZahra ( 2013-09-24 08:25:20 -0600 )edit

Turns out there is a bug in Gazebo. I'll fix this soon.

nkoenig gravatar imagenkoenig ( 2013-09-24 11:55:57 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-09-22 05:55:28 -0600

Seen: 344 times

Last updated: Sep 23 '13