Rosanswers logo

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="libRayPlugin.so">
            <!-- Publish within the robot namespace -->

Originally posted by Westranger on ROS Answers with karma: 165 on 2017-10-19

Post score: 2

Original comments

Comment by l4ncelot on 2017-10-20:
Have you tried to run gazebo with verbose option (e.g. roslaunch gazebo_ros empty_world.launch verbose:=true)? Does it load the libRayPlugin.so plugin? Btw for gazebo related questions use this forum instead.


1 Answer 1


Rosanswers logo

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

<plugin name="laser_back" filename="libgazebo_ros_laser.so">

Originally posted by Westranger with karma: 165 on 2017-10-20

This answer was ACCEPTED on the original site

Post score: 1


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.