Ask Your Question
0

rosjava and android_core

asked 2015-03-24 09:25:37 -0600

zior89 gravatar image

Hi every one!!

I am trying to create a app for android who could run ros nodes. But i have a problem when i create it.

My enviroment is ros indigo, ubuntu 14.04, android-studio, rosjava and android_core packages.

First i create a package on my catkin_ws (catkin_create_rosjava_pkg) and after i create a project on rosjava package (catkin_create_rosjava_project).

With that it doesn't create a android app structure or schema. it didn't recognise "http://schemas.android.com/apk/res/android" on the manifest or when i create a layout.

Do you know why it could be?

in case that i create a project from android-studio it is impossible for me import rosjava library!!!

Thank million for your help!!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-03-26 10:06:36 -0600

Daniel Stonier gravatar image

updated 2015-03-26 10:06:59 -0600

Certainly catkin_create_android_xxx because it's an android project, not a rosjava project. Also there is no org.ros.android.Node class. Start by copying in one of the many other tutorials, compiling it, and then paying attention to what they've done.

edit flag offensive delete link more
0

answered 2015-03-26 03:37:02 -0600

zior89 gravatar image

After a few days looking for an answer i am able to explain better my problem.

I install the tutorial and all of the works. I follow that's steps to try it (wiki.ros.org/android/Tutorials/indigo/Installation - ROS Development Environment)

So my issue is the next. I want to start my on project. but i don't understand how i must create me package. i try this two methods.

1) creating a rosjava package (catkin_create_rosjava_pkg and catkin_create_rosjava_project). But in this methods the problem that i found it is that when i import the project to android-studio isn't able to create a android schema (don't recognise "http://schemas.android.com/apk/res/android"). i try to create a android package by hand.

2) creating a android project with the dependencies of rosjava: catkin_create_android_pkg my_pkg android_core rosjava std_msg catking_create_android_project -t 10 -p com.github.android.my_pkg.my_pro my_pro but in this case i can't import rosjava library. In a .java activity i try to made import org.ros.android.Node and it doesn't recognise the package.

what i could make? someone could help me to create my on project?

thanks very much!!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-24 09:25:37 -0600

Seen: 400 times

Last updated: Mar 26 '15