Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pera-swarm/java-robot
- Owner: Pera-Swarm
- License: mit
- Created: 2021-05-10T17:32:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-28T06:49:15.000Z (about 1 year ago)
- Last Synced: 2023-10-28T07:28:41.291Z (about 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)