Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions autoware_system_designer_studio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ selector, the mode, which every activity reads, and the launch bar; other select
live in the activity that uses them, as store keys mirrored in the URL. The system selector lists
the systems of the site by package, each with its icon.

| Activity | Rail items | Side panel | Main area |
| -------- | ------------------------------------------------------------ | ----------------------------------------------- | ------------------------------------------------------------- |
| Explore | Diagrams: Nodes, Logic, Sequence (`?diagram=`) | depth, entity search, image download (PNG, SVG) | diagram canvas; inspector shows the selected element |
| Launch | Launch: Control; Monitor: Logs, Topics, Resources (`?view=`) | none | the view of the mode |
| Replay | Replay | scope tree (`?scope=`) | boundary, bag match, configuration, run (daemon) |
| E/E | E/E | architecture, view, load, environments | wiring or units diagram; inspector shows the selected element |
| Build | Build | target, compute unit, start; job list (daemon) | log of the selected job (`?job=`) |
| Activity | Rail items | Side panel | Main area |
| -------- | ------------------------------------------------------------ | --------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| Explore | Diagrams: Nodes, Logic, Sequence (`?diagram=`) | component list with depth per component, entity search, image download (PNG, SVG) | diagram canvas; inspector shows the selected element |
| Launch | Launch: Control; Monitor: Logs, Topics, Resources (`?view=`) | none | the view of the mode |
| Replay | Replay | scope tree (`?scope=`) | boundary, bag match, configuration, run (daemon) |
| E/E | E/E | architecture, view, load, environments | wiring or units diagram; inspector shows the selected element |
| Build | Build | target, compute unit, start; job list (daemon) | log of the selected job (`?job=`) |

The E/E activity draws an E/E architecture the system is declared for (`?architecture=`) from the
record in the system's `deployment.json`, laid out from the record alone. Devices hosting an
Expand Down Expand Up @@ -515,14 +515,11 @@ the foot of the tree gives each mark's shape and colour.

### Live monitoring

The Explore activity overlays the live state of the launched members on its diagrams while a
daemon serves the page. The node diagram marks each launched node in its corner with the monitor's
run-state marks, a module or compute unit with the severest state among the nodes within; the mark
is the only change to the drawing, and its tooltip names the state and the restarts. The sequence
diagram treats the process gates of a member that is down as dead, so the
fold rules carry the outage along the chains: an or gate keeps to its live branches, an and gate
waiting on a dead one is dead itself. States come from the same `member` events as the Launch
monitor, with a composable node following its container; a node never launched carries no mark.
The Explore activity overlays the live state of the launched members on the sequence diagram
while a daemon serves the page. The diagram treats the process gates of a member that is down as
dead, so the fold rules carry the outage along the chains: an or gate keeps to its live branches,
an and gate waiting on a dead one is dead itself. States come from the same `member` events as the
Launch monitor, with a composable node following its container.

The daemon polls the record root while an event stream is open (one directory listing per
`<package>/<system>/latency/<mode>`, every 2 s) and publishes `records.changed` once a new record
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
# Diagrams of the Explore activity, in rail order: the rail label and icon (SVG path data), the
# module script loaded when the diagram is first shown, whether the module locates entities
# (``focusEntity``), which Explore search needs, and whether it draws the design hierarchy cut at
# a chosen depth (the ``depth`` option). ``kinds`` limits a diagram to those target kinds.
# a depth chosen per component (the ``componentDepth`` option). ``kinds`` limits a diagram to
# those target kinds.
DIAGRAMS = {
"node_diagram": {
"label": "Node Diagram",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,107 @@
position: relative;
}

/* Depth switch: one segment per design level, across the side panel */
.depth-levels .segmented button {
flex: 1;
/* Component list: the top-level entities under their compute unit */
.component-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 45vh;
overflow-y: auto;
}

.image-save {
.component-group {
display: flex;
gap: 6px;
flex-direction: column;
gap: 3px;
padding: 0 6px 4px;
border: 1px solid var(--border-color);
border-radius: 4px;
}

.image-save .panel-button {
flex: 1;
.component-unit {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 0 -6px 2px;
padding: 4px 6px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-color);
border-radius: 3px 3px 0 0;
}

.component-unit-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-weight: 700;
color: var(--text-primary);
}

.live-legend {
.component-unit-toggle {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
margin-top: 6px;
flex: none;
align-items: center;
gap: 4px;
font-size: 11px;
color: var(--text-muted);
cursor: pointer;
}

.component-unit-toggle input {
margin: 0;
}

.component-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}

.component-row[hidden] {
display: none;
}

.component-name {
min-width: 0;
padding: 2px 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
text-align: left;
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
}

.component-name:hover {
color: var(--border-active);
}

/* Depth switch: one segment of fixed width per level of the component */
.depth-levels {
flex: none;
}

.depth-levels button {
width: 20px;
padding: 2px 0;
font-size: 11px;
}

.image-save {
display: flex;
gap: 6px;
}

.image-save .panel-button {
flex: 1;
}

/* Subsystem interface: one scrolling sheet of the launch-file interface */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@
fill: var(--highlight-bg);
}

/* Live state of a launched member: a mark in the box's corner */
.live-mark {
pointer-events: none;
}

/* Gateway node: talks to a peripheral's hardware; opens the peripheral in E/E. */
.gateway-icon {
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,11 @@
(e) => e.entity_type === "node" && e.path === path,
);
if (!entity) return;
store.set("diagram", "node_diagram");
store.set("entity", SD.NamespaceTree.entityKey(entity));
store.set("activity", "explore");
store.navigate({
diagram: "node_diagram",
entity: SD.NamespaceTree.entityKey(entity),
activity: "explore",
});
}

function select(target) {
Expand Down Expand Up @@ -528,7 +530,9 @@
empty.hidden = !!cards.length;
}

const views = segmented(VIEWS, (value) => store.set("wiring", value));
const views = segmented(VIEWS, (value) =>
store.navigate({ wiring: value }),
);
views.element.classList.add("ee-views");
const capacity = document.createElement("input");
capacity.type = "checkbox";
Expand Down
Loading
Loading