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

Lidar in simulation

asked 2012-12-18 19:56:50 -0500

Rookiebot gravatar image

updated 2014-01-28 17:14:37 -0500

ngrennan gravatar image

Hi. Let's say that I want to add a Lidar sensor (eg. Velodyne 3D) on a robot_description, in simulation. What plugin should I use? My guess is I should use a laser plugin (eg., is that right?

In addition, what is the normal usage of Lidar's data? By this I mean do I use the laserscan directly as input to other nodes like gmapping? Or do I need to first convert laserscan to pointcloud2 or other forms like odom?

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-19 17:38:06 -0500

JonW gravatar image

I would suggest looking at the file urdf/gazebo.urdf.xacro in turtlebot_description. The section beginning

xacro:macro name="turtlebot_sim_laser"

contains a description that creates a lidar sensor on the robot. Gmapping expects laser scans and odometry as input, so the output of this sensor should work directly.

edit flag offensive delete link more


Thanks! I will take a look at the URDF you mentioned.

Rookiebot gravatar image Rookiebot  ( 2012-12-20 17:39:46 -0500 )edit

Question Tools


Asked: 2012-12-18 19:56:50 -0500

Seen: 2,421 times

Last updated: Dec 19 '12