View source: R/create_scenario.R
create_scenario | R Documentation |
Creates a scenario from the supplied data. This is one of the first scenarioMaker functions that users will need and one of the most important as most of the functions take a scenario as input. Users may supply as much of the raw data as they have, and create_scenario() will (by default) calculate as many of the target-track-ownship distances as possible.
create_scenario(
scenarioName = "scenario",
targetTruth = NA,
ownShipTruth = NA,
sensorData = NA,
engagementData = NA,
platformInfo = NA,
verbose = TRUE,
preCalcTargetTrackDist = TRUE,
preCalcTargetOwnShipDist = TRUE,
preCalcTrackOwnShipDist = TRUE
)
scenarioName |
name of scenario |
targetTruth |
data frame containing all of the truth data for each target (likely from GPS or land-based radar systems). MUST have the following columns:
|
ownShipTruth |
data frame containing all of the truth position of the sensor system (likely from GPS or land-based radar systems). This may be ownship if testing something on a ship or the lat/lon position of a stationary ststem. MUST have the following columns:
|
sensorData |
data frame containing each sensor point for all of the tracks. MUST have the following columns:
|
engagementData |
Requires the following columns:
|
platformInfo |
display info for all platforms. Requires the following columns:
|
verbose |
(default=TRUE) |
preCalcTargetTrackDist |
(default=TRUE) if false, will not pre-calculate targetTrackDistance (which can be big and slow) |
preCalcTargetOwnShipDist |
(default=TRUE) if false, will not pre-calculate targetOwnShipDistance (which can be big and slow) |
preCalcTrackOwnShipDist |
(default=TRUE) if false, will not pre-calculate trackOwnShipDistance (which can be big and slow) |
Scenario file, which will include:
scenarioName
sensorData
targetTruth
ownShipTruth
engagementData: used for sandTable
platformInfo: used for SIMDIS export
targetTrackDistance
targetOwnShipDistance
trackOwnShipDistance
myScenario = create_scenario(
scenarioName="myScenario",
targetTruth=example1_truthData,
ownShipTruth=example1_ownShipData,
sensorData=example1_sensorData,
engagementData=example1_engagementData,
platformInfo=example1_platformInfo,
verbose=TRUE,
preCalcTargetTrackDist=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.