Ask Your Question
0

launching the image_view node of kinect camera

asked 2015-01-06 11:45:27 -0500

A.M Dynamics gravatar image

Dear all,

For Kinect, to view depth images on the topic /camera/depth/image, we use this command

rosrun image_view image_view image:=/camera/depth/image

Now my question is how do I include image_view node in launch file of my package?. Including a node in a launch file is straightforward but I do not know to include image:=/camera/depth/image in my launch file. Dose anyone know how?

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-01-06 14:13:20 -0500

Remapping is done with the remap tag. Running image_view from within a launch file would look something like this:

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

Comments

Thanks. But there is still a problem. Not any window pops up to show the output of camera and there is no errors!! so what is the problem?

A.M Dynamics gravatar image A.M Dynamics  ( 2015-01-06 15:29:04 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-06 11:45:27 -0500

Seen: 516 times

Last updated: Jan 06 '15