Example#

Unfortunately, many of the ROS Java examples do not work correctly anymore. Thats why we repaired on of the examples and provide it within a Git-Repository. The code is based on the official tutorial, which can be found here.

Running the contained nodes is simple:

Step 1

Clone the package and build the workspaces with catkin_make.

Step 2

Start the roscore and the publisher and subscriber node.

roscore &
cd src/rosjava_catkin_package_a/my_pub_sub_tutorial
cd build/install/my_pub_sub_tutorial/bin
./my_pub_sub_tutorial com.github.rosjava.rosjava_catkin_package_a.my_pub_sub_tutorial.Talker &
./my_pub_sub_tutorial com.github.rosjava.rosjava_catkin_package_a.my_pub_sub_tutorial.Listener