getTeamZebraData: Robot location time series.

View source: R/get.R

getTeamZebraDataR Documentation

Robot location time series.

Description

Get time series of the the locations of one robot in a match.

Usage

getTeamZebraData(frc_zebradata, team)
## S3 method for class 'frc_zebradata'
x[i, ...]
## S3 method for class 'frc_zebradata'
x[[i, ...]]

Arguments

x

The return value of a call to getZebraData, which contains the location timeseries for all six robots in a match.

i

A team number, given as a number or a character string, or a character string of the form "frc<team number>". It may also be an integer in the range 1-6, which will be taken as equivalent to names(x)[i]. (For teams 1-6 you must a supply a string).

Value

A data.frame giving the location of the robot every 100 milliseconds. Its columns are

x

The x component of the location

y

The y component of the location

time

The times at which the locations were measured

The data.frame also has attributes

alliance

"red" or "blue"

team

the team number

Examples

z_match <- getZebraData("2022pncmp_qm10")
names(z_match)
str(z_match[2])
str(z_match["7641"])
str(z_match[[2]])
str(z_match[["frc7461"]])
str(z_match[[7461]])

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