Ask Your Question
1

openni_launch doesn't publish any data on the topics!

asked 2011-11-30 22:43:30 -0500

Rasoul gravatar image

updated 2016-10-24 09:02:34 -0500

ngrennan gravatar image

Hi everyone,

I have installed ROS electric recently. I try to get point cloud from the Kinect sensor by the following command:

$ roslaunch openni_launch openni.launch

It runs a few couple of nodelets and warns about the calibration .yaml files which seems to be OK. I can see a list of topics that it advertises, but neither "rviz" nor "rostopic hz" can capture any data from any topic starting with "/camera"!

However, with the following command:

$ roslaunch openni_camera openni_node.laucnh

I can capture point clouds streaming out from the Kinect sensor. Any idea why openni_launch doesn't publish any data on the topics?

Best, Rasoul

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-12-01 00:36:39 -0500

Ben_S gravatar image

You might have a look at this answer by Patrick Mihelich. Maybe compiling the latest version from svn helps for you too. Sometimes the openni.launch works if you restart it a lot. I were having similar problems and spent a lot time on continuous restarting until i got output from rostopic hz...

Finally i did a clean reinstall and switched to 64 bit Ubuntu which helped a lot (at least for me).

edit flag offensive delete link more

Comments

By compiling the latest version from svn, it started working properly. Thank you very much for your help!
Rasoul gravatar image Rasoul  ( 2011-12-01 03:07:55 -0500 )edit
Im glad that i could help you. Could you please accept my answer, so that its clear, that the problem is solved? Thanks a lot. :)
Ben_S gravatar image Ben_S  ( 2011-12-01 05:35:54 -0500 )edit
Hi, same issue here. Pointclouds are published and can see them when echoed topic wise. but not visible in rviz. can the reinstall b done using synaptic or should i remove n do it through svn?
karthik gravatar image karthik  ( 2011-12-14 14:24:50 -0500 )edit
0

answered 2012-02-14 17:20:53 -0500

Kogut gravatar image

I have a similar problem. Usually point clouds are not published. If I keep re-starting I can sometimes get point clouds rendered for a glorious 4-5 seconds before they stop publishing. My intuition tells me there's a race condition/deadlock somewhere, but I have no idea where to start looking because there are no useful error messages.

I will try 64-bit Ubuntu, but that's annoying.

edit flag offensive delete link more

Comments

Did you compile the latest version from source? Your problem seems indeed a bit different though. Once it published for me it kept publishing as long as at least one subscriber was present. Do you get any output on the openni-console when it stops publishing?

Ben_S gravatar image Ben_S  ( 2012-02-14 21:08:03 -0500 )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

Stats

Asked: 2011-11-30 22:43:30 -0500

Seen: 598 times

Last updated: Feb 14 '12