ros3djs icon indicating copy to clipboard operation
ros3djs copied to clipboard

No data received from rostopic /depthcloud_encoded

Open jacksonkr opened this issue 8 years ago • 5 comments

I can see rostopics on localhost:8080 and I can even view a number of camera topics in realtime on the web:

http://localhost:8080/stream_viewer?topic=/camera/depth/image
http://localhost:8080/stream_viewer?topic=/camera/rgb/image_rect_color
http://localhost:8080/stream_viewer?topic=/camera/depth_registered/sw_registered/image_rect

The issue is http://localhost:8080/stream_viewer?topic=/depthcloud_encoded. If I view that stream then I see this output in the window where I ran $ rosrun depthcloud_encoder depthcloud_encoder_node _depth:=/camera/depth_registered/image_rect _rgb:=/camera/rgb/image_rect_color

[ WARN] [1477518125.161876892]: Messages of type 1 arrived closer (0.033357374) than the lower bound you provided (1.500000000) (will print only once)


note: I was referred to this specific repo for issue reporting. The reference is at the bottom of this page: http://wiki.ros.org/ros3djs/Tutorials/Point%20Cloud%20Streaming%20from%20a%20Kinect

jacksonkr avatar Oct 26 '16 21:10 jacksonkr

Have you found the solution of this problem?

arnasIV avatar Feb 07 '17 09:02 arnasIV

The warning isn't critical (though I'm not sure why the value 1.5 was chosen there) and shouldn't affect whether or not you see an image.

A few things you can try:

  • Check the browser console for any error messages
  • Check that the topic has information (i.e. rostopic echo -n 10 /depthcloud_encoded)

Also, if you can point to a bagfile that reliably shows off the missing video stream, that would be great, since I don't currently have a Kinect to test this with.

T045T avatar Feb 07 '17 13:02 T045T

There are no errors in the browser console. The topic does not publish anything. Actually there is a problem with the callback, synchronizing disparity image and rgb image topics(I can see both of them in the browser just fine).

arnasIV avatar Feb 07 '17 13:02 arnasIV

If the topic doesn't publish anything, this is actually an issue with depthcloud_encoder. Additionally, if the warning really indicates a problem with the callback, setting the Kinect frame rate to 0.5 (i.e. one frame every two seconds) should fix it. Of course, that's not a final solution, but it would confirm that violating that lower bound is our problem, rather than some other incompatibility.

Another likely point of failure is the bit depth of the depth topic. Can you confirm that the topic contains a single 32-bit channel?

T045T avatar Feb 07 '17 13:02 T045T

I know it's a bit late but I just ran into what seems to be a very similar issue and raised it in depthcloud_encoder github: https://github.com/RobotWebTools/depthcloud_encoder/issues/16

JohanJarvi avatar Apr 21 '21 00:04 JohanJarvi