Skip to content

Commit

Permalink
Merge branch 'fix/draw-occupancies' into 'develop'
Browse files Browse the repository at this point in the history
Fix draw occupancies

See merge request cps/commonroad/commonroad-io!276
  • Loading branch information
Lerbert committed Mar 11, 2024
2 parents 08d06c7 + 9e48b99 commit 83c27a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Simplified traffic sign matching in FileReader
- The occupancy set, initial time step ,and final time step are now computed properties of TrajectoryPrediction
- Trajectory now allows direct access to the state list
- Activation condition for drawing occupancies

### Removed
- Setters for initial and final time step in predictions
Expand Down
2 changes: 1 addition & 1 deletion commonroad/visualization/mp_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def draw_dynamic_obstacle(
self._draw_signal_state(sig, veh_occ, draw_params.signals)

# draw occupancies
if draw_occupancies and isinstance(obj.prediction, commonroad.prediction.prediction.SetBasedPrediction):
if draw_occupancies or isinstance(obj.prediction, commonroad.prediction.prediction.SetBasedPrediction):
if draw_shape:
# occupancy already plotted
time_begin_occ = time_begin + 1
Expand Down

0 comments on commit 83c27a4

Please sign in to comment.