Skip to content

secondspectrum/zeromq-reference-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Second Spectrum ZeroMQ Reference Client

Setup

Prerequisites

For more details on the prerequisites see https://github.com/nodejs/node-gyp#on-unix.

Setting up the reference client

npm ci
npm install -g ts-node

Connecting to Feeds

ts-node src/index.ts record \
  --gameId <game ID> \
  --feedName <feed name, default tracking-pose> \
  --address <IP address of the zeromq feed> \
  --port <port number of the zeromq feed>
  --folderName <folder to write data to>

The availble feeds are:

  • tracking-fast: High-quality tracking data at a slight delay
  • tracking-fast-prime: Low-latency tracking data
  • tracking-pose: High-quality pose data at a slight delay
  • tracking-pose-prime: Low-latency pose data

Sample Command

Unix:

ts-node src/index.ts record --gameId 8adee3fd-e17b-4aac-8190-b251112c0160 --address 0.0.0.0 --port 8585 --folderName 20220316-nba-min-lal

Windows:

npx ts-node src/index.ts record --gameId 8adee3fd-e17b-4aac-8190-b251112c0160 --address 0.0.0.0 --port 8585 --folderName 20220316-nba-min-lal

Recording Data

  • When you run the command, data will be written to folderName/client/msg_[messageNumber]_[timestamp].json

About

Reference Client to read data from zeromq tracking feed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published