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

openni_camera number of topics is huge [closed]

asked 2015-01-12 10:10:44 -0600

mark_vision gravatar image

Hi all, I'm using openni and openni2 packages. They work fine but there's lot of topics out there! Is there a way to reduce the number of topics?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mark_vision
close date 2017-09-27 02:21:07.166730

2 Answers

Sort by ยป oldest newest most voted
3

answered 2015-03-03 11:37:49 -0600

paulbovbel gravatar image

I haven't looked at openni(1)_launch in a while, but at least in openni2_launch, a lot of those topics should be:

  • internal, meaning they are needed for the internal processing ( http://wiki.ros.org/rgbd_launch ) pipeline (raw_image->...->pointcloud)

  • lazy, meaning they are only published if someone is subscribing to them, and not taking up cycles otherwise

Depending on what data you're interested in, you can force-disable certain components of the rgbd_launch pipeline here ( https://github.com/ros-drivers/openni... ).

edit flag offensive delete link more

Comments

Good answers. openni_launch is much the same in regards to having the ability to force-disable certain components.

sealguy77 gravatar image sealguy77  ( 2015-03-04 10:22:07 -0600 )edit
0

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

Nodes within openni_camera and openni_launch probably need to subscribe to those nodes to do the different processes it takes to produce a registered depth image. However, you could start reducing topics and see if it has any negative effects on the various images which openni_camera can produce.

If you really wanted to suppress openni_camera from publishing to certain topics, you could go through openni_camera/src/nodelets/driver.cpp, here, and start looking at line 172.

I am relatively new at this, so I am happy to leave it publishing to all these topics.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-01-12 10:10:44 -0600

Seen: 202 times

Last updated: Mar 03 '15