Skip to content

Cloning The Examples

Chris Burbridge edited this page Dec 4, 2013 · 2 revisions

Cloning the examples and building them

Make sure that you have a rosjava package setup ready into which to clone the repo. If you have followed the previous tutorials then this will be called java_projects.

  1. Clone the rosjava project into your catkin package:
roscd java_projects
git clone https://github.com/uobirlab/rosjava_examples.git
  1. Add the project to the package's build list: Add a line include 'rosjava_examples' to the end of java_projects/settings.gradle
  2. Build the examples
roscd java_projects/rosjava_examples
../gradlew installApp
  1. Rebuild the workspace
roscd 
cd ..
catkin_make

Running the examples

To run the examples, you need to launch the relevant classes using a script installed by the gradle installApp task. First make sure that you have a ROS core running.

roscd java_projects/rosjava_examples
./build/install/rosjava_examples/bin/rosjava_examples com.github.uobirlab.rosjava_examples.Talker

See examples for a list of the examples within the repository.

Clone this wiki locally