Library code comes from ROSBridgeClient, ROSDroid project is a wrapper and you can add it to your project from jitpack.io.
Do not define Message class with Kotlin, use java, otherwise communication with ROS bridge would fail.
-
Add the JitPack repository to your build file
-
gradle
Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
-
maven
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories>
-
-
Add the dependency
-
gradle
dependencies { implementation 'com.github.jie-meng:ROSDroid:v1.0.0' }
-
maven
<dependency> <groupId>com.github.jie-meng</groupId> <artifactId>ROSDroid</artifactId> <version>v1.0.0</version> </dependency>
-