ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Adding an image publishing node to the android_tutorial_image_transport

asked 2017-07-07 07:43:52 -0500

hulkbv gravatar image

Hi guys,

I am wondering about how to add an image publisher to original image_transport tutorial project in order to publish the images from Android camera?

Here are some ideas I've tried but have not succeeded:

  • Use RosCameraPreviewView (like the android_camera_tutorial did) inside the MainActivity class by adding the second nodeConfiguration
    • Use CompressedImagePublisher from
    • Write rosjava publisher from scratch as this link

Any idea or suggestion would be much appreciated! Cheers

edit retag flag offensive close merge delete


Hi @hulkbv, would you mind detailing why you failed using CompressedImagePublisher from ?

jubeira gravatar image jubeira  ( 2017-07-10 13:54:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-11 04:55:45 -0500

hulkbv gravatar image

Hi @jubeira, I made it work on the weekend. The mistake I made is that I forgot to setCamera and releaseCamera (due to the lack of android dev experience), these methods come from CameraPreviewView. Anw, thanks for asking :)

edit flag offensive delete link more

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


Asked: 2017-07-07 07:43:52 -0500

Seen: 157 times

Last updated: Jul 11 '17