Ask Your Question
1

openni kinect driver CPU usage

asked 2012-03-22 13:14:23 -0500

amck77 gravatar image amck77
13 2 2 6

Hi there,

I'm using the Kinect with a Turtlebot. I'm finding that the openni driver which I need to run is very CPU intensive. I've been looking for a way to decrease CPU usage by decreasing the amount of topics it publishes. From what I've read, it seams like the topics are only published if there is something subscribing to them. Is this correct? Is there anyway to cut down the driver to choose which video streams are available for use?

Thanks for any advice.

edit retag flag offensive close delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-03-22 19:13:29 -0500

Kevin gravatar image Kevin flag of United States
2375 40 69 100
http://www.ros.org/

Yes, if you look at the code, the driver looks to see if something is subscribed and if so, then publishes the message.

You have access to the driver and can cut away what you want, but I don't think you will get much out of it.

edit flag offensive delete publish link more
0

answered 2012-03-23 08:13:20 -0500

Felix Endres gravatar image Felix Endres flag of Germany
3322 13 32 61
http://www.informatik.uni...

updated 2012-03-23 08:15:28 -0500

Subscribing to the "RGB" and "D" images is far less expensive than subscribing to the XYZRGB-cloud. Depending on what you do with the data, you can save computation time by using the images, just the XYZ-cloud or by selectively computing the cloud (i.e., don't subscribe to the cloud and subsample it, but create a cloud only from every n-th pixel.

P.S: I once hacked the old drivers to send every n-th frame, somehow that should still be possible with the current one

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-03-22 13:14:23 -0500

Seen: 224 times

Last updated: Mar 23 '12