Skip to content

feat: align Q10 map colors with V1#902

Open
tubededentifrice wants to merge 1 commit into
Python-roborock:mainfrom
tubededentifrice:vc/q10-v1-palette
Open

feat: align Q10 map colors with V1#902
tubededentifrice wants to merge 1 commit into
Python-roborock:mainfrom
tubededentifrice:vc/q10-v1-palette

Conversation

@tubededentifrice

@tubededentifrice tubededentifrice commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

First rendering slice extracted from #900. The Q10 base raster now follows the V1 map palette, including transparent out-of-map pixels, while both map formats share the same deterministic adjacent-room color policy.

Changes

  • render floor, wall, room, and outside pixels with the V1 palette
  • make pixels outside the map transparent
  • assign room colors deterministically while avoiding the same color for adjacent rooms where possible
  • reset V1 palette state per render so repeated and concurrent renders stay independent
  • keep this slice limited to map parsing/rasterization; it has no trait or transport changes

Before / after

The same synthetic occupancy grid is rendered on main and on this branch.
The checkerboard in the after image denotes transparency.

Before After
Before: Q10-specific colors and opaque outside pixels After: V1 colors and transparent outside pixels

Validation

  • pytest -q — 882 passed, 86 snapshots passed
  • pre-commit run --files ... — all hooks passed

Stack

  1. This PR: base raster and room palette
  2. refactor: render Q10 overlays with V1 #903: V1 overlay renderer
  3. fix: show docked Q10 robot on map #904: docked-state composition

The transport correction is independent in #901. #900 remains the aggregate real-device/Home Assistant before-and-after reference.

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