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

Limiting minimum range of virtual kinect laser scan

asked 2012-06-08 11:25:14 -0600

Intellethan gravatar image

I am trying to simulate a virtual turtlebot creating a map with gmapping in gazebo.

As an answer to a question I asked earlier, I have been advised to limit the minimum distance from the laser a scan must be to be accepted as valid, so that the laser does not pick up the robot itself.

I am having trouble figuring out how to get that done. Does anyone know what the best way to go about that would be? Or where I could read up on making changes like that?

Thanks, -Ethan

edit retag flag offensive close merge delete

Comments

Which driver is producing the original scan data? Some of them provide a minimum range parameter.

joq gravatar image joq  ( 2012-06-08 13:40:26 -0600 )edit

I don't know how to check which driver that is.

Intellethan gravatar image Intellethan  ( 2012-06-13 08:22:09 -0600 )edit

I have not worked with gazebo, but for the actual turtlebot you can check out the parameters of the package "pointcloud_to_laserscan". In this package, a parameter named "~range_min" defines such value for kinect data. (http://wiki.ros.org/pointcloud_to_laserscan)

sudhanshu_mittal gravatar image sudhanshu_mittal  ( 2013-09-26 12:46:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-26 14:01:18 -0600

jorge gravatar image

Hi, sudhanshu_mittal's solution is fine. I add another option: in

turtlebot_description/urdf/turtlebot_gazebo.urdf.xacro

you have the description of the simulated kinect. Parameters

<clip>
    <near>0.05</near>
    <far>8.0</far>
</clip>

allows you to set pointcloud depth limits. In fact, I don't know why near limit it's 0.05... should be 0.4!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-06-08 11:25:14 -0600

Seen: 1,397 times

Last updated: Sep 26 '13