Ask Your Question

LaserScanner in Gazebo does not publish data while topic is set

asked 2017-10-19 08:35:13 -0500

Westranger gravatar image

updated 2017-10-20 06:16:24 -0500

I'm trying to add two laser scanners to my robot model, which work already. So I can see the rays in Gazebo. Like in the hokuyo example I also specified the topic on which the laser should publish its data but when I inspect the available topics the onces I specified are not there/visible. I guess I'm missing somthing like a gazebo-ros-laser connector but I don't get what I'm missing here.

I have the following gazebo tag in urdf/xarco file

   <gazebo reference="sick_lrf_back">
      <sensor name="laser_back" type="ray">
         <pose>0.5 0.0 0.0 0.0 0.0 0.0</pose>
               <!-- Noise parameters based on published spec for Hokuyo laser
                 achieving "+-30mm" accuracy at range < 10m.  A mean of 0.0m and
                 stddev of 0.01m will put 99.7% of samples within 0.03m of the true
                 reading. -->
         <plugin name="laser_back" filename="">
            <!-- Publish within the robot namespace -->
edit retag flag offensive close merge delete


Have you tried to run gazebo with verbose option (e.g. roslaunch gazebo_ros empty_world.launch verbose:=true)? Does it load the plugin? Btw for gazebo related questions use this forum instead.

l4ncelot gravatar image l4ncelot  ( 2017-10-20 06:00:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-20 06:17:23 -0500

Westranger gravatar image

updated 2017-10-20 06:18:20 -0500

I foudn the solution, i need to use a differnt plugin file

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-10-19 08:35:13 -0500

Seen: 1,297 times

Last updated: Oct 20 '17