is there a limit for sensors in model/link?

asked 2016-06-19 06:21:22 -0500

cakiva gravatar image

updated 2016-07-03 00:16:19 -0500

Hello all,

I am trying to create a plugin with 20 parallel gpu_ray sensors, but, when i run it the process dies, with the following output :

[gazebo-2] process has died [pid 22062, exit code 139, cmd /opt/ros/indigo/lib/gazebo_ros/gzserver -e ode /home/test/ __name:=gazebo __log:=/home/test/.ros/log/e21302fc-360b-11e6-b928-ac162d066232/gazebo-2.log]. log file: /home/test/.ros/log/e21302fc-360b-11e6-b928-ac162d066232/gazebo-2*.log

The same code with 8 sensors works well, but as I add the rest of sensors it fails. i searched the Internet regarding the limit of the amount of sensors in a model or link but i have found nothing,

does anybody have any ideas?

EDIT: in another sensors not have a limit. i put a lot of them (the another sensors) and it is work well.

in addition, in Gazebo 5 the limit of gpu_ray grown up to 18.

EDIT 2: the relavant part from SDF: <sensor name="c15" type="gpu_ray"> <pose>0.044 0.01045 0.000 0 -0.02094395 0</pose> <ray> <scan> <horizontal> <samples>71</samples> <resolution>1</resolution> <min_angle>-0.77667</min_angle> <max_angle>0.44505</max_angle> </horizontal> </scan> <range> <min>0.3</min>
<max>30</max> <resolution>1</resolution> </range> </ray> <always_on>1</always_on> <update_rate>500</update_rate> <visualize>1</visualize> </sensor> (of course the c15 is changing in any sensor).

edit retag flag offensive close merge delete


what version of Gazebo are you using ?

dmeltz gravatar imagedmeltz ( 2016-06-27 22:47:12 -0500 )edit

Can you provide a backtrace, and you SDF file? Also, gazebo2 is EOL. I suggest you upgrade to gazebo7.

nkoenig gravatar imagenkoenig ( 2016-06-28 10:48:27 -0500 )edit

dmeltz, i was using in Gazebo 2. but, see my edit. nkoenig, i added the relevant part of SDF to EDIT 2. thanks a lot for both of you!

cakiva gravatar imagecakiva ( 2016-07-03 00:16:35 -0500 )edit