ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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 org.ros.android.view.camera.
    • Write rosjava publisher from scratch as this link

Any idea or suggestion would be much appreciated! Cheers

edit retag flag offensive close merge delete

Comments

Hi @hulkbv, would you mind detailing why you failed using CompressedImagePublisher from android.view.camera ?

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

1 Answer

Sort by ยป oldest newest most voted
0

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

Question Tools

1 follower

Stats

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

Seen: 175 times

Last updated: Jul 11 '17