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

Revision history [back]

click to hide/show revision 1
initial version

depthimage_to_laserscan takes a depth image (sensor_msgs/Image), converts it to a Laserscan (sensor_msgs/LaserScan) and publishes it. No "output window" is created.

By default the LaserScan is published on the /scan topic. You can check it exists with rostopic list | grep "/scan"

To visualize it, the most common would be to add a LaserScan topic in RViz and select the /scan topic.


If this doesn't answer your question, can you please edit it to provide more information:

  • What you are trying to accomplish
  • What "response or output window" you expected?
  • "i can easily get rgb, ir and depth images using rosrun commands" -> What commands are you referring to ?
  • Any useful additional information following the Support Guidelines

depthimage_to_laserscan takes a depth image (sensor_msgs/Image), converts it to a Laserscan (sensor_msgs/LaserScan) and publishes it. No "output window" is created.

By default the LaserScan is published on the /scan topic. You can check it exists with rostopic list | grep "/scan"

To visualize it, the most common would be to add a LaserScan topic plugin in RViz and select the /scan topic.


If this doesn't answer your question, can you please edit it to provide more information:

  • What you are trying to accomplish
  • What "response or output window" you expected?
  • "i can easily get rgb, ir and depth images using rosrun commands" -> What commands are you referring to ?
  • Any useful additional information following the Support Guidelines