Skip to content

Generalize crime viz to incomplete trajectories#4

Open
michael-hoss wants to merge 2 commits intoCommonRoad:developfrom
michael-hoss:generalize_vis
Open

Generalize crime viz to incomplete trajectories#4
michael-hoss wants to merge 2 commits intoCommonRoad:developfrom
michael-hoss:generalize_vis

Conversation

@michael-hoss
Copy link

Hi 👋

I think so far, this visualization function assumed that all obstacles' trajectories would start at time step 1 and go until the end of the scenario (e.g. 20).

I noticed something was off when the argument time_steps = [20] led to an error. state_list[time_steps[0] : time_steps[-1] + 1] becomes state_list[20:21] then, but the indices of state_list only go from 0 to 19 (for time steps 1 to 20).

Then I also realized it might be worth while fully generalizing it to the case that certain trajectories begin later than 1 and end sooner than 20, while the plot argument could still be time_steps = [1, 20] or even [0,20].

Is this worth while generalizing or are scenarios typically composed in a way all objects last from beginning to end? Since I don't know yet, I also haven't tested this function on such a scenario yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant