Ask Your Question
0

Is it possible to compile ros c++ package to jars library using catkin?

asked 2015-10-08 09:07:33 -0500

erikcong80 gravatar image

Hello, i have to create a robot_state_publisher rosjava package. So i am thinking whether there is a fast way to do this.

Any suggestions will be grateful. Thank you

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-11-25 09:10:37 -0500

Ernesto Corbellini gravatar image

There are some tutorials that are actually targeted for Android but they basically do what you need. The difference is that they are doing a cross-compilation of the C++ code for an ARM target processor. Then there are several steps that show how to wrap the native code and load it in your java application. If you carefully take out the Android related stuff you should be able to get the needed functionality.

edit flag offensive delete link more
0

answered 2015-10-08 11:17:54 -0500

ahendrix gravatar image

You cannot compile C++ to Java or to a jar.

Depending on exactly what your portability requirements are, you may be able to use some of the C++ libraries that don't interact with the ROS master through JNI.

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-10-08 09:07:33 -0500

Seen: 113 times

Last updated: Nov 25 '15