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

add depth image to laser scan in a launch file

asked 2013-05-17 09:10:50 -0500

Hi guys,

I'm trying to create my own .launch file but i can't understand how to add the follow rosrun to the file:

rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw

I know that I can run the node by typing

<node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthimage_to_laserscan"/>

but I don't know how to add the "image:=/camera/depth/image_raw" part.

someone can help me?


edit retag flag offensive close merge delete


@danielq - Can you post the launch file you created? I want to use depthimage_to_laserscan with kinect v2 and want to see how to use the parameters to use libfreenect2 driver with this package.

pallavbakshi gravatar image pallavbakshi  ( 2017-01-27 03:25:59 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-05-17 09:17:20 -0500

updated 2013-05-17 09:17:33 -0500

You're looking for the remap tag.

edit flag offensive delete link more


thanks a lot Dan, I followed the wiki and I have solved. Thanks

danielq gravatar image danielq  ( 2013-06-03 23:39:23 -0500 )edit

answered 2014-08-21 08:11:41 -0500

Moda gravatar image

For the others, the answer is

<node name="depthimage_to_laserscan" pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" > 
  <remap from="image" to="/camera/depth/image_raw"/>
edit flag offensive delete link more

Question Tools


Asked: 2013-05-17 09:10:50 -0500

Seen: 5,066 times

Last updated: Aug 21 '14