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

Ros application sample using the new Camera2 api in android

asked 2018-04-18 14:00:49 -0600

vvyogi gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-04-25 02:50:01 -0600

Tony10012 gravatar image

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.

edit flag offensive delete link more

Comments

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

jayess gravatar image jayess  ( 2018-04-25 10:41:56 -0600 )edit

@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.

vvyogi gravatar image vvyogi  ( 2018-04-26 23:25:30 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-04-18 14:00:49 -0600

Seen: 327 times

Last updated: Apr 25 '18