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

Revision history [back]

click to hide/show revision 1
initial version

Hey, I don't really understand your problem. What exactly does your error look like? As far as I understood you seem to ask how to implement a custom service into Android Studio right?

I also had some struggles on how to do it but I found a working solution for it here.

Create your .srv files as you usually would do it in your rosjava workspace. Then run catkin_make to generate your .jar artifacts. After that import your .jar file into your libs folder within Android Studio that is located in your app modules folder where src and build is located too. If that libs folder is nonexistent just create it. So once your .jar file is in libs folder open your module's build.gradle and add the following implementation if it's not already done:

implementation fileTree(include: ['*.jar'], dir: 'libs')

Just build your project and you should be able to use your custom service in your application.