ros3djs
ros3djs copied to clipboard
No data received from rostopic /depthcloud_encoded
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
Have you found the solution of this problem?
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.
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).
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?
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