I started programming an Android App for our robot. Therefore, I wanted to import some custom messages from our other C++ packages.
I successfully set up the Android Studio with android_cv_bridge, it even builds and runs on my phone.
However, I tried to import a custom message package, that I generated beforehand with
genjava_message_artifacts. For that, I added in the build.gradle dependencies
compile "org.ros.rosjava_messages:locomotion_controller_msgs:[0.0,0.2)" and in the source file
import locomotion_controller_msgs.*;, but if I build the project with Android Studio, it cannot find
Error:(25, 1) error: package locomotion_controller_msgs does not exist
If I remove the
import statement, it doesn’t complain, so I guess the
compile command works fine, but it cannot import the package for some reasons.
I also checked the ROS_MAVEN_PATH which is
/home/sam/catkin_ws/devel/share/maven:/opt/ros/indigo/share/maven where all the rosjava artifacts actually are.
Did I miss something? How else can I add custom messages to an ROS Android Studio project?