Home | Tutorials | Wiki | Issues
Ask Your Question

How to implement paralell threads on plugin

asked 2019-11-11 10:55:07 -0600

Weasfas gravatar image


I am currently working with a velodyne plugin on Gazebo. The plugins works fine, however it seems that, when the simulation starts calculating points (E.g.: I subscribe to the Pointcloud) the real time factor drops from 1.00 to 0.50 slowing deeply the whole simulation and thus affecting other services that I am testing.

Is there a way to improve this performance?

One of the ways I want to do this is by adding working threads to the plugin, but I was not able to find any documentation on this possibility. If anyone knows any info, paper or implementation about this topic it would be nice if you share it here.

Thanks in advance.

edit retag flag offensive close merge delete


Are you using a gpu_ray sensor?

chapulina gravatar imagechapulina ( 2019-11-11 11:02:21 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-12 10:00:01 -0600

Weasfas gravatar image

@chapulina provided the right direction.

To avoid the drop I followed these steps:

  1. Change the sensor type from ray to gpu_ray.
  2. Since I was using Gazebo and this plugin I needed to update Gazebo from Gazebo_7.0.0 to Gazebo_7.16.0 using the following approach provided in the section "Alternative installation". The update is to cope with this issue and this issue

Now I able to simulate three lidars (2x16 samples and 1 x64 samples with almost no time_rate variation)

Thanks for the help.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-11 10:55:07 -0600

Seen: 57 times

Last updated: Nov 12 '19