sensor_msgs/Image to jpg using roslibjs
I'm trying to display a jpg image from the sensor_msgs/Image topic onto my webpage. I have been able to extract the images using image_view in the terminal, so I know that the images are being sent correctly, I just don't know how to decode them in javascript.
I've tried the solution in this answer (https://answers.ros.org/question/2525...), but this does not work for me because I need to subscribe to a sensor_msgs/Image topic, not a sensor_msgs/CompressedImage topic.
I've found the tutorial for doing this in python (https://wiki.ros.org/cv_bridge/Tutori...) but I can't figure out how this would be done in javascript.
Any suggestions on how to convert a sensor_msgs/Image message to a jpg?
If you can view it in a browser and it doesn't have to be a jpg, the following QA would be helpful: https://stackoverflow.com/questions/5...