Installing ROS Java#

The complete original version of ROS Java can be found on GitHub. Nevertheless we have to follow an other installation instruction to get ROS Java working under Python 3. Another problem is that the apt-get packages for ROS Java do not exist anymore, or are not provided for new versions of ROS 1. Our installation is based on the source installation idea.

Step 1

Install ROS Noetic on Ubuntu 20.04. Do this by using the instructions on the official pages: http://wiki.ros.org/ROS/Installation.

Step 2

Install all missing dependencies, to get ROS Java running.

sudo apt-get install -y python3-osrf-pycommon python3-catkin-tools build-essential libprotobuf-dev python3-rosdep openjdk-8-jdk

Step 3

Clone the ROS Java Workspace that we provide for you. It already includes all forked packages.

git clone --recurse-submodules https://git-st.inf.tu-dresden.de/ceti/ros/ros-java-packages/rosjava_workspace.git rosjava_workspace

Step 4

Initialize the ROS Java Workspace by using the following commands:

source /opt/ros/<ros-distro>/setup.bash
cd rosjava_workspace
cd rosjava
rosdep update
rosdep install --from-paths src -i -y

Step 5

Build the workspace by using the ROS catkin tooling. Currently, catkin build (catkin tools) do not work because of depencendy-issues. Because of that you have to use the older catkin_make.

catkin_make