ekumenlabs / roscpp_android

Cross compilation scripts for building ROS nodes using the Android NDK.
39 stars 30 forks source link

how to use the python package? #65

Open ewolfox opened 7 years ago

ernestmc commented 7 years ago

Hi @ewolfox. If I understand your question correctly you want to be able to use python code on the android device? This is currently not supported and thus the workarounds needed for these types of packages.

ewolfox commented 7 years ago

Thank you. @ernestmc Previously I thought the output files that in "output/target/bin" can be used in android device directly. Until something wrong occurred, I found some files are the python scripts.

Now could you give me some advice on how to make the workarounds? Refactoring the script files with the C++ ?

adamantivm commented 7 years ago

Yes, C++ or Java. Which package are you trying to run? what are you trying to accomplish?

ewolfox commented 7 years ago

Thank you. @adamantivm @ernestmc

The package roscore roslaunch and so on.

I am trying to port the ROS to Android. Refactoring the script files with the C++ is the practicable way.

Any other lightweight actions?

adamantivm commented 7 years ago

@ewolfox roscore and roslaunch are not necessary for ROS in Android, unless you're trying to do something out of the ordinary that I don't understand.

ROS can be used on Android already, but since the application lifecycle in Android is different than Linux, instead of using roscore and roslaunch, there are Java APIs for creating Android Activities to start a ROS core, nodes, etc. instead.

You can find more details here, or here. You may also find this link useful.

ewolfox commented 7 years ago

@adamantivm Thank you very much. Now I am following your advice and going on the right way.