getZebraData: Robot location time series for a match

View source: R/get.R

getZebraDataR Documentation

Robot location time series for a match

Description

Get the robot location time series for the six robots in a match.

Usage

getZebraData(match, authKey = defaultAuthKey())

Arguments

match

A character string identifying the match, as in the return value of getEventMatches(...)$key. It encodes the year, event location, type of match, and match number.

authKey

Your TheBlueAlliance.com authentication key.

Value

A list of six data.frames, named with the team numbers. Each data.frame contains the columns

x

The x component of the locations, in feet

y

The y component of the locations, in feet

time

The times at which the locations were recorded, in seconds from the start of the match.

As of this writing, the locations are recorded every 100 milliseconds.

Each data.frame also has the attributes

alliance

"red" or "blue"

team

the team number

.

Examples

m <- getEventMatches("2022wasam")
z6 <- getZebraData(m$key[[77]])
str(z6[[2]])

BillDunlap/TheBlueAlliance documentation built on April 29, 2022, 12:23 a.m.