Ask Your Question
1

How to use image_proc node

asked 2015-03-11 07:17:57 -0600

rdhn gravatar image

updated 2015-03-11 07:35:52 -0600

Using Xtion on Ubuntu with ROS hydro. Ran openni2_launch to the launch camera drivers.

$ rostopic list

/camera/rgb/image_raw

/camera/rgb/camera_info

and many other topics /camera/depth/.. camera/ir/..

ROS_NAMESPACE=camera rosrun image_proc image_proc

tells me to advertise /camera/image_raw first.

I was assuming my camera drivers are publishing to /camera/image_raw and camera/camera_info by default which I suppose image_proc will subscribe to publish image_mono or image_rect image but apparently they are publishing /camera/rgb/image_raw and camera/rgb/camera_info. What is the difference between /camera/image_raw and /camera/rgb/image_raw and how should I publish /camera/image_raw.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-03-11 10:06:10 -0600

Wolf gravatar image

updated 2015-03-12 02:39:57 -0600

If your cam driver topics are

/camera/rgb/image_raw

/camera/rgb/camera_info

I guess you should start the image_proc node like:

ROS_NAMESPACE=camera/rgb rosrun image_proc image_proc

Update with explanations:

The ROS_NAMESPACE=camera/rgb puts all topics of the node into this namespace. Initially if you run

rosrun image_proc image_proc

it will listen to the topics

/image_raw

/camera_info

. If you than change the call into

ROS_NAMESPACE=camera rosrun image_proc image_proc

as mentioned in the tutorial it will listen to

/camera/image_raw

/camera/camera_info

. However, your camera driver apparently publishes to the /camera/rbg namespace so your call will be

ROS_NAMESPACE=camera/rgb rosrun image_proc image_proc

such that the image_proc node listens to the topics of your camera driver which are:

/camera/rgb/image_raw

/camera/rgb/camera_info
edit flag offensive delete link more

Comments

can you please explain what is actually happening?

rdhn gravatar imagerdhn ( 2015-03-11 12:59:47 -0600 )edit

Please see the edit

Wolf gravatar imageWolf ( 2015-03-12 02:40:15 -0600 )edit

thank you for the explanation. can you also give me the command list to convert depth image to XYZ point cloud using depth_image_proc/point_cloud_xyz nodelet of depth_image_proc.

rdhn gravatar imagerdhn ( 2015-03-12 03:37:46 -0600 )edit

Sorry, don't know this. Please feel free to open new thread on that, if you can not find it in the docs/tutorials

Wolf gravatar imageWolf ( 2015-03-12 08:05:12 -0600 )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

2 followers

Stats

Asked: 2015-03-11 07:17:57 -0600

Seen: 3,089 times

Last updated: Mar 12 '15