Ask Your Question
0

Select published topics

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

Pino gravatar image

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

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 -0600

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 imageAthoesen ( 2013-11-01 09:28:34 -0600 )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 imageThomas ( 2013-11-01 18:42:41 -0600 )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 imageAthoesen ( 2013-11-03 09:09:17 -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

1 follower

Stats

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

Seen: 168 times

Last updated: Oct 23 '13