replay422toPngConverter

command module
v0.0.0-...-2f4599e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

README

Replay422ToPngConverter

Go Report Card

Installation

go get github.com/Bendodroid/replay422ToPngConverter

Make sure that $(go env GOPATH)/bin is available in your $PATH.

Usage

$ replay422toPngConverter -h
  -h	Display Help text
  -i	Whether to modify the original replay.json
  -j int
    	Number of jobs to use for converting (default $(nproc+2))
  -c int
    	-c=X  See https://godoc.org/image/png#CompressionLevel (default -1)
  -inputPath string
    	Path to a replay.json or a folder containing data from multiple robots (default ".")
  -outputDir string
    	Where to put the results (default ".")

Run the tool from anywhere and give paths as arguments or run it from the directory containing the replay.json.
inputPath can be one of the following:

  • something/something/replay.json In this case, the tool converts data for this robot only.
  • something/something/replay_* (dir) In this case, the tool appends replay.json to the path and falls back to the first case.
  • something/something/2020-23-42_ReplayData (dir) If the dir contains at least one dir matching 10.1.24.*, this is treated as data from multiple robots. The tool automatically finds a replay.json for each dataset and converts them sequentially.

When specifying outputDir in the third case, directory structure is preserved in the target directory.

License

BSD 3-clause

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL