ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

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

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

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

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

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


Asked: 2015-10-08 09:07:33 -0600

Seen: 134 times

Last updated: Nov 25 '15