pyrobosim.web.figure.dynamic_patch
- pyrobosim.web.figure.dynamic_patch(world: World, selected_robot: Robot | None) Patch
Builds a Dash
Patchupdating only the dynamic per-robot trace data, leaving static shapes, planner graphs, and the layout untouched. Touching only trace data keeps each frame a pure restyle (no relayout), so motion does not disrupt an in-progress pan/zoom. Valid only while the trace layout is unchanged (same robots and same number of graphs).- Parameters:
world – The world whose robots to update.
selected_robot – The robot whose planner graphs are displayed, if any. Used to offset the per-robot trace indices past the graph traces.
- Returns:
A Dash patch updating the dynamic trace data in place.