Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 772 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 772 Bytes

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