Skip to main content

Open Source Garden/Generic Autonomous Robot / Python library

Project description

OSGAR

Open Source Garden/Generic Autonomous Robot (Python library)

OSGAR is a lightweight, multi-platform library for recording and replaying data from multiple nodes (modules such as sensors, robots, and applications) logged into a single file. It is designed to be minimalistic, modular, and robust, capable of running on everything from high-end workstations to low-end devices like the Raspberry Pi Zero.

OSGAR was originally developed by robotika.cz and has been successfully deployed in several international robotics challenges.

Key Features

  • Robust Logging: All port data is logged with microsecond-resolution timestamps into a single .log file.
  • Deterministic Replay: Replaying recorded data produces identical outputs, enabling reliable debugging of complex sensor interactions and algorithms in a controlled environment.
  • Modular Architecture: Robots are built as a set of independent modules connected via a communication "bus," defined in a simple JSON configuration.
  • Minimalistic & Multi-platform: Written in Python, with minimal dependencies, ensuring it runs on various operating systems and hardware.

Applications & Robots

OSGAR has been the core software framework for a variety of robotic platforms and prestigious competitions. See OSGAR Platforms for more details.

John Deere X300R

DARPA Subterranean Challenge (SubT)

Team Robotika used OSGAR to coordinate a heterogeneous fleet of robots (wheeled, tracked, and flying) to map and search complex underground environments.

DARPA SubT

DARPA Triage Challenge (DTC)

OSGAR powers a fleet of Matty robots (M01-M05) equipped with non-contact sensors to detect physiological signs in casualties during mass-casualty incidents.

Matty robots for DTC

Field Robot Event

OSGAR-based robots, including the "Matty twins," have successfully competed in the Field Robot Event, an international competition for autonomous robots in agriculture.

Field Robot Event

Documentation

For more detailed information, please refer to:

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.

Examples

Collect data from sensor(s)

There is a 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 for Windows or 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

osgar-1.1.0.tar.gz (166.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osgar-1.1.0-py3-none-any.whl (213.8 kB view details)

Uploaded Python 3

File details

Details for the file osgar-1.1.0.tar.gz.

File metadata

  • Download URL: osgar-1.1.0.tar.gz
  • Upload date:
  • Size: 166.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for osgar-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b21ebf1a0a16289a8046f6ea20a3b5a7030171cbe5f481709a8bf74729f3b107
MD5 d11bc8f922b2611207d2988af532dd40
BLAKE2b-256 1eac9eab4eb86632584deefcc54242be0fdcd72680be5de7f36ef903853f30de

See more details on using hashes here.

File details

Details for the file osgar-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: osgar-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 213.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for osgar-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abbefcce623f9daa10b4125ddb0e27ceb31469780712f6ffad2863804115fe1e
MD5 7e076a498c8597f9a8a03cf48063ad72
BLAKE2b-256 eb182dc22bfa3d9beff3367bd0f0d4f434d1bfbb28ef443ec461b23c898a889e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page