Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use jrosbridge to transport an image. #18

Open
paive opened this issue Mar 20, 2016 · 1 comment
Open

how to use jrosbridge to transport an image. #18

paive opened this issue Mar 20, 2016 · 1 comment

Comments

@paive
Copy link

paive commented Mar 20, 2016

when i use jrosbridge, it occurs a difficult problem to me, i write a node using python which controls robot to take a picture and subscribes a topic, at the same time, i want to write a client using jrosbridge to publish on above topic and get the image through the topic, however i have no idea how to complete such tasks, is there any simple solutions?

@rctoris
Copy link
Owner

rctoris commented Mar 20, 2016

rosbridge converts all ROS topics into JSON strings. As a result, it is a poor choice as an image transporter. If you want to get the image topic in Java, I would suggest using http://wiki.ros.org/web_video_server to convert the ROS image topic into a MJPEG stream and using a Java library for reading in the MJPEG stream directly from the URL.

@paive paive closed this as completed Mar 21, 2016
@paive paive reopened this Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants