Roadway Building
These functions are required to build the roadway from the provided centerline text files.
Missing docstring for append_to_curve!. Check Documenter's build log for details.
Missing docstring for get_new_angle. Check Documenter's build log for details.
Missing docstring for bound_heading. Check Documenter's build log for details.
Missing docstring for append_headings. Check Documenter's build log for details.
AutomotiveInteraction.centerlines_txt2tracks — Functionfunction centerlines_txt2tracks(filename)- Reads a .txt file which contains x coords in col 1 and y coords in col2
- Returns a track, i.e. a
curvefrom AutomotiveDrivingModels
Examples
# See make_roadway_interaction()AutomotiveInteraction.make_roadway_interaction — Functionfunction make_roadway_interaction()Overview
- Make the
DR_CHN_Mergingroadway by reading in the centerlines inAutomotiveInteraction.jl/dataset - These centerlines have been modified from the original ones in the
centerlines_DR_CHN_Merging_ZSfolder - The long lane being merged into by on ramp was split into before and after merge point in 2 separate txt files
- Eg:
output_centerline_1.txthas been split intocenterlines_b1.txt(before merge point) andcenterlines_b2.txt(after). - Similarly,
output_centerline_5.txthas been split intocetnerlines_g.txt(before) andcenterlines_h.txt(after) - Finally, the files in
centerlines_DR_CHN_Merging_ZSfolderoutput_centerline_<>.txthad x coords in row 1 and y coords in row 2. - The current
centerlines_<>.txthave x in col 1 and y in col 2
Details
- Reads in the centerline information from
AutomotiveInteraction.jl/dataset - Segment 1: Has 2 lanes: On ramp
ais lane 1 andb1is lane 2 - Segment 2: Has 1 lane:
b1is lane 1. Bothaandb1connect intob2 - Segment 3: Has 2 lanes:
cis lane 1 anddis lane 2 - Segment 4: Has 3 lanes:
gis lane 1,f1is lane 2,e1is lane 3. - Segment 5: Has 2 lanes:
f2is lane 1,e2is lane 2.e1connects toe2and bothgandf1toe2- Note that convention used here is that right most lane in direction of travel is given lane id 1
Examples
roadway_interaction = make_roadway_interaction()AutomotiveInteraction.make_roadway_ngsim — Functionfunction make_roadway_ngsim()- Read in the ngsim 101 roadway from the provided roadway file
/dataset/ngsim_101.txt
Examples
roadway_ngsim = make_roadway_ngsim()AutomotiveInteraction.make_roadway_interaction_with_extensions — Function- Make roadway interaction but with added extensions to avoid vehicle getting blocked at road end
Missing docstring for make_discont_roadway_straight. Check Documenter's build log for details.
Missing docstring for make_discont_roadway_jagged. Check Documenter's build log for details.
AutomotiveInteraction.MergingRoadway — Typestruct MergingRoadway
- Wrapper around a roadway for special rendering avoiding lane boundary wierd in merge
Example
road_ext = make_roadway_interaction_with_extensions()
roadway = MergingRoadway(road_ext)
render([roadway])AutomotiveVisualization.add_renderable! — Functionfunction AutomotiveVisualization.add_renderable!(rendermodel::RenderModel,mr::MergingRoadway)
- Dedicated render function for merging roadway