Java implementation of RasPiRobotBoard3 (RRB3) library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Disable setStepper method Jan 10, 2017
.gitignore Add .gitignore file Dec 11, 2016
LICENSE Stub out project files Dec 11, 2016
README.md
mvnvm.properties
pom.xml [maven-release-plugin] prepare for next development iteration Jan 10, 2017

README.md

RRB4J

Java implementation of RasPiRobotBoard3 (RRB3) library.

RRB4J is built on top of Pi4J:

For information about the MonkMakes RRB3, see: https://www.monkmakes.com/rrb3/

Released builds are available from Maven Central.

Maven Coordinates

Use the following coordinates to include RRB4J in your project:

<dependency>
  <groupId>com.callidusrobotics.rrb4j</groupId>
  <artifactId>raspirobotboard</artifactId>
  <version>${rrb4j.version}</version>
</dependency>

Setup

You'll need Apache Maven to compile RRB4J from source.

You'll need Pi4J to run your application with RRB4J.

Maven

Install Apache Maven. The preferred method is to use the Maven Version Manager (mvnvm):

curl -s https://bitbucket.org/mjensen/mvnvm/raw/master/mvn > /usr/bin/mvn && chmod 0755 /usr/bin/mvn

Pi4J

Install Pi4J:

curl -s get.pi4j.com/install | sudo bash

Compiling

mvn clean install

Running

To run the sample application on a platform supported by Pi4J:

sudo java -jar target/raspirobotboard3-1.0.0-SNAPSHOT-jar-with-dependencies.jar

Overriding the default voltage settings:

sudo java -jar target/raspirobotboard3-1.0.0-SNAPSHOT-jar-with-dependencies.jar $BATTERY_VOLTAGE $MOTOR_VOLTAGE