Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pera-swarm/java-robot

This is a boilerplate template for java virtual robots
https://github.com/pera-swarm/java-robot

Last synced: 27 days ago
JSON representation

This is a boilerplate template for java virtual robots

Awesome Lists containing this project

README

        

[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![Java CI with Maven](https://github.com/Pera-Swarm/java-robot/actions/workflows/java-ci.yml/badge.svg)](https://github.com/Pera-Swarm/java-robot/actions/workflows/java-ci.yml) ![Library](https://img.shields.io/github/v/release/Pera-Swarm/robot-library-java?label=Library)

# Java Robot

This is a boilerplate template for java virtual robots, under *Pera-Swarm*

## Local Environment Setup

If you need to run this repository on your local environment, please create a file named *'mqtt.properties'* in path, *'./src/resources/config/'* as follows and provide your MQTT broker's configurations.

You can select any channel, as same as your simulation server runs on.

```
server=127.0.0.1
port=1883
username=user
password=pass
channel="v1"
```

## Install the Library

- You need to setup a GitHub Token with the scope of `read:packages` and save it along with your GitHub UserName as environment variables as follows:

```xml

{GITHUB_USERNAME}
{GITHUB_TOKEN}

```

- Run the following command to run the `mvn install`

```bash
mvn -s ./settings.xml -B install --file pom.xml
```

## Run with commandline

- Compile the packages and assembly with all the dependencies, using `mvn compile assembly:single`

```bash
mvn clean compile assembly:single -s settings.xml
```

- Run the code implementation using `java -jar [jar_file_path] `

```bash
java -jar target/java-robot-node-1.0-SNAPSHOT-jar-with-dependencies.jar
```

## Detailed Guide

- [pera-swarm.ce.pdn.ac.lk/docs/robots/virtual/v1/java/](https://pera-swarm.ce.pdn.ac.lk/docs/robots/virtual/v1/java/)