Ask Your Question
0

Streaming depth to web browser

asked 2014-10-30 05:01:03 -0600

Andrew.A gravatar image

I'm running Indigo on Ubuntu 14.04 on a Nvidia Jetson TK1, using an Asus Xtion Pro Live.

Is it possible to stream the depth from a primesense device to web browser? I understand that it is possible to stream the rgb to a web browser using mjpeg_server and openni2.

When I try to use mjpeg_server, and I subscribe to the topic /camera/depth/image_raw, mjpeg_server gives the error Unable to convert 16UC1 image to ipl format.

And when I subscribe to /camera/depth/image, mjpeg_server gives the error Unable to convert 32FC1 image to ipl format.

Can anyone help me?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-30 12:25:18 -0600

rtoris288 gravatar image

Check out my response to streaming the MJPEG stream of these topics in http://answers.ros.org/question/19627... .

edit flag offensive delete link more

Comments

This is excellent! Also, I think you should move your answer from the link you provided to here instead! I think it's more relevant here. I noticed the quality parameter doesn't work. Will it be included soon?

Andrew.A gravatar imageAndrew.A ( 2014-10-30 21:18:53 -0600 )edit

I'm having difficulty trying to show this on my webpage using the img tag. Do you know what's wrong?

Andrew.A gravatar imageAndrew.A ( 2014-10-30 22:38:06 -0600 )edit

What is the URL you are trying to pass in? It should be in the format http://localhost:8080/stream?topic=/I... Note the & after the first initial ?

rtoris288 gravatar imagertoris288 ( 2014-10-31 11:33:21 -0600 )edit

I'm actually trying to get the stream from a network device rather than localhost, so the URL looks something like http://my.network.device.ip:8181/stream_viewer?topic=/camera/depth/image.

Andrew.A gravatar imageAndrew.A ( 2014-11-05 05:52:39 -0600 )edit

The stream_viewer URL will display an HTML page with the stream already embeded inside of it. To get it inside of an image element src, use http://my.network.device.ip:8181/stream?topic=/camera/depth/image

rtoris288 gravatar imagertoris288 ( 2014-11-05 07:17:06 -0600 )edit

I'll try this out once I can, thanks!

Andrew.A gravatar imageAndrew.A ( 2014-11-05 07:49:57 -0600 )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

1 follower

Stats

Asked: 2014-10-30 05:01:03 -0600

Seen: 379 times

Last updated: Oct 30 '14