-
Notifications
You must be signed in to change notification settings - Fork 20
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
Does exist an example to send/receive images? #6
Comments
Yes, subscribing/publishing to image topics with the Image message works (did the last time I used it at least). Hooking it up works the same way as any other message/topic. When the delegate receives the message, you'll probably want to use a MessageUnpacker like in the example in the readme. But unlike in the example in the readme that is for a string message, you set the generic and class to be the Image class defined in the messages. That class includes methods for auto unpacking the ROS image message data into a Java Buffered object for RGB and Mono encoded images so you can render it in something like a Swing GUI pretty easily. |
I don't know how to do this... here is my code to receive:
And I got this error: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of Anything I did wrong? Thanks! |
Hi,
I would like to know if exist and example to send & receive images.
In the sources, I saw that exist the message, but I am not sure if you test the message in the past.
Many thanks in advance
Juan Antonio
The text was updated successfully, but these errors were encountered: