Skip to main content

Python tool to read, write, and visualize CommonOcean scenarios and solutions for automated vessels.

Project description

image info

commonocean-io

The CommonOcean Input-Output package provides methods for reading, writing, and visualizing CommonOcean scenarios and planning problems. It can also be used as a framework for implementing motion planning algorithms to solve CommonOcean benchmarks and is the basis for other tools in the CommonOcean framework. Learn more about the scenario specification here.

Documentation

The full documentation of the API can be found here.

For getting started, we recommend our tutorials.

Requirements

The required dependencies for running commonocean-io are:

  • commonocean-vessel-models==1.0.0
  • commonroad-io==2023.1
  • matplotlib~=3.5.0
  • numpy~=1.22.4
  • imageio~=2.9.0
  • setuptools>=42.0.1
  • lxml>=4.2.2
  • iso3166>=1.0.1
  • pytest>=7.1.1

Installation

​ Create a new Anaconda environment for Python 3.8 (here called co38):

conda create -n co38 python=3.8
conda activate co38

Install the package using pip and, if you want to use the jupyter notebook, install jupyter as well:

pip install commonocean-io
pip install jupyter

Start jupyter notebook to run the tutorials:

jupyter notebook

Changelog

Compared to version 2023.1, the following features have been added or changed:

Added

  • New rendering functionality with MPRenderer

Fixed

  • Consistent writing and reading or vessel states
  • Formatting errors in XML blueprint file

Changed

  • Improved State classes so that more specific state classes are used. Introduction of InputState classes.
  • Updated dependencies
  • Updated documentation and tutorials

Contibutors

​ We thank all contributors for their help in developing this project (see contributors.txt).

Citation

If you use our code for research, please consider citing our paper:

@inproceedings{Krasowski2022a,
	author = {Krasowski, Hanna and Althoff, Matthias},
	title = {CommonOcean: Composable Benchmarks for Motion Planning on Oceans},
	booktitle = {Proc. of the IEEE International Conference on Intelligent Transportation Systems},
	year = {2022},
}

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

commonocean_io-2025.1.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

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

commonocean_io-2025.1-py3-none-any.whl (105.2 kB view details)

Uploaded Python 3

File details

Details for the file commonocean_io-2025.1.tar.gz.

File metadata

  • Download URL: commonocean_io-2025.1.tar.gz
  • Upload date:
  • Size: 91.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for commonocean_io-2025.1.tar.gz
Algorithm Hash digest
SHA256 0ff4921654ade490a8a4a8d83e690f8dbf541df2f1414acbedf6a90666e3b194
MD5 565a23b4483d43c305c5ec33036f9561
BLAKE2b-256 90d7530cf7ae6e221e9837810968363ce91358d1fc62fbfa346f0d16be762a86

See more details on using hashes here.

File details

Details for the file commonocean_io-2025.1-py3-none-any.whl.

File metadata

File hashes

Hashes for commonocean_io-2025.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65ed3c19ced2c586b28c9250918482d50e14d31c77d9dfe7e7e775366f6a1832
MD5 3a4b4085b005938e3022f3ab58491f1d
BLAKE2b-256 eb8ab48b6647d87b864388d192c7fbd24d60f5928d11178619430ad1799a7d49

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