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

How do I use Java with ros melodic?

asked 2018-10-04 11:11:58 -0600

rezenders gravatar image

What is the best way to use ROS with Java? Searching online I found the rosjava and rosbridge package, which one is the best?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-04 13:36:05 -0600

jubeira gravatar image

Hi @rezenders,

rosbridge is not implemented in Java; it's a library that allows you to bridge, for example, ROS topics with web client applications.

If you want to use ROS with Java, you will need rosjava. Start looking here: .

You will notice that there's no release for Melodic just yet. To start with, the only difference would be differences in standard ROS messages. Other than that, you can still use it and it should still work. What do you want to do exactly?

edit flag offensive delete link more


Thank you for answering.

I have a system that is composed by some ROS nodes, and due to a specific requirement I need to make a Java program that is able to subscribe and publish to the topics that are being used by those ROS nodes.

So far I only used ROS with c++ and python.

rezenders gravatar image rezenders  ( 2018-10-04 19:14:49 -0600 )edit

Can I install rosjava from other release with no problem? Is there any difference when installing?

rezenders gravatar image rezenders  ( 2018-10-04 19:15:47 -0600 )edit

@jubeira: rosbridge itself is not implemented in Java, but there are client implementations available in that language:

gvdhoorn gravatar image gvdhoorn  ( 2018-10-05 02:06:09 -0600 )edit

Question Tools


Asked: 2018-10-04 11:11:30 -0600

Seen: 1,950 times

Last updated: Oct 04 '18