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

How can I simulate a laser sensor without hardware?

asked 2014-04-11 16:01:45 -0500

ran95yu gravatar image

Hello everyone I have downloaded hokuyo_node-hydro-devel in GitHub,and I want to simulate it in Gazebo or rviz. First I don't konw if Gazebo or rviz meet the requirements,which one should I choose? My Ubuntu is 12.04.Then,how to simulate the hokuyo sensor without hardware?Because Ijust want to see how the sensor works, make sure what I downloaded is what I need,then I can use the sensor somewhere else as a library.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-12 03:28:15 -0500

dornhege gravatar image

Gazebo is what you would use for simulation, rviz is only for displaying data.

However, this only simulates a laser with similar features. It will not simulate a physical hokuyo that you can virtually connect to. So you will not need the hokuyo_node at all. That is only for physical sensors. The interface for a laser is usually only messages.

edit flag offensive delete link more


What you mean is that if I want to run hokuyo_node,I must connect physical sensors.Is it right? And now how can I simulate a laser with similar features?

ran95yu gravatar image ran95yu  ( 2014-04-12 04:03:09 -0500 )edit

You would use a plugin in gazebo that acts as a laser by sending the same message. See e.g.

dornhege gravatar image dornhege  ( 2014-04-13 04:23:32 -0500 )edit

Question Tools


Asked: 2014-04-11 16:01:45 -0500

Seen: 782 times

Last updated: Apr 12 '14