Skip to content

p8-s2: Map ↔ Scenario mode + actor placement #246

Closed

Description

@JArmandoAnaya

Part of the Road to Parity roadmap.

Scope

  • Application mode switch between map editing and scenario editing; actor placement on the network with an actor attributes panel.

Acceptance

  • Mode switch preserves both documents; placed actors serialize to OpenSCENARIO and round-trip.

Remaining work (added 2026-07-31)

The written acceptance above was met and tested on 2026-07-31 (PRs #527, #528, #529, #531, #532). The issue stays open because GW-6 steps 3–4 are ⚠-marked as not yet runnable; this checklist is the remainder (maintainer may prefer splitting it into its own issue):

  • Attributes-pane actor rows — name, archetype/category, position (road/lane/s/offset), bounding box, init speed; edits routed through the existing osc::edit factories (rename_scenario_object, set_entity_init_pose, set_scenario_object_bounding_box, set_entity_init_speed) — pure UI binding, the kernel surface already exists.
  • Scene-tree scenario branch — actors listed under a Scenario node; ships its QAbstractItemModelTester gtest in the same commit per the testing standard.
  • Viewport picking of actors — actor selection as its own selection kind (no road id carried); an Actor-tool click on a placed actor selects it instead of stacking a new one.
  • Delete routing — Delete on an actor selection pushes osc::edit::remove_scenario_object (which already cascades the <Private> removal) onto the Document's single undo stack.

Exit criterion: GW-6 steps 3–4 pass without their ⚠ annotations; then this issue closes.

Out of scope

Routes and logic (p8-s3, p8-s4).

Supersedes

(none)

Activity

  1. added
    pillar:P8
    on Jul 15, 2026
  2. JArmandoAnaya commented on Jul 27, 2026

    @JArmandoAnaya
    ContributorAuthor

    2026-07-27 roadmap review — corrections and cross-references (issue written before recent landings; body stands, read with these):

  3. JArmandoAnaya commented on Jul 31, 2026

    @JArmandoAnaya
    ContributorAuthor

    Status 2026-07-31 — substantially delivered, deliberately left open

    Five PRs merged. The issue's stated acceptance is met and tested; the issue stays open because GW-6's steps 3–4 are not.

    PR What
    #527 kernel: <LanePosition>, <RoadPosition>, <SpeedAction>, actor catalogue, 5 edit factories
    #528 editor: the scenario lives on Document, stem-matched .xosc, one undo stack, actor selection
    #529 the Actor tool — click a lane to place, drag to move
    #531 box-proxy rendering, so placed actors are visible
    #532 Map ↔ Scenario mode, GW-6 + ADR-0014 amendments

    Also landed en route: #530, an unrelated tinygltf pin break that was blocking every fresh configure repo-wide.

    Acceptance, checked

    "Mode switch preserves both documents; placed actors serialize to OpenSCENARIO and round-trip."

    • Mode switch preserves both documents — both stay loaded; the roads remain visible and selectable for reference, and returning to Map mode keeps the undo history, because both documents share one stack. The gate is derived from each tool's registry classification, so tools added by later pillars are gated the day they land.
    • Round-trip — save → reopen → save is byte-identical, asserted on the file's bytes. esmini accepts the exported .xosc, and (unlike the traffic-signal half) it genuinely resolves the lane anchor: a dangling roadId, a dangling laneId or an s past the road end each fail the load.

    Why this is still open

    GW-6 steps 3 and 4 describe things that do not exist yet, now marked ⚠ in the workflow rather than left to be assumed:

    • Attributes pane rows for an actor (name, category, bounding box, initial speed)
    • Scene-tree scenario branch listing actors
    • Viewport picking of actors (the Actor tool hit-tests its own; the general pick path does not)
    • Delete routing for a selected actor

    Closing on the literal acceptance while the workflow that accepts the pillar cannot be run would be narrowing the scope quietly. Happy to split the remainder into its own issue and close this one instead — maintainer's call.

    Two things worth carrying forward

    GW-6 step 1 was amended, not implemented to. It said "the scenario toolbar tab activates" — but #377 replaced the tabbed toolbar with a single flat row. Building a tab to satisfy a stale sentence would have been the wrong direction of fit.

    One known asymmetry, recorded in ADR-0014 rather than hidden: a file that omitted @offset on a <LanePosition> gains offset="0" on rewrite. The specification reads a missing value as 0, so it is a semantic no-op — but it is the one place the never-drop discipline yields a byte the input did not have.

  4. moved this from Todo to In Progress in RoadMaker Roadmapon Aug 1, 2026
  5. moved this from In Progress to Done in RoadMaker Roadmapon Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pillar:P8

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions