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

Select published topics

asked 2013-10-23 07:08:19 -0500

Pino gravatar image

updated 2014-01-28 17:18:20 -0500

ngrennan gravatar image

Hello,

I'm using the openni_camera and openni_launch stacks with ROS fuerte on a platform with low processing power.

I only need two topics: /rgb/image_rect and /depth_registered/image_rect. Is there a way to only publish those topics in order to speed up the processing time?

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-10-23 20:27:23 -0500

Thomas gravatar image

You do not have to do that in ROS. Data will (should) be computed only if there is at least one subscriber listening to your topic. The whole goal here is to reduce the configuration burden of each node. Think of the topic list as a list of capabilities and not a list of produced data.

edit flag offensive delete link more

Comments

Is there a way to get topics from more than one Kinect?

Athoesen gravatar image Athoesen  ( 2013-11-01 09:28:34 -0500 )edit

I guess if you launch the nodes twice in different namespaces it should work. You may need to connect your two kinects on two different USB controllers though.

Thomas gravatar image Thomas  ( 2013-11-01 18:42:41 -0500 )edit

Well as I explained in my question here: http://answers.ros.org/question/96071/accessing-multiple-kinects-in-ros-hydro/ I'm not sure exactly how to modify the launch file to launch separate nodes. Any ideas? Edit: Thanks for the suggestion Thomas, it helped me figure it out.

Athoesen gravatar image Athoesen  ( 2013-11-03 09:09:17 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-23 07:08:19 -0500

Seen: 289 times

Last updated: Oct 23 '13