Robotics StackExchange | Archived questions

Exhaustive calculations in plugin slows down Gazebo

Hi,

I implemented a ray as a plugin which sends local occupancy grid maps to e.g. ROS (because I want to build a OGM sensor directly in gazebo ;) ). For doing so, a hand full of opencv calculations are needed. If it comes to more and more calculations, Gazebo suddenly stucks. For example, if I just take 25 rays @10Hz into account, it works. With 51 @10Hz it begins to lag. With 201 @10Hz even the visualization wont show up. I am a bit confused, because my CPU shows a very fair workload, and is not at 100% in all cases.

Am I missing something here? Do the plugins need to return in a defined amount of time, so that gazebo can work smoothly?

Kind regards, tik0

Asked by tik0 on 2015-02-20 14:15:40 UTC

Comments

Answers