Hi, I am trying to render a scenario together with some shapes. I can give the shapes and obstacles in the scenario a z-order, but not the lanelets. However, I did find the following lines in the MPRenderer.py file:
class ZOrders:
LANELET_POLY = 9.0
# Some more constants here
RIGHT_BOUND = 12.0
LEFT_BOUND = 12.0
# Some more constants down below..
I am also drawing a shape to show the vehicle FOV with the following ShapeParams:
time_begin: 0
time_end: 1
antialiased: true
opacity: 0.95
facecolor: '#E5E5FF'
edgecolor: '#E5E5FF'
linewidth: 0.5
zorder: 1
draw_mesh: false
I would think that since the FOV shape has a lower z-order, it would be rendered first, and then the lanelet bounds (this is functioning for all other objects in the scenario, at least). However, this is not the case. Here is an example plot: (I turned down the opacity a bit to show the underlying lanelets)
Am I missing something in the functionality of these z-orders for lanelets? Or is there maybe a work-around for ordering the plotting? Thanks!
Using commonroad-io 2022.3