Robotics StackExchange | Archived questions

Laser plug-in publishes abnormal scanning results

I followed this tutorial and added the hokuyo laser plugin to my URDF. When in launched the model in gazebo and tried to visualize it in Rviz i got some strange results as shown below. The following result is constant, irrespective of robot pose, robot movement and obstacles.

image description

When I replaced the gpu_ray scanner with ray scanner as given in the tutorial, the result seems to be fine except the laser ray is pointed towards right side of the robot (Ref image below).

image description

I want to use Gpu_ray laser in my robot model for map building to simulate the navigation stack, can someone guide me to fix this issue.

Asked by KishoreKumar P on 2016-01-20 06:33:58 UTC

Comments

Answers

Have you tried to modify the pose of your ray laser with a pose tag ?

For example (laser_top is the link attached to my sensor):

<gazebo reference="laser_top">
    <sensor type="gpu_ray" name="laser_top_sensor">
      <pose>0 0 0.0434 0 0 0</pose>
      <visualize>false</visualize>
      <update_rate>40</update_rate>
      <ray>
        <scan>
          <horizontal>
            <samples>720</samples>
            <resolution>1</resolution>
            <min_angle>-1.570796</min_angle>
            <max_angle>1.570796</max_angle>
          </horizontal>
        </scan>
        <range>
          <min>0.10</min>
          <max>30.0</max>
          <resolution>0.01</resolution>
        </range>
        <noise>
          <type>gaussian</type>
          <mean>0.0</mean>
          <stddev>0.01</stddev>
        </noise>
      </ray>
      <plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_gpu_laser.so">
        <topicName>scan_loc</topicName>
        <frameName>laser_top</frameName>
      </plugin>
    </sensor>
</gazebo>

Asked by Brosseau.F on 2016-01-22 02:38:56 UTC

Comments