Ask Your Question

What is the meaning of <rayCount>, <rangeCount> and <laserCount> for laser sensor XML?

asked 2012-12-23 23:03:32 -0500

ChengXiang gravatar image

updated 2012-12-26 03:51:23 -0500

Hi, I am using simulating a laser sensor. However, I have some doubts about the meaning of some tags in the xml description. Even the ROS web page do not provide information on this.

The xml description look something like this

<gazebo reference="base_scan_link">
            <sensor:ray name="laser">

                <origin>0.0 0.0 0.0</origin>

                <maxAngle> 135</maxAngle>


name="gazebo_ros_base_scan_link_controller" plugin="">
                    <interface:laser name="gazebo_ros_base_scan_link_iface"/>

I wish to know what are the function of <raycount>, <rangecount>,<lasercount> and Gaussian noise. Can anyone explain what are the meanings of the above mentioned tags? Thank you.

edit retag flag offensive close merge delete


Please provide more information. What web page are you looking at? What xml file are you trying to write?

tfoote gravatar image tfoote  ( 2012-12-24 04:37:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-26 23:24:47 -0500

Chad Rockey gravatar image

This page has information on the actual xml structure:

As for those meanings, I found some information here on rangecount and raycount:

rangecount is the amount of data to export. Raycount is the number of rays to simulate in gazebo. Since these can be computationally expensive, each rangecount will be interpolated to the nearest raycount if raycount < rangecount. For best sensor simulation, raycount = rangecount.

There's no clear use for lasercount anywhere, other than 1. I'd assume it's the number of planar lasers, the number of stacked lasers, or the number of returns.

Finally, the Gaussian noise is the amount of simulated noise to add to each reading. Gazebo supports "noisy" data by adding data in a distribution with that number as the variance.

edit flag offensive delete link more


Thank you for the information, they are very helpful.

ChengXiang gravatar image ChengXiang  ( 2012-12-27 03:35:31 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2012-12-23 23:03:32 -0500

Seen: 272 times

Last updated: Dec 26 '12