ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Gazebo Hokuyo laser not working properly

asked 2018-12-27 05:12:57 -0600

JoseJaramillo gravatar image

Hi all,

I´m trying to run some mapping experiments with a mobile robot on a Ubuntu 16.04 machine with ROS Kinetic and Gazebo 7.

What I did was to define a diff-drive with the following urdf:

and then, to run the simulation I use this launch file:

by doing so, I get a strange behavior, that is, the robot is loaded correctly but from the laser scan it seems that it´s not able to sense objects:

Can you please explain me what could be the problem, please?


edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-12-27 14:58:54 -0600

JoseJaramillo gravatar image

updated 2018-12-28 03:26:31 -0600

gvdhoorn gravatar image

Try the using the non-GPU version of the laser.

Hello! I did that, it didn't work as expected.

However, I solved it by reinstalling-updating the NVIDIA drivers. works like a champ! Thank you anyway!

edit flag offensive delete link more

answered 2018-12-27 11:56:59 -0600

lovelife gravatar image

updated 2018-12-27 14:50:13 -0600

jayess gravatar image

Try the using the non-GPU version of the laser. Change the line

<sensor type="gpu_ray" name="head_hokuyo_sensor">


<sensor type="ray" name="head_hokuyo_sensor">

and replace

<plugin name="gazebo_ros_head_hokuyo_controller" filename="">


<plugin name="gazebo_ros_head_hokuyo_controller" filename="">
edit flag offensive delete link more


Thank you. Only this option worked for me.

utkuolcar gravatar image utkuolcar  ( 2020-12-01 14:45:01 -0600 )edit

Question Tools

1 follower


Asked: 2018-12-27 05:12:57 -0600

Seen: 2,798 times

Last updated: Dec 28 '18