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

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
1

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
0

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

Question Tools

1 follower

Stats

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

Seen: 173 times

Last updated: Nov 25 '15