ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Need help with Cross Compiling libraries for ros android ndk

asked 2018-08-29 06:33:51 -0500

manster2209 gravatar image

updated 2018-08-29 06:52:09 -0500

As described here ros_android_ndk, I am trying to cross compile some libraries for ros android ndk.
My first problem is that when i add new packages with rosfusion.py in the ndk.rosinstall and they fail to compile I cant get them out anymore. Even if I delete the new dependencies or comment them out the ./do_docker.sh fails because of the new dependencies. Do I miss a step here?(Solved see answers)
I need 2 Packages that arent included yet:
depthimage_to_laserscan and map_server.
Sadly map_server is commented out. Is there any workaround?
depthimage_to_laserscan the kinetic fails as well. But the indigo release seems to crosscompile correctly because it doesn't depend on opencv3. Now that it has compiled how do I use it? Do I just include the header file? Do i need to copy the code or do I have to declare it in the Android.mk file.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2018-08-29 10:11:12 -0500

Ernesto Corbellini gravatar image

Regarding your second question: if map_server is commented out it's most probably because I has some issues to compile. If you really need it you might try to fix those and submit a PR, it will be most welcome. On your third question: if you have added a new package and it has compiled you can now use it as any other ros package and you will need to add the binary to the Android.mk list so it gets statically linked. Hope this was useful.

edit flag offensive delete link more
0

answered 2018-08-29 10:26:21 -0500

jubeira gravatar image

I'd like to add one more clarification about the third question (how to use the cross compiled code). You can use tangobot as an example; it's an Android project that uses the cross compiled navigation stack. Take a look at the bottom level build.gradle and the cpp folder of the project for reference.

edit flag offensive delete link more
0

answered 2018-08-29 06:51:19 -0500

manster2209 gravatar image

Ok I answered one part of the question by myself. If i delete the catkin_ws in output i can compile again with do_docker.sh!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-08-29 06:33:51 -0500

Seen: 183 times

Last updated: Aug 29 '18