Robotics StackExchange | Archived questions

Ros application sample using the new Camera2 api in android

Hi
I am using ROS-java on an android phone. I am able to do String message based pub-sub. I wish to however use the camera feed and I checked out the camera application sample. However the api used there is outdated.

I need some pointers regarding what needs to be done to create a minimal ros application using Camera2 api. I do not want to waste efforts, any insights on the task would be useful.

Kindly let me know if there are any ros application samples available that use the Camera2 api.

Asked by vvyogi on 2018-04-18 14:00:49 UTC

Comments

Answers

You can use this demo RosTutor,but you should modify the master uri at line 34.

Then check your roscore computer and your android phone in the same local area network.

Finally,you can use rviz to show the image from your android phone.

Asked by Tony10012 on 2018-04-25 02:50:01 UTC

Comments

Do you know of an example that is completely in English?

Asked by jayess on 2018-04-25 10:41:56 UTC

@Tony10012 Thank you for answering. However, this does not answer my query, the application you have pointed uses the Camera API which is deprecated in the newer android versions (API 21, version Lollipop). Though the Camera api is working for the time being, it will eventually be removed.

Asked by vvyogi on 2018-04-26 23:25:30 UTC