mergedemo {cartools}R Documentation

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

Description

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

Usage

mergedemo(df1,df2,leff,step)

Arguments

df1

leading vehicle, a matrix

df2

following vehicle, a matrix

leff

vehicle length, a number

step

time-step size, a number

Value

The mergedemo, 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]