Robotics StackExchange | Archived questions

Has anyone fixed the gpu_ray vertical ranges problem?

I am trying to use a gpuray sensor with both horizontal and vertical rays. I have to use the gpusensor 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.

Asked by sebudge on 2017-03-30 16:28:15 UTC

Comments

I can ensure you the problem persists to this day. The problem was not solved and is still an issue in last version of Gazebo.

In fact I am using Gazebo 7.16 where is supposed to be fixed and the problems is still there.

Asked by Weasfas on 2019-11-15 07:30:45 UTC

Answers

Everyone facing the same problem should update to Gazebo 7.14.

There is a fix now for this well known issue ( https://bitbucket.org/osrf/gazebo/issues/946/gpu-ray-sensor-vertical-ranges ) by Jacob Seibert which has been merged: https://bitbucket.org/osrf/gazebo/pull-requests/2955/fix-gpuraysensor-vertical-rays/diff

Gazebo 7.14 Changelog: https://bitbucket.org/osrf/gazebo/src/115ad31068b93f83730f2dbdaf6762217f52d09f/Changelog.md?at=gazebo7.14.0_changelog_fix&fileviewer=file-view-default

Asked by stereoline on 2018-10-30 07:50:50 UTC

Comments