rosjava / android_core

Android libraries for rosjava
144 stars 166 forks source link

Unable to generate rosjava_message for mavros_msgs #318

Open shakthi-prashanth-m opened 4 years ago

shakthi-prashanth-m commented 4 years ago

Hi,

I wanted to use mavros_msgs from https://github.com/mavlink/mavros/tree/master/mavros in android_core project, so that I can make use of those messages in service client in android.

I followed http://wiki.ros.org/rosjava/Tutorials/indigo/RosJava%20Message%20Artifacts#Meta_Msg_Pkgs. But I am not able to use mavros_msgs in my android_core project.

dependencies {
  compile "org.ros.rosjava_core:rosjava:[0.3.2,0.4)"
  compile "org.ros.rosjava_messages:diagnostic_msgs:[1.12,1.13)"
  compile "org.ros.rosjava_messages:sensor_msgs:[1.12,1.13)"
  compile 'org.ros.rosjava_messages:mavros_msgs:1.0.0' >>>>>>>>>>> I get error here.
  compile 'org.ros.rosjava_core:rosjava_geometry:[0.3,0.4)'
  compile 'org.ros.rosjava_messages:visualization_msgs:[1.12,1.13)'
  compile "com.android.support:appcompat-v7:28.0.0"
  compile 'com.android.support:support-v4:28.0.0'
}

Can you please help to resolve this issue ?

Thanks.

shakthi-prashanth-m commented 4 years ago

It would be greatly helpful if you can suggest how to generate ROS Java message for a ROS message: mavros_msgs. For eg: My purpose is to write a ROS Android Java service client and communicate with a MAVROS service which is probably written in C++/Python. Please suggest how to do it.

kjitender469 commented 4 years ago

@shakthi-prashanth-m will you please add a screenshot of error you are facing.