map_gcode_mtc: Create a mapping between simulated and actual data

Description Usage Arguments Examples

Description

Creates a timestamp based mapping to map every simulated timestamp to an actual timestamp based on real data

Usage

1
map_gcode_mtc(mtc_device_sim, mtc_device, elasticity = 2)

Arguments

mtc_device_sim

is the simlated version

mtc_device

is the actual log data

elasticity

is the maximum consecutive reference elements skippable (passed to dtw::mvmStepPattern())

Examples

1
2
3
4
5
6
data("example_gcode_parsed") # Parsed gcode
data("example_mtc_device_3") # MTCDevice object of actual log data
simulated_gcode_data = na.omit(simulate_data_from_gcode(example_gcode_parsed, 
start_time = 0, data_res = 0.1, data_type = "HH"))
mtc_device_sim = create_mtc_device_from_ts(simulated_gcode_data)
mtc_sim_mapped = map_gcode_mtc(mtc_device_sim, example_mtc_device_3, elasticity = 200)

mtconnectR documentation built on May 1, 2019, 10:38 p.m.