ssl-log-converter

command
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

README

ssl-log-converter

Convert log files to a human-readable format - a JSON stream.

Installation

Use go-get to install this executable:

go get -u github.com/RoboCup-SSL/ssl-go-tools/cmd/ssl-log-converter

Usage

The binary is called ssl-log-converter. Run it with -h to print usage information.

The output will be written to <input-file>.txt.

Use cases

You can convert detection or geometry messages to a text file containing one message per line, encoded as JSON. Afterwards, you can use common Unix CLI tools and jq:

# Extract detection frames
ssl-log-converter -extractDetection my-logfile.log
# Select two fields, convert them to CSV and write them to a file
jq -r '[.camera_id, .t_capture] | @csv' my-logfile.log > data.csv

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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