unable to view compressed image in web mjpeg_server
I have installed and run the mjpegserver in my pi 4b and ubuntu 18 machie. in pi i am using imagetransport node to publish image. after that i ran mjpeg_server node in pi. But when i try to view the compressed image in web i can't access it.
I can easily view the raw image with given url in chromium browser:
http://192.168.4.1:8181/stream?topic=/camera/image
But i can't access the compressed image with url:
http://192.168.4.1:8181/stream?topic=/camera/image/compressed
So how should i view the compressed image topic in web which is running on the pi 4.
Asked by dinesh on 2020-04-12 04:59:10 UTC
Answers
Because you are using Ubuntu 18, I am assuming you are using ROS Melodic.
Starting with ROS Kinetic web_video_server
is a replacement of mjpeg_server
Maybe that is not exactly what you are looking for but from my web_video_server
experience I know you can view compressed image topic by adding &type=ros_compressed
to the URL.
So I hope that following URL will also work for you in mjpeg_server
case:
http://192.168.4.1:8181/stream?topic=/camera/image&type=ros_compressed
Asked by viktor.holova on 2020-04-14 06:17:49 UTC
Comments
is this also possible to stream audio instead of only video? what package? i'll try that in few moment by the way.
Asked by dinesh on 2020-04-14 12:34:57 UTC
web_video_server
is only video as far as I know. Not sure about audio
Asked by viktor.holova on 2020-04-14 13:15:45 UTC
Comments
What version of ROS are you using?
Asked by viktor.holova on 2020-04-14 04:47:53 UTC
ros melodic.
Asked by dinesh on 2020-04-14 12:33:19 UTC