Visualization
These functions are responsible to create visualizations using AutomotiveVisualization.jl
.
AutomotiveInteraction.video_trajdata_replay
— Functionfunction video_trajdata_replay
Makes a video of the trajdata taking frame range as input
Example
f = FilteringEnvironment()
video_trajdata_replay(f,id_list=[2,7,10,18,25],range=1:30,filename="media/lower_1.gif")
AutomotiveInteraction.scenelist2video
— Functionfunction scenelist2video(scene_list;filename = "media/scenelist_to_video.mp4")
- Make video from a list of scenes (generally generated using
get_hallucination_scenes
Examples
scenelist2video(f,scenelist,filename="media/test_scenelist2video.mp4")
AutomotiveInteraction.video_overlay_scenelists
— Functionfunction videooverlayscenelists(scenelist1,scenelist2,roadway,filename)
Example
scene_list_1 = run_vehicles(id_list=[6,8,19,28,29],roadway=road_ext,traj=traj_ext,
filename="model_driven.mp4")
scene_list_2 = f.traj[1:length(scene_list_1)]
video_overlay_scenes(scene_list_1,scene_list_2,id_list=[6,8,13,28,29],
roadway=road_ext,filename="imit_real.mp4")
AutomotiveInteraction.scenelist2video_curvepts
— Functionfunction scenelist2video(scene_list;filename = "media/scenelist_to_video.mp4")
- Make video from a list of scenes (generally generated using
get_hallucination_scenes
Examples
scene = Scene(500)
get!(scene,traj_interaction,1);
scene_list = get_hallucination_scenes(scene,models=models);
scenelist2video(scene_list,filename="media/scenelist_to_video.mp4")