Skip to main content

A library to design line following tracks for robots

Project description

Line Track Designer

Documentation Status Build Status License: MIT

Line Track Designer is a library to design line following tracks for robots. With this tool, you can easily edit, save, share and print your tracks with a printer.

Tracks can be created in two different ways:

  • with the command line interface (CLI)
  • with the application programming interface in Python (API)

It uses a PDF file containing tiles to build tracks: PDF

Installation

Line Track Designer can be installed using pip:

pip3 install line-track-designer

Quickstart

For example, we consider a file named track.txt:

3;1 2;1 3;0
2;0 11;0 2;0
3;2 2;1 3;3

This file represents the following track: Track Image

This picture can be obtained with the following command:

linetrack show track.txt

You can also generate documentation for your track using this command:

linetrack savemd track.txt

It generates a markdown file with informations about the track. You can see an example here.

You can also use the API to create tracks:

import numpy as np
from line_track_designer.track import Track


# Arrays for the track
tiles = np.array([
    [3, 2, 3],
    [2, 11, 2],
    [3, 2, 3]
])
orient = np.array([
    [1, 1, 0],
    [0, 0, 0],
    [2, 1, 3]
])

# Creation of the track
track = Track(tiles, orient, 'Test track')

# Save the track
track.save_txt('track.txt')
# Make png file
track.save_img('track.png')
# Make markdown file
track.save_md('track.md', 'Easy track')

For more details, see the documentation here.

Links

Author

Quentin Deschamps: quentindeschamps18@gmail.com

License

MIT

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

line-track-designer-0.0.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

line_track_designer-0.0.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file line-track-designer-0.0.1.tar.gz.

File metadata

  • Download URL: line-track-designer-0.0.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for line-track-designer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 52c63ac9f92030b235efde9bae75ff763a14aa2724803c367e617ae9e65d0eef
MD5 2a4bc7f1f24c68770f741ebfbe18bedf
BLAKE2b-256 b5b1b1efc53c53a6ace4de50d637d3352f8df6362ec0a35e93c221b4aedb01fa

See more details on using hashes here.

File details

Details for the file line_track_designer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: line_track_designer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for line_track_designer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10f3d482700f07afaefc772beb8fda49d65901bf31fa761deeab47459f452ebb
MD5 df156ded0da911d98f80eff8e04073a0
BLAKE2b-256 fd7024b67c7895fbceb5377dd84ed3bedd362e7b5c990e828705ac0db19f12e7

See more details on using hashes here.

Supported by

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