Launch the rosjava application with the ROS Melodic version. Which method/tutorial is correct?
Hello. I want to develop a ROS application. I need to use Java for this. As I understand it, there is a rosjava package. But I also need to use a version of ros melodic but rosjava has not yet been ported to this version, so the deb installation is not available. There are two options left for me, as I understand from this page http://wiki.ros.org/rosjava/Tutorials... . Besides this page, I also saw http://rosjava.github.io/rosjava_core... and http://rosjava.github.io/rosjava_core... . It seems to me that I have tried all the methods of installing rosjava as well as creating and running the rosjava application. Nothing I tried helped me. There was always some mistake. So I think I need to ask this. How do I install rosjava, create an application and run it? Which path is the right one? I don't need rosrun or roslaunch for my purposes. I have to write this in java. Essentially, apart from the ros features, it should be a classic Java application with a standard maven structure and build using gradle. And have the main features that ROS provides for other languages (Message publish and subscribe, services and etc. ). I would like to provide an error message but because of several different installation methods I don't understand what is important and what is not (and what I do). I want to repeat that this application may not be a standard ros package. But I would like to see a standard java application with just ros functions. Maybe you can do it purely in Gradle? That would be great, I suppose.
P.S. Sorry about the bad English P.P.S. I'm sorry about the bad statement of the problem. I'm just tired and I don't know what I'm doing.
env | grep ROS
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/home/denis/catkin_ws/src/mavlink:/home/denis/catkin_ws/src/mavros/libmavconn:/home/denis/catkin_ws/src/mavros/mavros_msgs:/home/denis/catkin_ws/src/mavros/mavros:/home/denis/catkin_ws/src/mavros/mavros_extras:/home/denis/catkin_ws/src/Firmware:/home/denis/catkin_ws/src/mavros/test_mavros:/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=/home/denis/catkin_ws/devel/share/common-lisp
ROS_DISTRO=melodic
cat /proc/version
Linux version 4.18.0-25-generic (buildd@lgw01-amd64-033) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019
Edit:
java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
Edit 2:Update links: http://rosjava.github.io/rosjava_core... One of the methods I tried to follow. The old link stopped working