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

add depth image to laser scan in a launch file

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

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?

thanks

edit retag flag offensive close merge delete

Comments

@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 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
6

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

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

http://ros.org/wiki/roslaunch/XML

You're looking for the remap tag.

edit flag offensive delete link more

Comments

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

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

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

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"/>
</node>
edit flag offensive delete link more

Question Tools

Stats

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

Seen: 5,089 times

Last updated: Aug 21 '14