merge produces t-x trajectories for a pair of lead and following vehicles.merge produces t-x trajectories for a pair of lead and following vehicles.
merge(df1,df2,leff,step,ylim)leading vehicle, a matrix
following vehicle, a matrix
vehicle length, a number
time-step size, a number
for plot, a vector
The merge, 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.