xabmerge3 {cartools}R Documentation

xabmerge3 produces t-x trajectories for a pair of lead and following vehicles.

Description

xabmerge3 produces t-x trajectories for a pair of lead and following vehicles.

Usage

xabmerge3(df1, df2, leff, step, k, type)

Arguments

df1

leading vehicle, a matrix

df2

following vehicle, a matrix

leff

vehicle length, a number

step

time-step size, a number

k

counter, a number

type

logical for plotting where TRUE creates a plot

Value

The xabmerge3, a wrapper function for bmfree2, xabparam and hsafe, returns a smooth hsafe rule t-x trajectory. for the following vehicle. The lead vehicle trajectory is not affected. Incidentally, inputs df1 and df2 were created with bmfree2 and used for testing.


[Package cartools version 0.1.0 Index]