# Has anyone fixed the gpu_ray vertical ranges problem?

I am trying to use a gpu_ray sensor with both horizontal and vertical rays. I have to use the gpu_sensor because the ray sensor is unacceptably slow. I have run into the vertical ranges problem. Does anyone have a fix for this?

Are there any of the developers working on this problem?

The sensor is given as:

    <sensor name='laser' type='gpu_ray'>
<pose frame='texsensor'>0 0 0 0 0 0</pose>
<ray>
<scan>
<horizontal>
<samples>419</samples>
<resolution>1</resolution>
<min_angle>-0.35</min_angle>
<max_angle>0.35</max_angle>
</horizontal>
<vertical>
<samples>8</samples>
<min_angle>-0.05</min_angle>
<max_angle>0.05</max_angle>
<resolution>1</resolution>
</vertical>
</scan>
<range>
<min>1.0</min>
<max>800</max>
<resolution>0.01</resolution>
</range>
</ray>
<always_on>true</always_on>
<update_rate>10</update_rate>
<visualize>true</visualize>
</sensor>


The collision is with a heightmap.

When run in my simulation, the rays appear in the client, and the data message from the sim is sent to my listener. All of the data is correct except the ranges. The range values are duplicated along each horizontal line, and change for each vertical step.

When I run with only one vertical sample, the ranges are correct.

edit retag close merge delete