This repository contains a simple template for ROS packages that use the Java programming language.
It depends on ros-java, installable o via apt-get
(tested with Ubuntu 16.04 and ROS kinetic
It use the arMOR library as a placeolder to show how to include jars; checkout the gradle file.
Remember to put all the java messages in a separate package.
./gradlew install
(andinstallApp
automatically called from catking)./gradlew deployApp
(per usre il roslaunch)./gradlew publish
(used if you make rosjava libraries)
Checkout this code for examples:
call deployApp
first, than use:
rosrun <ros_package_name> execute <java.path.to.node.or.Service>
or for roslauch
<node pkg="ros_package_name" type="execute" name="ros_package_name" args="java.path.to.node.or.Service"/>
If you want to use custom message, which depends from many packages in your warkspace,is always god to have a separate packages for that. Please check the ros_java_msgs
for an example.
Luca Buoncompagni EMAROlab, DIBRIS department, University of Genoa, Italy.
Previous commit for this package can be found here.