Open Source Garden/Generic Autonomous Robot / Python library
Project description
Open Source Garden/Generic Autonomous Robot (Python library)
OSGAR is lightweight multi-platform library targeting record and replay of multiple nodes (modules = sensors, robots, applications) logged into single file. It has similar goals as ROS or ADTF, but is minimalistic. It should run on different operating systems and also low end devices like Raspberry PI Zero.
![John Deere X300R](http://robotika.cz/competitions/roboorienteering/2016/jd-nav2.jpg)
References at http://robotika.cz/robots/osgar/
Video: https://youtu.be/KiDnPsnLmLU
# Architecture
Robot is set of modules. Every module has input and output ports, described together with the connections in the config file. All ports are logged with timestamp (microsecond resolution). The module is typically an instance of a driver, whose init arguments are also in config file.
# Notes regarding GitHub repository
The current development code is under osgar directory. If you are using OSGAR directly from sources please make sure that you setup PYTHONPATH to the root of this project.
The example configurations are stored in config folder. JSON files are used.
## LFS
The repository is now using [LFS](https://git-lfs.github.com/) (Large File Storage), so please make sure you have git-lfs installed: ` git lfs install ` Based on OS you may need to also install it into system, for example on Ubuntu: ` sudo apt install git-lfs `
## Examples
### Collect data from sensor(s)
There is a [osgar/record.py](https://github.com/robotika/osgar/blob/master/osgar/record.py) to run data collection based on given configuration file. If you would like to collect GPS data available on serial port use modified version of [test-windows-gps.json](https://github.com/robotika/osgar/blob/master/config/test-windows-gps.json) for Windows or [test-gps-imu.json](https://github.com/robotika/osgar/blob/master/config/test-gps-imu.json) for Linux.
` python -m osgar.record config/test-windows-gps.json `
To replay existing log use: ` python -m osgar.replay --module <module name> <log file name> `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file osgar-0.3.0.tar.gz
.
File metadata
- Download URL: osgar-0.3.0.tar.gz
- Upload date:
- Size: 216.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bafb9eede27ad2173ff0bf352cdbd12e67254a9c108d0548a823aa3598139f |
|
MD5 | 3421d974b8c42488a30073ea2231eee4 |
|
BLAKE2b-256 | 0238967d7c963fd66f81b97d0a7fafe84d053f3fa69e7f18611cdeeec3703c95 |
File details
Details for the file osgar-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: osgar-0.3.0-py3-none-any.whl
- Upload date:
- Size: 285.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c747d8c6ed2e9823318924fd05547ba4851b92f5afef9f3ad24eea0f4316580b |
|
MD5 | ec48e7c27536afd552dfeab70af1dcbb |
|
BLAKE2b-256 | 633503a9790d05a76a2a63ab3c868b2d1011f9dd7dae0dece5412cebdccffd30 |