-
Notifications
You must be signed in to change notification settings - Fork 0
Cloning The Examples
Chris Burbridge edited this page Dec 4, 2013
·
2 revisions
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.
- Clone the rosjava project into your catkin package:
roscd java_projects
git clone https://github.com/uobirlab/rosjava_examples.git
- Add the project to the package's build list:
Add a line
include 'rosjava_examples'to the end ofjava_projects/settings.gradle - Build the examples
roscd java_projects/rosjava_examples
../gradlew installApp
- Rebuild the workspace
roscd
cd ..
catkin_make
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.